CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes
GoodSeedProducer Class Referencefinal

#include <GoodSeedProducer.h>

Inheritance diagram for GoodSeedProducer:
edm::stream::EDProducer<> edm::stream::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

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< ConsumesInfoconsumesInfo () 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< TrajectoryFitterfitter_
 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< PFResolutionMapresMapEtaECAL_
 
std::unique_ptr< PFResolutionMapresMapPhiECAL_
 
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)
 

Detailed Description

Definition at line 52 of file GoodSeedProducer.h.

Member Typedef Documentation

Definition at line 53 of file GoodSeedProducer.h.

Constructor & Destructor Documentation

GoodSeedProducer::GoodSeedProducer ( const edm::ParameterSet iConfig)
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_.

41  :
42  pfTransformer_(nullptr),
43  conf_(iConfig),
44  resMapEtaECAL_(nullptr),
45  resMapPhiECAL_(nullptr)
46 {
47  LogInfo("GoodSeedProducer")<<"Electron PreIdentification started ";
48 
49  //now do what ever initialization is needed
50  std::vector<edm::InputTag> tags = iConfig.getParameter< vector < InputTag > >("TkColList");
51  for(unsigned int i=0;i<tags.size();++i) {
52  trajContainers_.push_back(consumes<vector<Trajectory> >(tags[i]));
53  tracksContainers_.push_back(consumes<reco::TrackCollection>(tags[i]));
54  }
55 
56  minPt_=iConfig.getParameter<double>("MinPt");
57  maxPt_=iConfig.getParameter<double>("MaxPt");
58  maxEta_=iConfig.getParameter<double>("MaxEta");
59 
60  HcalIsolWindow_ =iConfig.getParameter<double>("HcalWindow");
61  EcalStripSumE_minClusEnergy_ = iConfig.getParameter<double>("EcalStripSumE_minClusEnergy");
62  EcalStripSumE_deltaEta_ = iConfig.getParameter<double>("EcalStripSumE_deltaEta");
63  EcalStripSumE_deltaPhiOverQ_minValue_ = iConfig.getParameter<double>("EcalStripSumE_deltaPhiOverQ_minValue");
64  EcalStripSumE_deltaPhiOverQ_maxValue_ = iConfig.getParameter<double>("EcalStripSumE_deltaPhiOverQ_maxValue");
65  minEoverP_= iConfig.getParameter<double>("EOverPLead_minValue");
66  maxHoverP_= iConfig.getParameter<double>("HOverPLead_maxValue");
67 
68  pfCLusTagECLabel_=consumes<reco::PFClusterCollection>(iConfig.getParameter<InputTag>("PFEcalClusterLabel"));
69 
70  pfCLusTagHCLabel_=consumes<reco::PFClusterCollection>(iConfig.getParameter<InputTag>("PFHcalClusterLabel"));
71 
72  pfCLusTagPSLabel_=consumes<reco::PFClusterCollection>(iConfig.getParameter<InputTag>("PFPSClusterLabel"));
73 
74  preidgsf_ = iConfig.getParameter<string>("PreGsfLabel");
75  preidckf_ = iConfig.getParameter<string>("PreCkfLabel");
76  preidname_= iConfig.getParameter<string>("PreIdLabel");
77 
78 
79  fitterName_ = iConfig.getParameter<string>("Fitter");
80  smootherName_ = iConfig.getParameter<string>("Smoother");
81 
82 
83  nHitsInSeed_=iConfig.getParameter<int>("NHitsInSeed");
84 
85  clusThreshold_=iConfig.getParameter<double>("ClusterThreshold");
86 
87  minEp_=iConfig.getParameter<double>("MinEOverP");
88  maxEp_=iConfig.getParameter<double>("MaxEOverP");
89 
90  //collection to produce
91  produceCkfseed_ = iConfig.getUntrackedParameter<bool>("ProduceCkfSeed",false);
92 
93  // to disable the electron part (for HI collisions for examples)
94  disablePreId_ = iConfig.getUntrackedParameter<bool>("DisablePreId",false);
95 
96  producePreId_ = iConfig.getUntrackedParameter<bool>("ProducePreId",true);
97  // if no electron, cannot produce the preid
98  if(disablePreId_)
99  producePreId_=false;
100  PtThresholdSavePredId_ = iConfig.getUntrackedParameter<double>("PtThresholdSavePreId",1.);
101 
102  LogDebug("GoodSeedProducer")<<"Seeds for GSF will be produced ";
103 
104  // no disablePreId_ switch here. The collection will be empty if it is true
105  produces<ElectronSeedCollection>(preidgsf_);
106 
107  if(produceCkfseed_){
108  LogDebug("GoodSeedProducer")<<"Seeds for CKF will be produced ";
109  produces<TrajectorySeedCollection>(preidckf_);
110  }
111 
112  if(producePreId_){
113  LogDebug("GoodSeedProducer")<<"PreId debugging information will be produced ";
114 
115  produces<PreIdCollection>(preidname_);
116  if(tracksContainers_.size()==1) // do not make a value map if more than one input track collection
118  }
119 
120  useQuality_ = iConfig.getParameter<bool>("UseQuality");
121  trackQuality_=TrackBase::qualityByName(iConfig.getParameter<std::string>("TrackQuality"));
122 
123  useTmva_= iConfig.getUntrackedParameter<bool>("UseTMVA",false);
124 
125  Min_dr_ = iConfig.getParameter<double>("Min_dr");
126 
127  trackerRecHitBuilderName_ = iConfig.getParameter<std::string>("TTRHBuilder");
128 
129 }
#define LogDebug(id)
int nHitsInSeed_
Number of hits in the seed;.
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
int i
Definition: DBlmapReader.cc:9
std::string preidckf_
Name of the Seed(Ckf) Collection.
edm::EDGetTokenT< reco::PFClusterCollection > pfCLusTagPSLabel_
std::unique_ptr< PFResolutionMap > resMapEtaECAL_
double EcalStripSumE_minClusEnergy_
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::ParameterSet conf_
double EcalStripSumE_deltaEta_
double EcalStripSumE_deltaPhiOverQ_minValue_
double EcalStripSumE_deltaPhiOverQ_maxValue_
std::string preidname_
Name of the preid Collection (FB)
TypeLabelItem const & produces()
declare what type of product will make and with which optional label
bool useQuality_
TRACK QUALITY.
double minPt_
Minimum transverse momentum and maximum pseudorapidity.
std::string fitterName_
bool disablePreId_
switch to disable the pre-id
reco::TrackBase::TrackQuality trackQuality_
double clusThreshold_
Cut on the energy of the clusters.
tuple tags
Definition: o2o.py:248
bool produceCkfseed_
Produce the Seed for Ckf tracks?
bool useTmva_
USE OF TMVA.
std::unique_ptr< PFResolutionMap > resMapPhiECAL_
std::vector< edm::EDGetTokenT< reco::TrackCollection > > tracksContainers_
bool producePreId_
Produce the pre-id debugging collection.
std::unique_ptr< PFTrackTransformer > pfTransformer_
PFTrackTransformer.
std::string trackerRecHitBuilderName_
std::string smootherName_
edm::EDGetTokenT< reco::PFClusterCollection > pfCLusTagHCLabel_
std::string preidgsf_
Name of the Seed(Gsf) Collection.
edm::EDGetTokenT< reco::PFClusterCollection > pfCLusTagECLabel_
double minEp_
Min and MAx allowed values forEoverP.
std::vector< edm::EDGetTokenT< std::vector< Trajectory > > > trajContainers_
double PtThresholdSavePredId_
Threshold to save Pre Idinfo.

