Skip to content

Commit

Permalink
Merge pull request cms-sw#10 from gvonsem/pepr_CMSSW_11_1_0_pre7_ener…
Browse files Browse the repository at this point in the history
…gyCut

Energy threshold on reconstructed candidates
  • Loading branch information
jkiesele authored Sep 30, 2020
2 parents cd54bad + 4b631fc commit 250b6f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions RecoHGCal/GraphReco/plugins/peprCandidateFromHitProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ class peprCandidateFromHitProducer: public edm::stream::EDProducer<> {
// rechit tools
hgcal::RecHitTools recHitTools_;

double minCandEnergy_;

// windows
std::vector<InferenceWindow> windows_;

Expand All @@ -101,6 +103,7 @@ peprCandidateFromHitProducer::peprCandidateFromHitProducer(const edm::ParameterS
tritonScript_(config.getParameter<edm::FileInPath>("tritonScript").fullPath()),
inpipeName_(config.getParameter<std::string>("inpipeName")),
outpipeName_(config.getParameter<std::string>("outpipeName")),
minCandEnergy_(config.getParameter<double>("minCandEnergy")),
//FIXME: actually these are all not needed if windows are created in the constructor!
minEta_(config.getParameter<double>("minEta")),
maxEta_(config.getParameter<double>("maxEta"))
Expand Down Expand Up @@ -220,6 +223,10 @@ void peprCandidateFromHitProducer::produce(edm::Event& event, const edm::EventSe

//inner index as filled in readOutputArrays
E = windowoutputs[i][j][0];

//temporary lower threshold on energy of candidates
if(E < minCandEnergy_) continue;

X = windowoutputs[i][j][1];
Y = windowoutputs[i][j][2];
Z = windowoutputs[i][j][3];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
tritonScript=cms.FileInPath("RecoHGCal/GraphReco/test/cmssw_oc_forward_client.sh"),
inpipeName=cms.string("arrayspipe"),
outpipeName=cms.string("arrayspipe_pred"),
minCandEnergy=cms.double(1.0),
minEta=cms.double(1.6),
maxEta=cms.double(3.0)
)

0 comments on commit 250b6f1

Please sign in to comment.