#include <GoodSeedProducer.h>
Public Member Functions | |
GoodSeedProducer (const edm::ParameterSet &, const goodseedhelpers::HeavyObjectCache *) | |
Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< goodseedhelpers::HeavyObjectCache > > | |
EDProducer ()=default | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndRuns () const final |
Static Public Member Functions | |
static void | globalEndJob (goodseedhelpers::HeavyObjectCache const *) |
static std::unique_ptr< goodseedhelpers::HeavyObjectCache > | initializeGlobalCache (const edm::ParameterSet &conf) |
Private Types | |
typedef TrajectoryStateOnSurface | TSOS |
Private Member Functions | |
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... | |
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::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< edm::GlobalCache< goodseedhelpers::HeavyObjectCache > > | |
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 |
Definition at line 68 of file GoodSeedProducer.h.
|
private |
Definition at line 69 of file GoodSeedProducer.h.
|
explicit |
Definition at line 42 of file GoodSeedProducer.cc.
References clusThreshold_, disablePreId_, EcalStripSumE_deltaEta_, EcalStripSumE_deltaPhiOverQ_maxValue_, EcalStripSumE_deltaPhiOverQ_minValue_, EcalStripSumE_minClusEnergy_, fitterName_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), HcalIsolWindow_, mps_fire::i, LogDebug, maxEp_, maxEta_, maxHoverP_, maxPt_, Min_dr_, minEoverP_, minEp_, minPt_, nHitsInSeed_, pfCLusTagECLabel_, pfCLusTagHCLabel_, pfCLusTagPSLabel_, preidckf_, preidgsf_, preidname_, produceCkfseed_, producePreId_, PtThresholdSavePredId_, smootherName_, AlCaHLTBitMon_QueryRunRegistry::string, triggerMatcherToHLTDebug_cfi::tags, trackerRecHitBuilderName_, trackQuality_, tracksContainers_, trajContainers_, useQuality_, and useTmva_.
|
overrideprivate |
Definition at line 462 of file GoodSeedProducer.cc.
References B_, conf_, edm::FileInPath::fullPath(), edm::EventSetup::get(), edm::ParameterSet::getParameter(), MagneticField::inTesla(), HLT_2018_cff::magneticField, pfTransformer_, resMapEtaECAL_, resMapPhiECAL_, and thr.
|
private |
Definition at line 508 of file GoodSeedProducer.cc.
References DEFINE_FWK_MODULE, edm::helper::Filler< Map >::insert(), refMap_, and contentValuesCheck::values.
Referenced by produce().
|
private |
Find the bin in pt and eta.
Definition at line 484 of file GoodSeedProducer.cc.
References LogDebug.
Referenced by produce().
|
inlinestatic |
Definition at line 78 of file GoodSeedProducer.h.
References trigObjTnPSource_cfi::filler, getBin(), and writedatasetfile::run.
|
inlinestatic |
Definition at line 74 of file GoodSeedProducer.h.
|
overrideprivate |
Definition at line 130 of file GoodSeedProducer.cc.
References funct::abs(), B_, ALCARECOTkAlJpsiMuMu_cff::charge, chikfred, chiRatio, chired, Trajectory::chiSquared(), TrajectorySmoother::clone(), TrajectoryFitter::clone(), clusThreshold_, watchdog::const, constexpr, disablePreId_, dpt, flavorHistoryFilter_cfi::dr, EE, eP, Basic3DVector< T >::eta(), eta, edm::EventID::event(), f, JetMETHLTOfflineSource_cfi::feta, fillPreIdRefValueMap(), Trajectory::firstMeasurement(), fitter_, fitterName_, dqmMemoryStats::float, edm::EventSetup::get(), getBin(), edm::Event::getByToken(), TrajectoryStateOnSurface::globalMomentum(), runTauDisplay::gp, hitCloner, mps_fire::i, edm::EventBase::id(), createfilelist::int, Trajectory::isValid(), Trajectory::lastMeasurement(), LogDebug, mag2(), HLT_2018_cff::magneticField, maxEp_, maxEta_, maxPt_, Min_dr_, minEp_, minPt_, eostools::move(), nhit, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::perp2(), pfCLusTagECLabel_, pfCLusTagHCLabel_, pfCLusTagPSLabel_, Pi, funct::pow(), preidckf_, preidgsf_, preidname_, produceCkfseed_, producePreId_, edm::Handle< T >::product(), edm::ESHandle< T >::product(), BaseParticlePropagator::propagateToEcalEntrance(), reco::PreId::pt(), pt, PtThresholdSavePredId_, edm::Event::put(), qcdUeDQM_cfi::quality, FastTrackerRecHitMaskProducer_cfi::recHits, refMap_, resMapEtaECAL_, resMapPhiECAL_, edm::EventID::run(), 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, createJobs::tmp, trackerRecHitBuilderName_, trackQuality_, tracksContainers_, trk_ecalDeta, trk_ecalDphi, TwoPi, unit(), TrajectoryMeasurement::updatedState(), useQuality_, useTmva_, x, PV3DBase< T, PVType, FrameType >::x(), y, PV3DBase< T, PVType, FrameType >::y(), z, and PV3DBase< T, PVType, FrameType >::z().
|
private |
B field.
Definition at line 183 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 173 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
Definition at line 172 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
Definition at line 172 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
Cut on the energy of the clusters.
Definition at line 130 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 152 of file GoodSeedProducer.h.
Referenced by beginRun().
|
private |
switch to disable the pre-id
Definition at line 140 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 172 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
Definition at line 123 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 125 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 124 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 122 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
VARIABLES NEEDED FOR TMVA.
Definition at line 172 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
Definition at line 172 of file GoodSeedProducer.h.
Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), produce(), and Jet.Jet::puJetId().
|
private |
|
private |
Definition at line 159 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 121 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 108 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
Definition at line 134 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 119 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 127 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 118 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
TMVA method.
Definition at line 180 of file GoodSeedProducer.h.
|
private |
Definition at line 174 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 126 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Min and MAx allowed values forEoverP.
Definition at line 133 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Minimum transverse momentum and maximum pseudorapidity.
Definition at line 117 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 172 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
Number of hits in the seed;.
Definition at line 114 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 154 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 155 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 153 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 188 of file GoodSeedProducer.h.
|
private |
|
private |
Name of the Seed(Ckf) Collection.
Definition at line 93 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Name of the Seed(Gsf) Collection.
Definition at line 96 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Name of the preid Collection (FB)
Definition at line 99 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Produce the Seed for Ckf tracks?
Definition at line 137 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Produce the pre-id debugging collection.
Definition at line 143 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 161 of file GoodSeedProducer.h.
|
private |
Definition at line 172 of file GoodSeedProducer.h.
Referenced by Particle.Particle::__str__(), ZMuMuRochCorAnalyzer.DiMuon::__str__(), DiObject.DiMuon::__str__(), Photon.Photon::calScaledIsoValueExp(), Photon.Photon::calScaledIsoValueLin(), Photon.Photon::calScaledIsoValueQuadr(), Electron.Electron::mvaIDLoose(), Electron.Electron::mvaIDRun2(), Electron.Electron::mvaIDTight(), produce(), Electron.Electron::ptErr(), ntupleDataFormat.Track::ptPull(), Lepton.Lepton::relIso(), Lepton.Lepton::relIsoFromEA(), Lepton.Lepton::relIsoR(), and Jet.Jet::setCorrP4().
|
private |
Threshold to save Pre Idinfo.
Definition at line 146 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Map used to create the TrackRef, PreIdRef value map.
Definition at line 186 of file GoodSeedProducer.h.
Referenced by fillPreIdRefValueMap(), and produce().
|
private |
Definition at line 164 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 165 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
|
private |
Definition at line 160 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
vector of thresholds for different bins of eta and pt
Definition at line 149 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 162 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 169 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 157 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 156 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 173 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
Definition at line 173 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
TRACK QUALITY.
Definition at line 168 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
USE OF TMVA.
Definition at line 177 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().