Member Function Documentation

void GoodSeedProducer::beginRun ( const edm::Run run,
const edm::EventSetup es 
)
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_.

479 {
480  //Magnetic Field
482  es.get<IdealMagneticFieldRecord>().get(magneticField);
483  B_=magneticField->inTesla(GlobalPoint(0,0,0));
484 
485  pfTransformer_.reset( new PFTrackTransformer(B_) );
486  pfTransformer_->OnlyProp();
487 
488  //Resolution maps
489  FileInPath ecalEtaMap(conf_.getParameter<string>("EtaMap"));
490  FileInPath ecalPhiMap(conf_.getParameter<string>("PhiMap"));
491  resMapEtaECAL_.reset( new PFResolutionMap("ECAL_eta",ecalEtaMap.fullPath().c_str()) );
492  resMapPhiECAL_.reset( new PFResolutionMap("ECAL_phi",ecalPhiMap.fullPath().c_str()) );
493 
494  if(useTmva_){
495  method_ = conf_.getParameter<string>("TMVAMethod");
496  FileInPath Weigths1(conf_.getParameter<string>("Weights1"));
497  FileInPath Weigths2(conf_.getParameter<string>("Weights2"));
498  FileInPath Weigths3(conf_.getParameter<string>("Weights3"));
499  FileInPath Weigths4(conf_.getParameter<string>("Weights4"));
500  FileInPath Weigths5(conf_.getParameter<string>("Weights5"));
501  FileInPath Weigths6(conf_.getParameter<string>("Weights6"));
502  FileInPath Weigths7(conf_.getParameter<string>("Weights7"));
503  FileInPath Weigths8(conf_.getParameter<string>("Weights8"));
504  FileInPath Weigths9(conf_.getParameter<string>("Weights9"));
505 
506  for(UInt_t j = 0; j < 9; ++j){
507  reader[j].reset( new TMVA::Reader("!Color:Silent"));
508 
509  reader[j]->AddVariable("NHits", &nhit);
510  reader[j]->AddVariable("NormChi", &chikfred);
511  reader[j]->AddVariable("dPtGSF", &dpt);
512  reader[j]->AddVariable("EoP", &eP);
513  reader[j]->AddVariable("ChiRatio", &chiRatio);
514  reader[j]->AddVariable("RedChi", &chired);
515  reader[j]->AddVariable("EcalDEta", &trk_ecalDeta);
516  reader[j]->AddVariable("EcalDPhi", &trk_ecalDphi);
517  reader[j]->AddVariable("pt", &pt);
518  reader[j]->AddVariable("eta", &eta);
519 
520  if(j==0) reader[j]->BookMVA(method_, Weigths1.fullPath().c_str());
521  if(j==1) reader[j]->BookMVA(method_, Weigths2.fullPath().c_str());
522  if(j==2) reader[j]->BookMVA(method_, Weigths3.fullPath().c_str());
523  if(j==3) reader[j]->BookMVA(method_, Weigths4.fullPath().c_str());
524  if(j==4) reader[j]->BookMVA(method_, Weigths5.fullPath().c_str());
525  if(j==5) reader[j]->BookMVA(method_, Weigths6.fullPath().c_str());
526  if(j==6) reader[j]->BookMVA(method_, Weigths7.fullPath().c_str());
527  if(j==7) reader[j]->BookMVA(method_, Weigths8.fullPath().c_str());
528  if(j==8) reader[j]->BookMVA(method_, Weigths9.fullPath().c_str());
529  }
530  }
531  //read threshold
532  FileInPath parFile(conf_.getParameter<string>("ThresholdFile"));
533  ifstream ifs(parFile.fullPath().c_str());
534  for (int iy=0;iy<81;++iy) ifs >> thr[iy];
535 }
T getParameter(std::string const &) const
std::array< std::unique_ptr< TMVA::Reader >, 9 > reader
READER FOR TMVA.
float eP
VARIABLES NEEDED FOR TMVA.
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
std::unique_ptr< PFResolutionMap > resMapEtaECAL_
float thr[150]
vector of thresholds for different bins of eta and pt
edm::ParameterSet conf_
std::string method_
TMVA method.
math::XYZVector B_
B field.
int j
Definition: DBlmapReader.cc:9
bool useTmva_
USE OF TMVA.
std::unique_ptr< PFResolutionMap > resMapPhiECAL_
const T & get() const
Definition: EventSetup.h:55
std::unique_ptr< PFTrackTransformer > pfTransformer_
PFTrackTransformer.
Resolution Map (resolution as a function of eta and E)
void GoodSeedProducer::fillPreIdRefValueMap ( edm::Handle< reco::TrackCollection tkhandle,
const edm::OrphanHandle< reco::PreIdCollection > &  preidhandle,
edm::ValueMap< reco::PreIdRef >::Filler &  filler 
)
private

