#include <GoodSeedProducer.h>
Public Member Functions | |
GoodSeedProducer (const edm::ParameterSet &) | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Types | |
typedef TrajectoryStateOnSurface | TSOS |
Private Member Functions | |
virtual void | beginRun (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_ |
std::unique_ptr < 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 | pt |
double | PtThresholdSavePredId_ |
Threshold to save Pre Idinfo. More... | |
std::array< std::unique_ptr < TMVA::Reader >, 9 > | reader {} |
READER FOR TMVA. More... | |
std::map< reco::TrackRef, unsigned > | refMap_ |
Map used to create the TrackRef, PreIdRef value map. More... | |
std::unique_ptr< PFResolutionMap > | resMapEtaECAL_ |
std::unique_ptr< 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... | |
std::string | trackerRecHitBuilderName_ |
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::stream::EDProducer<> | |
typedef CacheContexts< T...> | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T...> | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT < LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
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 41 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, trackerRecHitBuilderName_, trackQuality_, tracksContainers_, trajContainers_, useQuality_, and useTmva_.
|
overrideprivatevirtual |
Reimplemented from edm::stream::EDProducerBase.
Definition at line 477 of file GoodSeedProducer.cc.
References B_, chikfred, chiRatio, chired, conf_, dpt, eP, eta, edm::FileInPath::fullPath(), edm::EventSetup::get(), edm::ParameterSet::getParameter(), j, HLT_25ns14e33_v1_cff::magneticField, method_, nhit, pfTransformer_, pt, reader, resMapEtaECAL_, resMapPhiECAL_, thr, trk_ecalDeta, trk_ecalDphi, and useTmva_.
|
private |
Definition at line 554 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 538 of file GoodSeedProducer.cc.
References LogDebug.
Referenced by produce().
|
overrideprivatevirtual |
Implements edm::stream::EDProducerBase.
Definition at line 138 of file GoodSeedProducer.cc.
References funct::abs(), B_, chikfred, chiRatio, chired, Trajectory::chiSquared(), clusThreshold_, constexpr, disablePreId_, dpt, HWWFunctions::EE, eP, eta, edm::EventID::event(), f, edm::helper::Filler< Map >::fill(), fillPreIdRefValueMap(), 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(), HLT_25ns14e33_v1_cff::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(), thr, tmp, trackerRecHitBuilderName_, 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 163 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 153 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 152 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 152 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Cut on the energy of the clusters.
Definition at line 107 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 129 of file GoodSeedProducer.h.
Referenced by beginRun().
|
private |
switch to disable the pre-id
Definition at line 117 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 152 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 100 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 102 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 101 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 99 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
VARIABLES NEEDED FOR TMVA.
Definition at line 152 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 152 of file GoodSeedProducer.h.
Referenced by Particle.Particle::__str__(), Muon.Muon::absEffAreaIso(), beginRun(), Jet.Jet::jetID(), produce(), and Jet.Jet::puJetId().
|
private |
|
private |
Definition at line 136 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 98 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 85 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
Definition at line 111 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 96 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 95 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
TMVA method.
Definition at line 160 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 154 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 103 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Min and MAx allowed values forEoverP.
Definition at line 110 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Minimum transverse momentum and maximum pseudorapidity.
Definition at line 94 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 152 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Number of hits in the seed;.
Definition at line 91 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 131 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 132 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 130 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 168 of file GoodSeedProducer.h.
|
private |
|
private |
Name of the Seed(Ckf) Collection.
Definition at line 70 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Name of the Seed(Gsf) Collection.
Definition at line 73 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Name of the preid Collection (FB)
Definition at line 76 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Produce the Seed for Ckf tracks?
Definition at line 114 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Produce the pre-id debugging collection.
Definition at line 120 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 138 of file GoodSeedProducer.h.
|
private |
Definition at line 152 of file GoodSeedProducer.h.
Referenced by Particle.Particle::__str__(), ZMuMuRochCorAnalyzer.DiMuon::__str__(), DiObject.DiMuon::__str__(), beginRun(), Photon.Photon::calScaledIsoValue(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDTight(), produce(), Lepton.Lepton::relEffAreaIso(), and Lepton.Lepton::relIso().
|
private |
Threshold to save Pre Idinfo.
Definition at line 123 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
READER FOR TMVA.
Definition at line 149 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Map used to create the TrackRef, PreIdRef value map.
Definition at line 166 of file GoodSeedProducer.h.
Referenced by fillPreIdRefValueMap(), and produce().
|
private |
Definition at line 141 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 142 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
|
private |
Definition at line 137 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
vector of thresholds for different bins of eta and pt
Definition at line 126 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 139 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 146 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 134 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 133 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 153 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 153 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
TRACK QUALITY.
Definition at line 145 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
USE OF TMVA.
Definition at line 157 of file GoodSeedProducer.h.
Referenced by beginRun(), GoodSeedProducer(), and produce().