CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GoodSeedProducer.h
Go to the documentation of this file.
1 #ifndef GoodSeedProducer_H
2 #define GoodSeedProducer_H
3 // system include files
4 #include <memory>
5 
6 // user include files
7 
20 #include "TMVA/Reader.h"
23 
35 //namespace reco {
36 class PFResolutionMap;
37 // }
38 
39 class PFTrackTransformer;
40 class TrajectoryFitter;
41 class TrajectorySmoother;
42 class TrackerGeometry;
44 
45 
48  public:
49  explicit GoodSeedProducer(const edm::ParameterSet&);
51 
52  private:
53  virtual void beginRun(const edm::Run & run,const edm::EventSetup&) override;
54  virtual void produce(edm::Event&, const edm::EventSetup&) override;
55  virtual void endRun(const edm::Run & run,const edm::EventSetup&) override;
56 
58  int getBin(float,float);
59  int getBin(float);
60  void PSforTMVA(const math::XYZTLorentzVector& mom,
61  const math::XYZTLorentzVector& pos);
62  bool IsIsolated(float charge,float P,
64  const reco::PFClusterCollection &ecalColl,
65  const reco::PFClusterCollection &hcalColl);
66 
70  // ----------member data ---------------------------
71 
73  std::vector<reco::PFCluster> ps1Clus;
74  std::vector<reco::PFCluster> ps2Clus;
75 
78 
81 
84 
87 
90 
93 
96 
98  double minPt_;
99  double maxPt_;
100  double maxEta_;
101 
109  double minEoverP_;
110  double maxHoverP_;
112 
115 
117  double minEp_;
118  double maxEp_;
119 
122 
125 
128 
131 
133  float thr[150];
134  float thrPS[20];
135 
136  // ----------access to event data
141  std::vector<edm::InputTag> tracksContainers_;
142 
143 
147 
150 
154 
156  TMVA::Reader *reader;
157 
162  bool useTmva_;
163 
166 
169 
172 
174  std::map<reco::TrackRef,unsigned> refMap_;
175 
176 };
177 #endif
int nHitsInSeed_
Number of hits in the seed;.
edm::ESHandle< TrajectoryFitter > fitter_
Fitter.
std::string preidckf_
Name of the Seed(Ckf) Collection.
std::vector< reco::PFCluster > ps1Clus
Vector of clusters of the PreShower.
TrackQuality
track quality
Definition: TrackBase.h:93
float eP
VARIABLES NEEDED FOR TMVA.
edm::InputTag pfCLusTagPSLabel_
void PSforTMVA(const math::XYZTLorentzVector &mom, const math::XYZTLorentzVector &pos)
PFResolutionMap * resMapEtaECAL_
#define P
edm::InputTag pfCLusTagHCLabel_
double EcalStripSumE_minClusEnergy_
float thr[150]
vector of thresholds for different bins of eta and pt
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
Definition: Point3D.h:10
bool IsIsolated(float charge, float P, math::XYZPointF, const reco::PFClusterCollection &ecalColl, const reco::PFClusterCollection &hcalColl)
bool applyIsolation_
ISOLATION REQUEST AS DONE IN THE TAU GROUP.
double charge(const std::vector< uint8_t > &Ampls)
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.
edm::ParameterSet conf_
std::string method_
TMVA method.
double EcalStripSumE_deltaEta_
double EcalStripSumE_deltaPhiOverQ_minValue_
double EcalStripSumE_deltaPhiOverQ_maxValue_
virtual void produce(edm::Event &, const edm::EventSetup &) override
TrajectoryStateOnSurface TSOS
math::XYZVector B_
B field.
std::string preidname_
Name of the preid Collection (FB)
std::string propagatorName_
bool useQuality_
TRACK QUALITY.
void fillPreIdRefValueMap(edm::Handle< reco::TrackCollection > tkhandle, const edm::OrphanHandle< reco::PreIdCollection > &, edm::ValueMap< reco::PreIdRef >::Filler &filler)
double minPt_
Minimum transverse momentum and maximum pseudorapidity.
PFResolutionMap * resMapPhiECAL_
std::string fitterName_
TMVA::Reader * reader
READER FOR TMVA.
bool disablePreId_
switch to disable the pre-id
virtual void beginRun(const edm::Run &run, const edm::EventSetup &) override
reco::TrackBase::TrackQuality trackQuality_
double clusThreshold_
Cut on the energy of the clusters.
PFTrackTransformer * pfTransformer_
PFTrackTransformer.
virtual void endRun(const edm::Run &run, const edm::EventSetup &) override
bool produceCkfseed_
Produce the Seed for Ckf tracks?
bool useTmva_
USE OF TMVA.
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
std::vector< reco::PFCluster > ps2Clus
std::vector< edm::InputTag > tracksContainers_
bool usePreshower_
Use of Preshower clusters.
std::map< reco::TrackRef, unsigned > refMap_
Map used to create the TrackRef, PreIdRef value map.
bool producePreId_
Produce the pre-id debugging collection.
GoodSeedProducer(const edm::ParameterSet &)
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
Definition: PFClusterFwd.h:9
std::string smootherName_
edm::InputTag pfCLusTagECLabel_
Resolution Map (resolution as a function of eta and E)
std::string preidgsf_
Name of the Seed(Gsf) Collection.
double minEp_
Min and MAx allowed values forEoverP.
edm::ESHandle< TrajectorySmoother > smoother_
Smoother.
Definition: Run.h:41
double PtThresholdSavePredId_
Threshold to save Pre Idinfo.