Definition at line 554 of file GoodSeedProducer.cc.

References edm::helper::Filler< Map >::insert(), refMap_, and makeHLTPrescaleTable::values.

Referenced by produce().

557 {
558  std::vector<reco::PreIdRef> values;
559 
560  unsigned ntracks=tracks->size();
561  for(unsigned itrack=0;itrack<ntracks;++itrack)
562  {
563  reco::TrackRef theTrackRef(tracks,itrack);
564  std::map<reco::TrackRef,unsigned>::const_iterator itcheck=refMap_.find(theTrackRef);
565  if(itcheck==refMap_.end())
566  {
567  // the track has been early discarded
568  values.push_back(reco::PreIdRef());
569  }
570  else
571  {
572  edm::Ref<reco::PreIdCollection> preIdRef(preidhandle,itcheck->second);
573  values.push_back(preIdRef);
574  // std::cout << " Checking Refs " << (theTrackRef==preIdRef->trackRef()) << std::endl;
575  }
576  }
577  filler.insert(tracks,values.begin(),values.end());
578 }
void insert(const H &h, I begin, I end)
Definition: ValueMap.h:52
tuple tracks
Definition: testEve_cfg.py:39
std::map< reco::TrackRef, unsigned > refMap_
Map used to create the TrackRef, PreIdRef value map.
int GoodSeedProducer::getBin ( float  eta,
float  pt 
)
private

Find the bin in pt and eta.

Definition at line 538 of file GoodSeedProducer.cc.

References LogDebug.

Referenced by produce().

538  {
539  int ie=0;
540  int ip=0;
541  if (fabs(eta)<0.8) ie=0;
542  else{ if (fabs(eta)<1.479) ie=1;
543  else ie=2;
544  }
545  if (pt<6) ip=0;
546  else { if (pt<12) ip=1;
547  else ip=2;
548  }
549  int iep= ie*3+ip;
550  LogDebug("GoodSeedProducer")<<"Track pt ="<<pt<<" eta="<<eta<<" bin="<<iep;
551  return iep;
552 }
#define LogDebug(id)
void GoodSeedProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
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().

