#include <GoodSeedProducer.h>
Public Member Functions | |
GoodSeedProducer (const edm::ParameterSet &) | |
~GoodSeedProducer () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Private Types | |
typedef TrajectoryStateOnSurface | TSOS |
Private Member Functions | |
virtual void | beginRun (edm::Run &run, const edm::EventSetup &) |
virtual void | endRun () |
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 &) |
void | PSforTMVA (math::XYZTLorentzVector mom, 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... | |
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... | |
Static Private Attributes | |
static PFResolutionMap * | resMapEtaECAL_ = 0 |
static PFResolutionMap * | resMapPhiECAL_ = 0 |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
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) |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
Definition at line 46 of file GoodSeedProducer.h.
|
private |
Definition at line 47 of file GoodSeedProducer.h.
|
explicit |
Definition at line 40 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_, trackQuality_, tracksContainers_, usePreshower_, useQuality_, and useTmva_.
GoodSeedProducer::~GoodSeedProducer | ( | ) |
Definition at line 133 of file GoodSeedProducer.cc.
References pfTransformer_.
|
privatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 496 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_.
|
privatevirtual |
Definition at line 545 of file GoodSeedProducer.cc.
References pfTransformer_, reader, resMapEtaECAL_, resMapPhiECAL_, and useTmva_.
|
private |
Definition at line 692 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 563 of file GoodSeedProducer.cc.
References LogDebug.
Referenced by produce().
|
private |
Definition at line 553 of file GoodSeedProducer.cc.
|
private |
Definition at line 640 of file GoodSeedProducer.cc.
References abs, DeDxDiscriminatorTools::charge(), Geom::deltaPhi(), deltaR(), EcalStripSumE_deltaPhiOverQ_maxValue_, EcalStripSumE_deltaPhiOverQ_minValue_, EcalStripSumE_minClusEnergy_, HcalIsolWindow_, maxHoverP_, minEoverP_, and P.
Referenced by produce().
|
privatevirtual |
Implements edm::EDProducer.
Definition at line 149 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, L1TEmulatorMonitor_cff::p, pfCLusTagECLabel_, pfCLusTagHCLabel_, pfCLusTagPSLabel_, pos, 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 580 of file GoodSeedProducer.cc.
References 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(), and produce().
|
private |
Map used to create the TrackRef, PreIdRef value map.
Definition at line 174 of file GoodSeedProducer.h.
Referenced by fillPreIdRefValueMap(), and produce().
|
staticprivate |
Definition at line 148 of file GoodSeedProducer.h.
Referenced by beginRun(), endRun(), and produce().
|
staticprivate |
Definition at line 149 of file GoodSeedProducer.h.
Referenced by beginRun(), endRun(), and produce().
|
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(), and produce().