diff --git a/RecoHGCal/GraphReco/plugins/peprCandidateFromHitProducer.cc b/RecoHGCal/GraphReco/plugins/peprCandidateFromHitProducer.cc index eef53fd5547ec..8aef11c4d2aed 100644 --- a/RecoHGCal/GraphReco/plugins/peprCandidateFromHitProducer.cc +++ b/RecoHGCal/GraphReco/plugins/peprCandidateFromHitProducer.cc @@ -82,6 +82,8 @@ class peprCandidateFromHitProducer: public edm::stream::EDProducer<> { // rechit tools hgcal::RecHitTools recHitTools_; + double minCandEnergy_; + // windows std::vector windows_; @@ -101,6 +103,7 @@ peprCandidateFromHitProducer::peprCandidateFromHitProducer(const edm::ParameterS tritonScript_(config.getParameter("tritonScript").fullPath()), inpipeName_(config.getParameter("inpipeName")), outpipeName_(config.getParameter("outpipeName")), + minCandEnergy_(config.getParameter("minCandEnergy")), //FIXME: actually these are all not needed if windows are created in the constructor! minEta_(config.getParameter("minEta")), maxEta_(config.getParameter("maxEta")) @@ -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]; diff --git a/RecoHGCal/GraphReco/python/peprCandidateFromHitProducer_cfi.py b/RecoHGCal/GraphReco/python/peprCandidateFromHitProducer_cfi.py index b9330299e963f..2c456625fdc87 100644 --- a/RecoHGCal/GraphReco/python/peprCandidateFromHitProducer_cfi.py +++ b/RecoHGCal/GraphReco/python/peprCandidateFromHitProducer_cfi.py @@ -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) )