139 {
140 
141  LogDebug("GoodSeedProducer")<<"START event: "<<iEvent.id().event()
142  <<" in run "<<iEvent.id().run();
143  //Create empty output collections
144  auto_ptr<ElectronSeedCollection> output_preid(new ElectronSeedCollection);
145  auto_ptr<TrajectorySeedCollection> output_nopre(new TrajectorySeedCollection);
146  auto_ptr<PreIdCollection> output_preidinfo(new PreIdCollection);
147  auto_ptr<edm::ValueMap<reco::PreIdRef> > preIdMap_p(new edm::ValueMap<reco::PreIdRef>);
148  edm::ValueMap<reco::PreIdRef>::Filler mapFiller(*preIdMap_p);
149 
150  //Tracking Tools
151  if(!disablePreId_)
152  {
155  iSetup.get<TrajectoryFitter::Record>().get(fitterName_, aFitter);
156  iSetup.get<TrajectoryFitter::Record>().get(smootherName_, aSmoother);
157  smoother_.reset(aSmoother->clone());
158  fitter_ = aFitter->clone();
159  edm::ESHandle<TransientTrackingRecHitBuilder> theTrackerRecHitBuilder;
160  iSetup.get<TransientRecHitRecord>().get(trackerRecHitBuilderName_,theTrackerRecHitBuilder);
161  hitCloner = static_cast<TkTransientTrackingRecHitBuilder const *>(theTrackerRecHitBuilder.product())->cloner();
162  fitter_->setHitCloner(&hitCloner);
163  smoother_->setHitCloner(&hitCloner);
164  }
165 
166  // clear temporary maps
167  refMap_.clear();
168 
169  //Handle input collections
170  //ECAL clusters
171  Handle<PFClusterCollection> theECPfClustCollection;
172  iEvent.getByToken(pfCLusTagECLabel_,theECPfClustCollection);
173 
174 
175  vector<PFCluster const *> basClus;
176  for ( auto const & klus : *theECPfClustCollection.product() ) {
177  if(klus.correctedEnergy()>clusThreshold_) basClus.push_back(&klus);
178  }
179 
180  //HCAL clusters
181  Handle<PFClusterCollection> theHCPfClustCollection;
182  iEvent.getByToken(pfCLusTagHCLabel_,theHCPfClustCollection);
183 
184  //PS clusters
185  Handle<PFClusterCollection> thePSPfClustCollection;
186  iEvent.getByToken(pfCLusTagPSLabel_,thePSPfClustCollection);
187 
188  //Vector of track collections
189  for (unsigned int istr=0; istr<tracksContainers_.size();++istr){
190 
191  //Track collection
192  Handle<TrackCollection> tkRefCollection;
193  iEvent.getByToken(tracksContainers_[istr], tkRefCollection);
194  const TrackCollection& Tk=*(tkRefCollection.product());
195 
196  //Trajectory collection
197  Handle<vector<Trajectory> > tjCollection;
198  iEvent.getByToken(trajContainers_[istr], tjCollection);
199  auto const & Tj=*(tjCollection.product());
200 
201  LogDebug("GoodSeedProducer")<<"Number of tracks in collection "
202  <<tracksContainers_[istr] <<" to be analyzed "
203  <<Tj.size();
204 
205  //loop over the track collection
206  for(unsigned int i=0;i<Tk.size();++i){
207  if (useQuality_ &&
208  (!(Tk[i].quality(trackQuality_)))) continue;
209 
210  reco::PreId myPreId;
211  bool GoodPreId=false;
212 
213  TrackRef trackRef(tkRefCollection, i);
214  // TrajectorySeed Seed=Tj[i].seed();
215  math::XYZVectorF tkmom(Tk[i].momentum());
216  auto tketa= tkmom.eta();
217  auto tkpt = std::sqrt(tkmom.perp2());
218  auto const & Seed=(*trackRef->seedRef());
219  if(!disablePreId_)
220  {
221  int ipteta=getBin(Tk[i].eta(),Tk[i].pt());
222  int ibin=ipteta*9;
223 
224  float oPTOB=1.f/Tj[i].lastMeasurement().updatedState().globalMomentum().mag();
225  // float chikfred=Tk[i].normalizedChi2();
226  float nchi=Tk[i].normalizedChi2();
227 
228  int nhitpi=Tj[i].foundHits();
229  float EP=0;
230 
231  // set track info
232  myPreId.setTrack(trackRef);
233  //CLUSTERS - TRACK matching
234 
235  auto pfmass= 0.0005;
236  auto pfoutenergy=sqrt((pfmass*pfmass)+Tk[i].outerMomentum().Mag2());
237 
238  XYZTLorentzVector mom =XYZTLorentzVector(Tk[i].outerMomentum().x(),
239  Tk[i].outerMomentum().y(),
240  Tk[i].outerMomentum().z(),
241  pfoutenergy);
242  XYZTLorentzVector pos = XYZTLorentzVector(Tk[i].outerPosition().x(),
243  Tk[i].outerPosition().y(),
244  Tk[i].outerPosition().z(),
245  0.);
246 
247  BaseParticlePropagator theOutParticle( RawParticle(mom,pos),
248  0,0,B_.z());
249  theOutParticle.setCharge(Tk[i].charge());
250 
251  theOutParticle.propagateToEcalEntrance(false);
252 
253 
254 
255  float toteta=1000.f;
256  float totphi=1000.f;
257  float dr=1000.f;
258  float EE=0.f;
259  float feta=0.f;
260  GlobalPoint ElecTrkEcalPos(0,0,0);
261 
262  PFClusterRef clusterRef;
263  math::XYZPoint meanShowerSaved;
264  if(theOutParticle.getSuccess()!=0){
265  ElecTrkEcalPos=GlobalPoint(theOutParticle.vertex().x(),
266  theOutParticle.vertex().y(),
267  theOutParticle.vertex().z()
268  );
269 
270  constexpr float psLim = 2.50746495928f; // std::sinh(1.65f);
271  bool isBelowPS= (ElecTrkEcalPos.z()*ElecTrkEcalPos.z()) > (psLim*psLim)*ElecTrkEcalPos.perp2();
272  // bool isBelowPS=(std::abs(ElecTrkEcalPos.eta())>1.65f);
273 
274  unsigned clusCounter=0;
275  float max_ee = 0;
276  for(auto aClus : basClus) {
277 
278  float tmp_ep=float(aClus->correctedEnergy())*oPTOB;
279  if ((tmp_ep<minEp_)|(tmp_ep>maxEp_)) { ++clusCounter; continue;}
280 
281  double ecalShowerDepth
282  = PFCluster::getDepthCorrection(aClus->correctedEnergy(),
283  isBelowPS,
284  false);
285  auto mom = theOutParticle.momentum().Vect();
286  auto meanShower = ElecTrkEcalPos +
287  GlobalVector(mom.x(),mom.y(),mom.z()).unit()*ecalShowerDepth;
288 
289  float etarec=meanShower.eta();
290  float phirec=meanShower.phi();
291 
292 
293  float tmp_phi=std::abs(aClus->positionREP().phi()-phirec);
294  if (tmp_phi>float(TMath::Pi())) tmp_phi-= float(TMath::TwoPi());
295 
296  float tmp_dr=std::sqrt(std::pow(tmp_phi,2.f)+
297  std::pow(aClus->positionREP().eta()-etarec,2.f));
298 
299  if (tmp_dr<dr){
300  dr=tmp_dr;
301  if(dr < Min_dr_){ // find the most closest and energetic ECAL cluster
302  if(aClus->correctedEnergy() > max_ee){
303 
304  toteta=aClus->positionREP().eta()-etarec;
305  totphi=tmp_phi;
306  EP=tmp_ep;
307  EE=aClus->correctedEnergy();
308  feta= aClus->positionREP().eta();
309  clusterRef = PFClusterRef(theECPfClustCollection,clusCounter);
310  meanShowerSaved = meanShower;
311 
312  }
313  }
314  }
315  ++clusCounter;
316  }
317  }
318  float trk_ecalDeta_ = fabs(toteta);
319  float trk_ecalDphi_ = fabs(totphi);
320 
321  //Resolution maps
322  auto ecaletares
323  = resMapEtaECAL_->GetBinContent(resMapEtaECAL_->FindBin(feta,EE));
324  auto ecalphires
325  = resMapPhiECAL_->GetBinContent(resMapPhiECAL_->FindBin(feta,EE));
326 
327  //geomatrical compatibility
328  float chieta=(toteta!=1000.f)? toteta/ecaletares : toteta;
329  float chiphi=(totphi!=1000.f)? totphi/ecalphires : totphi;
330  float chichi= sqrt(chieta*chieta + chiphi*chiphi);
331 
332  //Matching criteria
333  float eta_cut = thr[ibin+0];
334  float phi_cut = thr[ibin+1];
335  float ep_cutmin=thr[ibin+2];
336  bool GoodMatching= ((trk_ecalDeta_<eta_cut) && (trk_ecalDphi_<phi_cut) && (EP>ep_cutmin) && (nhitpi>10));
337 
338  bool EcalMatching=GoodMatching;
339 
340  if (tkpt>maxPt_) GoodMatching=true;
341  if (tkpt<minPt_) GoodMatching=false;
342 
343 
344 
345  math::XYZPoint myPoint(ElecTrkEcalPos.x(),ElecTrkEcalPos.y(),ElecTrkEcalPos.z());
346  myPreId.setECALMatchingProperties(clusterRef,myPoint,meanShowerSaved,std::abs(toteta),std::abs(totphi),chieta,
347  chiphi,chichi,EP);
348  myPreId.setECALMatching(EcalMatching);
349 
350 
351  bool GoodRange= ((std::abs(tketa)<maxEta_) &
352  (tkpt>minPt_));
353  //KF FILTERING FOR UNMATCHED EVENTS
354  int hit1max=int(thr[ibin+3]);
355  float chiredmin=thr[ibin+4];
356  bool GoodKFFiltering =
357  ((nchi>chiredmin) | (nhitpi<hit1max));
358 
359 
360  myPreId.setTrackFiltering(GoodKFFiltering);
361 
362  bool GoodTkId= false;
363 
364  if((!GoodMatching) &&(GoodKFFiltering) &&(GoodRange)){
365  chired=1000;
366  chiRatio=1000;
367  dpt=0;
368  nhit=nhitpi;
369  chikfred = nchi;
370  trk_ecalDeta = trk_ecalDeta_;
371  trk_ecalDphi = trk_ecalDphi_;
372 
374  Trajectory::ConstRecHitContainer && hits=Tj[i].recHits();
375  for (int ih=hits.size()-1; ih>=0; ih--) tmp.push_back(hits[ih]);
376  Trajectory && FitTjs= fitter_->fitOne(Seed,tmp,Tj[i].lastMeasurement().updatedState());
377 
378  if(FitTjs.isValid()){
379  Trajectory && SmooTjs= smoother_->trajectory(FitTjs);
380  if(SmooTjs.isValid()){
381 
382  //Track refitted with electron hypothesis
383 
384  float pt_out=SmooTjs.firstMeasurement().
385  updatedState().globalMomentum().perp();
386  float pt_in=SmooTjs.lastMeasurement().
387  updatedState().globalMomentum().perp();
388  dpt=(pt_in>0) ? fabs(pt_out-pt_in)/pt_in : 0.;
389  // the following is simply the number of degrees of freedom
390  chiRatio=SmooTjs.chiSquared()/Tj[i].chiSquared();
392 
393  }
394  }
395 
396 
397  //TMVA Analysis
398  if(useTmva_){
399 
400  eta=tketa;
401  pt=tkpt;
402  eP=EP;
403 
404  float Ytmva=reader[ipteta]->EvaluateMVA( method_ );
405 
406  float BDTcut=thr[ibin+5];
407  if ( Ytmva>BDTcut) GoodTkId=true;
408  myPreId.setMVA(GoodTkId,Ytmva);
410  }else{
411 
412  float chiratiocut=thr[ibin+6];
413  float gschicut=thr[ibin+7];
414  float gsptmin=thr[ibin+8];
415 
416  GoodTkId=((dpt>gsptmin)&(chired<gschicut)&(chiRatio<chiratiocut));
417 
418  }
419  }
420 
421  GoodPreId= GoodTkId | GoodMatching;
422 
423  myPreId.setFinalDecision(GoodPreId);
424 
425  if(GoodPreId)
426  LogDebug("GoodSeedProducer")<<"Track (pt= "<<Tk[i].pt()<<
427  "GeV/c, eta= "<<Tk[i].eta() <<
428  ") preidentified for agreement between track and ECAL cluster";
429  if(GoodPreId &&(!GoodMatching))
430  LogDebug("GoodSeedProducer")<<"Track (pt= "<<Tk[i].pt()<<
431  "GeV/c, eta= "<<Tk[i].eta() <<
432  ") preidentified only for track properties";
433 
434  } // end of !disablePreId_
435 
436  if (GoodPreId){
437  //NEW SEED with n hits
438  ElectronSeed NewSeed(Seed);
439  NewSeed.setCtfTrack(trackRef);
440  output_preid->push_back(NewSeed);
441  }else{
442  if (produceCkfseed_){
443  output_nopre->push_back(Seed);
444  }
445  }
446  if(producePreId_ && myPreId.pt()>PtThresholdSavePredId_)
447  {
448  // save the index of the PreId object as to be able to create a Ref later
449  refMap_[trackRef] = output_preidinfo->size();
450  output_preidinfo->push_back(myPreId);
451  }
452  } //end loop on track collection
453  } //end loop on the vector of track collections
454 
455  // no disablePreId_ switch, it is simpler to have an empty collection rather than no collection
456  iEvent.put(output_preid,preidgsf_);
457  if (produceCkfseed_)
458  iEvent.put(output_nopre,preidckf_);
459  if(producePreId_)
460  {
461  const edm::OrphanHandle<reco::PreIdCollection> preIdRefProd = iEvent.put(output_preidinfo,preidname_);
462  // now make the Value Map, but only if one input collection
463  if(tracksContainers_.size()==1)
464  {
465  Handle<TrackCollection> tkRefCollection ;
466  iEvent.getByToken(tracksContainers_[0],tkRefCollection);
467  fillPreIdRefValueMap(tkRefCollection,preIdRefProd,mapFiller);
468  mapFiller.fill();
469  iEvent.put(preIdMap_p,preidname_);
470  }
471  }
472  // clear temporary maps
473  refMap_.clear();
474 }
#define LogDebug(id)
RunNumber_t run() const
Definition: EventID.h:39
const double TwoPi
const double Pi
void setCharge(float q)
set the MEASURED charge
Definition: RawParticle.cc:139
EventNumber_t event() const
Definition: EventID.h:41
int i
Definition: DBlmapReader.cc:9
void setECALMatchingProperties(PFClusterRef clusterRef, const math::XYZPoint &ecalpos, const math::XYZPoint &meanShower, float deta, float dphi, float chieta, float chiphi, float chi2, float eop)
Definition: PreId.h:38
std::vector< reco::PreId > PreIdCollection
Definition: PreIdFwd.h:6
std::string preidckf_
Name of the Seed(Ckf) Collection.
edm::EDGetTokenT< reco::PFClusterCollection > pfCLusTagPSLabel_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:449
std::array< std::unique_ptr< TMVA::Reader >, 9 > reader
READER FOR TMVA.
float eP
VARIABLES NEEDED FOR TMVA.
std::unique_ptr< TrajectorySmoother > smoother_
Smoother.
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
std::unique_ptr< PFResolutionMap > resMapEtaECAL_
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:13
float thr[150]
vector of thresholds for different bins of eta and pt
#define constexpr
float float float z
TkClonerImpl hitCloner
void setTrack(reco::TrackRef trackref)
Definition: PreId.h:34
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
int getBin(float, float)
Find the bin in pt and eta.
std::unique_ptr< TrajectoryFitter > fitter_
Fitter.
void setMVA(bool accepted, float mva, unsigned n=0)
Definition: PreId.h:72
std::string method_
TMVA method.
std::vector< TrajectorySeed > TrajectorySeedCollection
void setTrackFiltering(bool accepted, unsigned n=0)
Definition: PreId.h:68
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:113
string unit
Definition: csvLumiCalc.py:46
T sqrt(T t)
Definition: SSEVec.h:48
edm::Ref< PFClusterCollection > PFClusterRef
persistent reference to PFCluster objects
Definition: PFClusterFwd.h:15
math::XYZVector B_
B field.
std::string preidname_
Name of the preid Collection (FB)
TrajectoryMeasurement const & lastMeasurement() const
Definition: Trajectory.h:181
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
bool useQuality_
TRACK QUALITY.
void fillPreIdRefValueMap(edm::Handle< reco::TrackCollection > tkhandle, const edm::OrphanHandle< reco::PreIdCollection > &, edm::ValueMap< reco::PreIdRef >::Filler &filler)
double f[11][100]
double minPt_
Minimum transverse momentum and maximum pseudorapidity.
std::string fitterName_
std::vector< ElectronSeed > ElectronSeedCollection
collection of ElectronSeed objects
bool disablePreId_
switch to disable the pre-id
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< float > > XYZVectorF
spatial vector with cartesian internal representation
Definition: Vector3D.h:17
reco::TrackBase::TrackQuality trackQuality_
double clusThreshold_
Cut on the energy of the clusters.
TrackingRecHit::ConstRecHitContainer ConstRecHitContainer
Definition: Trajectory.h:47
bool produceCkfseed_
Produce the Seed for Ckf tracks?
bool isValid() const
Definition: Trajectory.h:269
TrajectoryMeasurement const & firstMeasurement() const
Definition: Trajectory.h:194
float pt() const
Definition: PreId.h:92
T const * product() const
Definition: Handle.h:81
bool useTmva_
USE OF TMVA.
std::unique_ptr< PFResolutionMap > resMapPhiECAL_
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:86
float chiSquared() const
Definition: Trajectory.h:252
std::vector< edm::EDGetTokenT< reco::TrackCollection > > tracksContainers_
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
void setTrackProperties(float newchi2, float chi2ratio, float dpt)
Definition: PreId.h:50
edm::EventID id() const
Definition: EventBase.h:60
void setECALMatching(bool accepted, unsigned n=0)
Definition: PreId.h:60
std::map< reco::TrackRef, unsigned > refMap_
Map used to create the TrackRef, PreIdRef value map.
bool producePreId_
Produce the pre-id debugging collection.
std::string trackerRecHitBuilderName_
std::string smootherName_
edm::EDGetTokenT< reco::PFClusterCollection > pfCLusTagHCLabel_
Definition: DDAxes.h:10
std::string preidgsf_
Name of the Seed(Gsf) Collection.
edm::EDGetTokenT< reco::PFClusterCollection > pfCLusTagECLabel_
double minEp_
Min and MAx allowed values forEoverP.
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
std::vector< edm::EDGetTokenT< std::vector< Trajectory > > > trajContainers_
double PtThresholdSavePredId_
Threshold to save Pre Idinfo.
Global3DVector GlobalVector
Definition: GlobalVector.h:10
void setFinalDecision(bool accepted, unsigned n=0)
Definition: PreId.h:56
math::XYZTLorentzVector XYZTLorentzVector
Definition: RawParticle.h:15

