#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... | |
virtual void | produce (edm::Event &, const edm::EventSetup &) override |
Private Attributes | |
math::XYZVector | B_ |
B field. More... | |
float | chikfred |
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 |
std::unique_ptr< TrajectoryFitter > | fitter_ |
Fitter. More... | |
std::string | fitterName_ |
double | HcalIsolWindow_ |
TkClonerImpl | hitCloner |
double | maxEp_ |
double | maxEta_ |
double | maxHoverP_ |
double | maxPt_ |
std::string | method_ |
TMVA method. More... | |
double | Min_dr_ |
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::EDGetTokenT < reco::PFClusterCollection > | pfCLusTagECLabel_ |
edm::EDGetTokenT < reco::PFClusterCollection > | pfCLusTagHCLabel_ |
edm::EDGetTokenT < reco::PFClusterCollection > | pfCLusTagPSLabel_ |
PFGeometry | pfGeometry_ |
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_ |
std::vector< reco::PFCluster const * > | ps1Clus |
Vector of clusters of the PreShower. More... | |
std::vector< reco::PFCluster const * > | ps2Clus |
float | pt |
double | PtThresholdSavePredId_ |
Threshold to save Pre Idinfo. More... | |
TMVA::Reader * | reader [9] |
READER FOR TMVA. More... | |
std::map< reco::TrackRef, unsigned > | refMap_ |
Map used to create the TrackRef, PreIdRef value map. More... | |
PFResolutionMap * | resMapEtaECAL_ |
PFResolutionMap * | resMapPhiECAL_ |
std::unique_ptr < TrajectorySmoother > | smoother_ |
Smoother. More... | |
std::string | smootherName_ |
float | thr [150] |
vector of thresholds for different bins of eta and pt More... | |
reco::TrackBase::TrackQuality | trackQuality_ |
std::vector< edm::EDGetTokenT < reco::TrackCollection > > | tracksContainers_ |
std::vector< edm::EDGetTokenT < std::vector< Trajectory > > > | trajContainers_ |
float | trk_ecalDeta |
float | trk_ecalDphi |
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 52 of file GoodSeedProducer.h.
|
private |
Definition at line 53 of file GoodSeedProducer.h.
|
explicit |
Definition at line 40 of file GoodSeedProducer.cc.
References clusThreshold_, edm::EDConsumerBase::consumes(), disablePreId_, EcalStripSumE_deltaEta_, EcalStripSumE_deltaPhiOverQ_maxValue_, EcalStripSumE_deltaPhiOverQ_minValue_, EcalStripSumE_minClusEnergy_, fitterName_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HcalIsolWindow_, i, LogDebug, maxEp_, maxEta_, maxHoverP_, maxPt_, Min_dr_, minEoverP_, minEp_, minPt_, nHitsInSeed_, pfCLusTagECLabel_, pfCLusTagHCLabel_, pfCLusTagPSLabel_, preidckf_, preidgsf_, preidname_, produceCkfseed_, producePreId_, edm::ProductRegistryHelper::produces(), PtThresholdSavePredId_, smootherName_, AlCaHLTBitMon_QueryRunRegistry::string, o2o::tags, trackQuality_, tracksContainers_, trajContainers_, useQuality_, and useTmva_.
GoodSeedProducer::~GoodSeedProducer | ( | ) |
Definition at line 128 of file GoodSeedProducer.cc.
References j, pfTransformer_, reader, resMapEtaECAL_, resMapPhiECAL_, and useTmva_.
|
overrideprivatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 497 of file GoodSeedProducer.cc.
References B_, chikfred, chiRatio, chired, conf_, dpt, eP, eta, edm::FileInPath::fullPath(), edm::EventSetup::get(), edm::ParameterSet::getParameter(), j, method_, nhit, PFTrackTransformer::OnlyProp(), pfTransformer_, pt, reader, resMapEtaECAL_, resMapPhiECAL_, thr, trk_ecalDeta, trk_ecalDphi, and useTmva_.
|
overrideprivatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 558 of file GoodSeedProducer.cc.
References pfTransformer_, resMapEtaECAL_, and resMapPhiECAL_.
|
private |
Definition at line 584 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 568 of file GoodSeedProducer.cc.
References LogDebug.
Referenced by produce().
|
overrideprivatevirtual |
FIXME FIXME CLONE
Implements edm::EDProducer.
Definition at line 151 of file GoodSeedProducer.cc.
References funct::abs(), B_, DeDxDiscriminatorTools::charge(), chikfred, chiRatio, chired, Trajectory::chiSquared(), clusThreshold_, constexpr, disablePreId_, dpt, HWWFunctions::EE, eP, eta, edm::EventID::event(), f, edm::helper::Filler< Map >::fill(), fillPreIdRefValueMap(), PFResolutionMap::FindBin(), Trajectory::firstMeasurement(), fitter_, fitterName_, edm::EventSetup::get(), getBin(), edm::Event::getByToken(), hitCloner, i, edm::EventBase::id(), Trajectory::isValid(), Trajectory::lastMeasurement(), LogDebug, maxEp_, maxEta_, maxPt_, method_, Min_dr_, minEp_, minPt_, nhit, PV3DBase< T, PVType, FrameType >::perp2(), pfCLusTagECLabel_, pfCLusTagHCLabel_, pfCLusTagPSLabel_, Pi, funct::pow(), preidckf_, preidgsf_, preidname_, produceCkfseed_, producePreId_, edm::Handle< T >::product(), edm::ESHandle< class >::product(), reco::PreId::pt(), pt, PtThresholdSavePredId_, edm::Event::put(), shift_rpc_layout::quality, reader, refMap_, resMapEtaECAL_, resMapPhiECAL_, edm::EventID::run(), RawParticle::setCharge(), reco::ElectronSeed::setCtfTrack(), reco::PreId::setECALMatching(), reco::PreId::setECALMatchingProperties(), reco::PreId::setFinalDecision(), reco::PreId::setMVA(), reco::PreId::setTrack(), reco::PreId::setTrackFiltering(), reco::PreId::setTrackProperties(), smoother_, smootherName_, mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, thr, tmp, trackQuality_, tracksContainers_, trajContainers_, trk_ecalDeta, trk_ecalDphi, TwoPi, csvLumiCalc::unit, useQuality_, useTmva_, x, PV3DBase< T, PVType, FrameType >::x(), detailsBasic3DVector::y, PV3DBase< T, PVType, FrameType >::y(), detailsBasic3DVector::z, and PV3DBase< T, PVType, FrameType >::z().
|
private |
B field.
Definition at line 168 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 158 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 157 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 157 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Cut on the energy of the clusters.
Definition at line 113 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 135 of file GoodSeedProducer.h.
Referenced by beginRun().
|
private |
switch to disable the pre-id
Definition at line 123 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 157 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().
|
private |
Definition at line 107 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 105 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
VARIABLES NEEDED FOR TMVA.
Definition at line 157 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 157 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
|
private |
Definition at line 142 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 104 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 91 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
Definition at line 117 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 102 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 110 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 101 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 159 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 109 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Min and MAx allowed values forEoverP.
Definition at line 116 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Minimum transverse momentum and maximum pseudorapidity.
Definition at line 100 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 157 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Number of hits in the seed;.
Definition at line 97 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 137 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 136 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 173 of file GoodSeedProducer.h.
|
private |
Definition at line 94 of file GoodSeedProducer.h.
Referenced by beginRun(), endRun(), and ~GoodSeedProducer().
|
private |
Name of the Seed(Ckf) Collection.
Definition at line 76 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Name of the Seed(Gsf) Collection.
Definition at line 79 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Name of the preid Collection (FB)
Definition at line 82 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Produce the Seed for Ckf tracks?
Definition at line 120 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Produce the pre-id debugging collection.
Definition at line 126 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 144 of file GoodSeedProducer.h.
|
private |
Vector of clusters of the PreShower.
Definition at line 72 of file GoodSeedProducer.h.
|
private |
Definition at line 73 of file GoodSeedProducer.h.
|
private |
Definition at line 157 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Threshold to save Pre Idinfo.
Definition at line 129 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
READER FOR TMVA.
Definition at line 154 of file GoodSeedProducer.h.
Referenced by beginRun(), produce(), and ~GoodSeedProducer().
|
private |
Map used to create the TrackRef, PreIdRef value map.
Definition at line 171 of file GoodSeedProducer.h.
Referenced by fillPreIdRefValueMap(), and produce().
|
private |
Definition at line 146 of file GoodSeedProducer.h.
Referenced by beginRun(), endRun(), produce(), and ~GoodSeedProducer().
|
private |
Definition at line 147 of file GoodSeedProducer.h.
Referenced by beginRun(), endRun(), produce(), and ~GoodSeedProducer().
|
private |
|
private |
Definition at line 143 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
vector of thresholds for different bins of eta and pt
Definition at line 132 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 151 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 139 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 158 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 158 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
TRACK QUALITY.
Definition at line 150 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
USE OF TMVA.
Definition at line 162 of file GoodSeedProducer.h.
Referenced by beginRun(), GoodSeedProducer(), produce(), and ~GoodSeedProducer().