#include <GoodSeedProducer.h>
Private Types | |
typedef TrajectoryStateOnSurface | TSOS |
Private Member Functions | |
virtual void | beginRun (const edm::Run &run, const edm::EventSetup &) override |
virtual void | endRun (const edm::Run &run, const edm::EventSetup &) override |
void | fillPreIdRefValueMap (edm::Handle< reco::TrackCollection > tkhandle, const edm::OrphanHandle< reco::PreIdCollection > &, edm::ValueMap< reco::PreIdRef >::Filler &filler) |
int | getBin (float, float) |
Find the bin in pt and eta. More... | |
int | getBin (float) |
bool | IsIsolated (float charge, float P, math::XYZPointF, const reco::PFClusterCollection &ecalColl, const reco::PFClusterCollection &hcalColl) |
virtual void | produce (edm::Event &, const edm::EventSetup &) override |
void | PSforTMVA (const math::XYZTLorentzVector &mom, const math::XYZTLorentzVector &pos) |
Private Attributes | |
bool | applyIsolation_ |
ISOLATION REQUEST AS DONE IN THE TAU GROUP. More... | |
math::XYZVector | B_ |
B field. More... | |
float | chi |
float | chiRatio |
float | chired |
double | clusThreshold_ |
Cut on the energy of the clusters. More... | |
edm::ParameterSet | conf_ |
bool | disablePreId_ |
switch to disable the pre-id More... | |
float | dpt |
double | EcalStripSumE_deltaEta_ |
double | EcalStripSumE_deltaPhiOverQ_maxValue_ |
double | EcalStripSumE_deltaPhiOverQ_minValue_ |
double | EcalStripSumE_minClusEnergy_ |
float | eP |
VARIABLES NEEDED FOR TMVA. More... | |
float | eta |
edm::ESHandle< TrajectoryFitter > | fitter_ |
Fitter. More... | |
std::string | fitterName_ |
double | HcalIsolWindow_ |
double | maxEp_ |
double | maxEta_ |
double | maxHoverP_ |
double | maxPt_ |
std::string | method_ |
TMVA method. More... | |
double | minEoverP_ |
double | minEp_ |
Min and MAx allowed values forEoverP. More... | |
double | minPt_ |
Minimum transverse momentum and maximum pseudorapidity. More... | |
float | nhit |
int | nHitsInSeed_ |
Number of hits in the seed;. More... | |
edm::InputTag | pfCLusTagECLabel_ |
edm::InputTag | pfCLusTagHCLabel_ |
edm::InputTag | pfCLusTagPSLabel_ |
PFTrackTransformer * | pfTransformer_ |
PFTrackTransformer. More... | |
std::string | preidckf_ |
Name of the Seed(Ckf) Collection. More... | |
std::string | preidgsf_ |
Name of the Seed(Gsf) Collection. More... | |
std::string | preidname_ |
Name of the preid Collection (FB) More... | |
bool | produceCkfseed_ |
Produce the Seed for Ckf tracks? More... | |
bool | producePreId_ |
Produce the pre-id debugging collection. More... | |
std::string | propagatorName_ |
float | ps1chi |
std::vector< reco::PFCluster > | ps1Clus |
Vector of clusters of the PreShower. More... | |
float | ps1En |
float | ps2chi |
std::vector< reco::PFCluster > | ps2Clus |
float | ps2En |
float | pt |
double | PtThresholdSavePredId_ |
Threshold to save Pre Idinfo. More... | |
TMVA::Reader * | reader |
READER FOR TMVA. More... | |
std::map< reco::TrackRef, unsigned > | refMap_ |
Map used to create the TrackRef, PreIdRef value map. More... | |
PFResolutionMap * | resMapEtaECAL_ |
PFResolutionMap * | resMapPhiECAL_ |
edm::ESHandle< TrajectorySmoother > | smoother_ |
Smoother. More... | |
std::string | smootherName_ |
float | thr [150] |
vector of thresholds for different bins of eta and pt More... | |
float | thrPS [20] |
reco::TrackBase::TrackQuality | trackQuality_ |
std::vector< edm::InputTag > | tracksContainers_ |
bool | usePreshower_ |
Use of Preshower clusters. More... | |
bool | useQuality_ |
TRACK QUALITY. More... | |
bool | useTmva_ |
USE OF TMVA. More... | |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Definition at line 46 of file GoodSeedProducer.h.
|
private |
Definition at line 47 of file GoodSeedProducer.h.
|
explicit |
Definition at line 38 of file GoodSeedProducer.cc.
References applyIsolation_, clusThreshold_, disablePreId_, EcalStripSumE_deltaEta_, EcalStripSumE_deltaPhiOverQ_maxValue_, EcalStripSumE_deltaPhiOverQ_minValue_, EcalStripSumE_minClusEnergy_, fitterName_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HcalIsolWindow_, LogDebug, maxEp_, maxEta_, maxHoverP_, maxPt_, minEoverP_, minEp_, minPt_, nHitsInSeed_, pfCLusTagECLabel_, pfCLusTagHCLabel_, pfCLusTagPSLabel_, preidckf_, preidgsf_, preidname_, produceCkfseed_, producePreId_, edm::ProductRegistryHelper::produces(), PtThresholdSavePredId_, smootherName_, AlCaHLTBitMon_QueryRunRegistry::string, trackQuality_, tracksContainers_, usePreshower_, useQuality_, and useTmva_.
GoodSeedProducer::~GoodSeedProducer | ( | ) |
Definition at line 134 of file GoodSeedProducer.cc.
References pfTransformer_, reader, resMapEtaECAL_, resMapPhiECAL_, and useTmva_.
|
overrideprivatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 502 of file GoodSeedProducer.cc.
References B_, chi, chiRatio, chired, conf_, dpt, eP, eta, edm::FileInPath::fullPath(), edm::EventSetup::get(), edm::ParameterSet::getParameter(), method_, nhit, PFTrackTransformer::OnlyProp(), pfTransformer_, pt, reader, resMapEtaECAL_, resMapPhiECAL_, thr, thrPS, and useTmva_.
|
overrideprivatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 551 of file GoodSeedProducer.cc.
References pfTransformer_, reader, resMapEtaECAL_, resMapPhiECAL_, and useTmva_.
|
private |
Definition at line 704 of file GoodSeedProducer.cc.
References edm::helper::Filler< Map >::insert(), refMap_, and makeHLTPrescaleTable::values.
Referenced by produce().
|
private |
Find the bin in pt and eta.
Definition at line 575 of file GoodSeedProducer.cc.
References LogDebug.
Referenced by produce().
|
private |
Definition at line 565 of file GoodSeedProducer.cc.
|
private |
Definition at line 652 of file GoodSeedProducer.cc.
References funct::abs(), DeDxDiscriminatorTools::charge(), HLTFastRecoForTau_cff::deltaEta, SiPixelRawToDigiRegional_cfi::deltaPhi, deltaR(), EcalStripSumE_deltaPhiOverQ_maxValue_, EcalStripSumE_deltaPhiOverQ_minValue_, EcalStripSumE_minClusEnergy_, AnalysisDataFormats_SUSYBSMObjects::hc, HcalIsolWindow_, maxHoverP_, minEoverP_, and P.
Referenced by produce().
|
overrideprivatevirtual |
Implements edm::EDProducer.
Definition at line 155 of file GoodSeedProducer.cc.
References applyIsolation_, B_, DeDxDiscriminatorTools::charge(), chi, chiRatio, chired, clusThreshold_, disablePreId_, dpt, eP, eta, edm::EventID::event(), edm::helper::Filler< Map >::fill(), fillPreIdRefValueMap(), PFResolutionMap::FindBin(), fitter_, fitterName_, edm::EventSetup::get(), getBin(), edm::Event::getByLabel(), BaseParticlePropagator::getSuccess(), i, edm::EventBase::id(), IsIsolated(), LogDebug, maxEp_, maxEta_, maxPt_, method_, minEp_, minPt_, RawParticle::momentum(), nhit, AlCaHLTBitMon_ParallelJobs::p, pfCLusTagECLabel_, pfCLusTagHCLabel_, pfCLusTagPSLabel_, funct::pow(), preidckf_, preidgsf_, preidname_, produceCkfseed_, producePreId_, edm::Handle< T >::product(), edm::ESHandle< class >::product(), BaseParticlePropagator::propagateToEcalEntrance(), ps1chi, ps1Clus, ps1En, ps2chi, ps2Clus, ps2En, PSforTMVA(), reco::PreId::pt(), pt, PtThresholdSavePredId_, edm::Event::put(), reader, refMap_, resMapEtaECAL_, resMapPhiECAL_, edm::EventID::run(), RawParticle::setCharge(), reco::ElectronSeed::setCtfTrack(), reco::PreId::setECALMatching(), reco::PreId::setECALMatchingProperties(), reco::PreId::setESMatching(), reco::PreId::setFinalDecision(), reco::PreId::setMVA(), reco::PreId::setTrack(), reco::PreId::setTrackFiltering(), reco::PreId::setTrackProperties(), smoother_, smootherName_, mathSSE::sqrt(), thr, thrPS, tmp, trackQuality_, tracksContainers_, TwoPi, usePreshower_, useQuality_, useTmva_, RawParticle::vertex(), x, detailsBasic3DVector::y, and detailsBasic3DVector::z.
|
private |
Definition at line 592 of file GoodSeedProducer.cc.
References create_public_lumi_plots::ax, B_, PFGeometry::innerRadius(), PFGeometry::outerRadius(), BaseParticlePropagator::propagateToPreshowerLayer1(), PFGeometry::PS1, ps1chi, ps1Clus, ps1En, PFGeometry::PS2, ps2chi, ps2Clus, ps2En, and mathSSE::sqrt().
Referenced by produce().
|
private |
ISOLATION REQUEST AS DONE IN THE TAU GROUP.
Definition at line 103 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
B field.
Definition at line 168 of file GoodSeedProducer.h.
Referenced by beginRun(), produce(), and PSforTMVA().
|
private |
Definition at line 159 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 159 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 159 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Cut on the energy of the clusters.
Definition at line 114 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 137 of file GoodSeedProducer.h.
Referenced by beginRun().
|
private |
switch to disable the pre-id
Definition at line 124 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 159 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 106 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 108 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and IsIsolated().
|
private |
Definition at line 107 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and IsIsolated().
|
private |
Definition at line 105 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and IsIsolated().
|
private |
VARIABLES NEEDED FOR TMVA.
Definition at line 159 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 159 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
|
private |
Definition at line 144 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 104 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and IsIsolated().
|
private |
Definition at line 118 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 100 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 110 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and IsIsolated().
|
private |
Definition at line 99 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
TMVA method.
Definition at line 165 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 109 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and IsIsolated().
|
private |
Min and MAx allowed values forEoverP.
Definition at line 117 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Minimum transverse momentum and maximum pseudorapidity.
Definition at line 98 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 159 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Number of hits in the seed;.
Definition at line 95 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 139 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 140 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 138 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 92 of file GoodSeedProducer.h.
Referenced by beginRun(), endRun(), and ~GoodSeedProducer().
|
private |
Name of the Seed(Ckf) Collection.
Definition at line 77 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Name of the Seed(Gsf) Collection.
Definition at line 80 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Name of the preid Collection (FB)
Definition at line 83 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Produce the Seed for Ckf tracks?
Definition at line 121 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Produce the pre-id debugging collection.
Definition at line 127 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 146 of file GoodSeedProducer.h.
|
private |
Definition at line 160 of file GoodSeedProducer.h.
Referenced by produce(), and PSforTMVA().
|
private |
Vector of clusters of the PreShower.
Definition at line 73 of file GoodSeedProducer.h.
Referenced by produce(), and PSforTMVA().
|
private |
Definition at line 160 of file GoodSeedProducer.h.
Referenced by produce(), and PSforTMVA().
|
private |
Definition at line 160 of file GoodSeedProducer.h.
Referenced by produce(), and PSforTMVA().
|
private |
Definition at line 74 of file GoodSeedProducer.h.
Referenced by produce(), and PSforTMVA().
|
private |
Definition at line 160 of file GoodSeedProducer.h.
Referenced by produce(), and PSforTMVA().
|
private |
Definition at line 159 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Threshold to save Pre Idinfo.
Definition at line 130 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
READER FOR TMVA.
Definition at line 156 of file GoodSeedProducer.h.
Referenced by beginRun(), endRun(), produce(), and ~GoodSeedProducer().
|
private |
Map used to create the TrackRef, PreIdRef value map.
Definition at line 174 of file GoodSeedProducer.h.
Referenced by fillPreIdRefValueMap(), and produce().
|
private |
Definition at line 148 of file GoodSeedProducer.h.
Referenced by beginRun(), endRun(), produce(), and ~GoodSeedProducer().
|
private |
Definition at line 149 of file GoodSeedProducer.h.
Referenced by beginRun(), endRun(), produce(), and ~GoodSeedProducer().
|
private |
|
private |
Definition at line 145 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
vector of thresholds for different bins of eta and pt
Definition at line 133 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 134 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 153 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 141 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Use of Preshower clusters.
Definition at line 171 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
TRACK QUALITY.
Definition at line 152 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
USE OF TMVA.
Definition at line 162 of file GoodSeedProducer.h.
Referenced by beginRun(), endRun(), GoodSeedProducer(), produce(), and ~GoodSeedProducer().