Member Data Documentation

math::XYZVector GoodSeedProducer::B_
private

B field.

Definition at line 163 of file GoodSeedProducer.h.

Referenced by beginRun(), and produce().

float GoodSeedProducer::chikfred
private

Definition at line 153 of file GoodSeedProducer.h.

Referenced by beginRun(), and produce().

float GoodSeedProducer::chiRatio
private

Definition at line 152 of file GoodSeedProducer.h.

Referenced by beginRun(), and produce().

float GoodSeedProducer::chired
private

Definition at line 152 of file GoodSeedProducer.h.

Referenced by beginRun(), and produce().

double GoodSeedProducer::clusThreshold_
private

Cut on the energy of the clusters.

Definition at line 107 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

edm::ParameterSet GoodSeedProducer::conf_
private

Definition at line 129 of file GoodSeedProducer.h.

Referenced by beginRun().

bool GoodSeedProducer::disablePreId_
private

switch to disable the pre-id

Definition at line 117 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

float GoodSeedProducer::dpt
private

Definition at line 152 of file GoodSeedProducer.h.

Referenced by beginRun(), and produce().

double GoodSeedProducer::EcalStripSumE_deltaEta_
private

Definition at line 100 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer().

double GoodSeedProducer::EcalStripSumE_deltaPhiOverQ_maxValue_
private

