#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 | hasAbilityToProduceInLumis () const final |
bool | hasAbilityToProduceInRuns () 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, trackerRecHitBuilderName_, trackQuality_, tracksContainers_, trajContainers_, useQuality_, and useTmva_.
|
overrideprivate |
Definition at line 508 of file GoodSeedProducer.cc.
References B_, conf_, edm::FileInPath::fullPath(), edm::EventSetup::get(), edm::ParameterSet::getParameter(), MagneticField::inTesla(), seedCreatorFromRegionConsecutiveHitsEDProducer_cff::magneticField, pfTransformer_, resMapEtaECAL_, resMapPhiECAL_, and thr.
|
private |
Definition at line 548 of file GoodSeedProducer.cc.
References DEFINE_FWK_MODULE, edm::helper::Filler< Map >::insert(), refMap_, and MuonErrorMatrixValues_cff::values.
Referenced by produce().
|
private |
Find the bin in pt and eta.
Definition at line 532 of file GoodSeedProducer.cc.
References LogDebug.
Referenced by produce().
|
inlinestatic |
Definition at line 78 of file GoodSeedProducer.h.
References objects.autophobj::filler, getBin(), and writedatasetfile::run.
|
inlinestatic |
Definition at line 74 of file GoodSeedProducer.h.
|
overrideprivate |
Definition at line 139 of file GoodSeedProducer.cc.
References funct::abs(), B_, ALCARECOTkAlJpsiMuMu_cff::charge, chikfred, chiRatio, chired, Trajectory::chiSquared(), TrajectorySmoother::clone(), TrajectoryFitter::clone(), clusThreshold_, constexpr, disablePreId_, dpt, runTauDisplay::dr, EE, eP, eta, edm::EventID::event(), f, fillPreIdRefValueMap(), Trajectory::firstMeasurement(), fitter_, fitterName_, objects.autophobj::float, edm::EventSetup::get(), getBin(), edm::Event::getByToken(), runTauDisplay::gp, hitCloner, mps_fire::i, edm::EventBase::id(), createfilelist::int, Trajectory::isValid(), Trajectory::lastMeasurement(), LogDebug, mag2(), seedCreatorFromRegionConsecutiveHitsEDProducer_cff::magneticField, maxEp_, maxEta_, maxPt_, Min_dr_, minEp_, minPt_, eostools::move(), nhit, 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(), jets_cff::quality, 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, tmp, trackerRecHitBuilderName_, trackQuality_, tracksContainers_, trk_ecalDeta, trk_ecalDphi, TwoPi, csvLumiCalc::unit, TrackInfoProducer_cfi::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 184 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 174 of file GoodSeedProducer.h.
Referenced by produce().
|
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 |
Cut on the energy of the clusters.
Definition at line 131 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 153 of file GoodSeedProducer.h.
Referenced by beginRun().
|
private |
switch to disable the pre-id
Definition at line 141 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 173 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
Definition at line 124 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 126 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 125 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 123 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
VARIABLES NEEDED FOR TMVA.
Definition at line 173 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
Definition at line 173 of file GoodSeedProducer.h.
Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), produce(), and Jet.Jet::puJetId().
|
private |
|
private |
Definition at line 160 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 122 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 109 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
Definition at line 135 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 120 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 128 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 119 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
TMVA method.
Definition at line 181 of file GoodSeedProducer.h.
|
private |
Definition at line 175 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 127 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Min and MAx allowed values forEoverP.
Definition at line 134 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Minimum transverse momentum and maximum pseudorapidity.
Definition at line 118 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 173 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
Number of hits in the seed;.
Definition at line 115 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 155 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 156 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 154 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 189 of file GoodSeedProducer.h.
|
private |
|
private |
Name of the Seed(Ckf) Collection.
Definition at line 94 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Name of the Seed(Gsf) Collection.
Definition at line 97 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Name of the preid Collection (FB)
Definition at line 100 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Produce the Seed for Ckf tracks?
Definition at line 138 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Produce the pre-id debugging collection.
Definition at line 144 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 162 of file GoodSeedProducer.h.
|
private |
Definition at line 173 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 147 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Map used to create the TrackRef, PreIdRef value map.
Definition at line 187 of file GoodSeedProducer.h.
Referenced by fillPreIdRefValueMap(), and produce().
|
private |
Definition at line 165 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 166 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
|
private |
Definition at line 161 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
vector of thresholds for different bins of eta and pt
Definition at line 150 of file GoodSeedProducer.h.
Referenced by beginRun(), and produce().
|
private |
Definition at line 163 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 170 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 158 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
Definition at line 157 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer().
|
private |
Definition at line 174 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
Definition at line 174 of file GoodSeedProducer.h.
Referenced by produce().
|
private |
TRACK QUALITY.
Definition at line 169 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().
|
private |
USE OF TMVA.
Definition at line 178 of file GoodSeedProducer.h.
Referenced by GoodSeedProducer(), and produce().