Definition at line 102 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer().

double GoodSeedProducer::EcalStripSumE_deltaPhiOverQ_minValue_
private

Definition at line 101 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer().

double GoodSeedProducer::EcalStripSumE_minClusEnergy_
private

Definition at line 99 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer().

float GoodSeedProducer::eP
private

VARIABLES NEEDED FOR TMVA.

Definition at line 152 of file GoodSeedProducer.h.

Referenced by beginRun(), and produce().

float GoodSeedProducer::eta
private
std::unique_ptr<TrajectoryFitter> GoodSeedProducer::fitter_
private

Fitter.

Definition at line 79 of file GoodSeedProducer.h.

Referenced by produce().

std::string GoodSeedProducer::fitterName_
private

Definition at line 136 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

double GoodSeedProducer::HcalIsolWindow_
private

Definition at line 98 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer().

TkClonerImpl GoodSeedProducer::hitCloner
private

Definition at line 85 of file GoodSeedProducer.h.

Referenced by produce().

double GoodSeedProducer::maxEp_
private

Definition at line 111 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

double GoodSeedProducer::maxEta_
private

Definition at line 96 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

double GoodSeedProducer::maxHoverP_
private

Definition at line 104 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer().

double GoodSeedProducer::maxPt_
private

Definition at line 95 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

std::string GoodSeedProducer::method_
private

TMVA method.

Definition at line 160 of file GoodSeedProducer.h.

Referenced by beginRun(), and produce().

double GoodSeedProducer::Min_dr_
private

Definition at line 154 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

double GoodSeedProducer::minEoverP_
private

Definition at line 103 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer().

double GoodSeedProducer::minEp_
private

Min and MAx allowed values forEoverP.

Definition at line 110 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

double GoodSeedProducer::minPt_
private

Minimum transverse momentum and maximum pseudorapidity.

Definition at line 94 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

float GoodSeedProducer::nhit
private

Definition at line 152 of file GoodSeedProducer.h.

Referenced by beginRun(), and produce().

int GoodSeedProducer::nHitsInSeed_
private

Number of hits in the seed;.

Definition at line 91 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer().

edm::EDGetTokenT<reco::PFClusterCollection> GoodSeedProducer::pfCLusTagECLabel_
private

Definition at line 131 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

edm::EDGetTokenT<reco::PFClusterCollection> GoodSeedProducer::pfCLusTagHCLabel_
private

Definition at line 132 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

edm::EDGetTokenT<reco::PFClusterCollection> GoodSeedProducer::pfCLusTagPSLabel_
private

Definition at line 130 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

PFGeometry GoodSeedProducer::pfGeometry_
private

Definition at line 168 of file GoodSeedProducer.h.

std::unique_ptr<PFTrackTransformer> GoodSeedProducer::pfTransformer_
private

PFTrackTransformer.

Definition at line 88 of file GoodSeedProducer.h.

Referenced by beginRun().

std::string GoodSeedProducer::preidckf_
private

Name of the Seed(Ckf) Collection.

Definition at line 70 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

std::string GoodSeedProducer::preidgsf_
private

Name of the Seed(Gsf) Collection.

Definition at line 73 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

std::string GoodSeedProducer::preidname_
private

Name of the preid Collection (FB)

Definition at line 76 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

bool GoodSeedProducer::produceCkfseed_
private

Produce the Seed for Ckf tracks?

Definition at line 114 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

bool GoodSeedProducer::producePreId_
private

Produce the pre-id debugging collection.

Definition at line 120 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

std::string GoodSeedProducer::propagatorName_
private

Definition at line 138 of file GoodSeedProducer.h.

float GoodSeedProducer::pt
private
double GoodSeedProducer::PtThresholdSavePredId_
private

Threshold to save Pre Idinfo.

Definition at line 123 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

std::array<std::unique_ptr<TMVA::Reader>,9> GoodSeedProducer::reader {}
private

READER FOR TMVA.

Definition at line 149 of file GoodSeedProducer.h.

Referenced by beginRun(), and produce().

std::map<reco::TrackRef,unsigned> GoodSeedProducer::refMap_
private

Map used to create the TrackRef, PreIdRef value map.

Definition at line 166 of file GoodSeedProducer.h.

Referenced by fillPreIdRefValueMap(), and produce().

std::unique_ptr<PFResolutionMap> GoodSeedProducer::resMapEtaECAL_
private

Definition at line 141 of file GoodSeedProducer.h.

Referenced by beginRun(), and produce().

std::unique_ptr<PFResolutionMap> GoodSeedProducer::resMapPhiECAL_
private

Definition at line 142 of file GoodSeedProducer.h.

Referenced by beginRun(), and produce().

std::unique_ptr<TrajectorySmoother> GoodSeedProducer::smoother_
private

Smoother.

Definition at line 82 of file GoodSeedProducer.h.

Referenced by produce().

std::string GoodSeedProducer::smootherName_
private

Definition at line 137 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

float GoodSeedProducer::thr[150]
private

vector of thresholds for different bins of eta and pt

Definition at line 126 of file GoodSeedProducer.h.

Referenced by beginRun(), and produce().

std::string GoodSeedProducer::trackerRecHitBuilderName_
private

Definition at line 139 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

reco::TrackBase::TrackQuality GoodSeedProducer::trackQuality_
private

Definition at line 146 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

std::vector<edm::EDGetTokenT<reco::TrackCollection > > GoodSeedProducer::tracksContainers_
private

Definition at line 134 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

std::vector<edm::EDGetTokenT<std::vector<Trajectory> > > GoodSeedProducer::trajContainers_
private

Definition at line 133 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

float GoodSeedProducer::trk_ecalDeta
private

Definition at line 153 of file GoodSeedProducer.h.

Referenced by beginRun(), and produce().

float GoodSeedProducer::trk_ecalDphi
private

Definition at line 153 of file GoodSeedProducer.h.

Referenced by beginRun(), and produce().

bool GoodSeedProducer::useQuality_
private

TRACK QUALITY.

Definition at line 145 of file GoodSeedProducer.h.

Referenced by GoodSeedProducer(), and produce().

bool GoodSeedProducer::useTmva_
private

USE OF TMVA.

Definition at line 157 of file GoodSeedProducer.h.

Referenced by beginRun(), GoodSeedProducer(), and produce().