CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackAnalyzer.h
Go to the documentation of this file.
1 #ifndef TrackAnalyzer_H
2 #define TrackAnalyzer_H
3 // -*- C++ -*-
4 //
5 //
9 // Original Author: Suchandra Dutta, Giorgia Mila
10 // Created: Thu 28 22:45:30 CEST 2008
11 
12 #include <memory>
13 #include <fstream>
23 
27 
28 class DQMStore;
29 
30 class BeamSpot;
32 {
33  public:
36  virtual ~TrackAnalyzer();
37  virtual void initHisto(DQMStore::IBooker & ibooker);
38 
39  virtual void analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup, const reco::Track& track);
40 
41  void doSoftReset (DQMStore * dqmStore_);
42  void doReset ();
43  void undoSoftReset(DQMStore * dqmStore_);
44  void setLumiFlag();
45 
46  private:
47  void initHistos();
48  void fillHistosForState(const edm::EventSetup& iSetup, const reco::Track & track, std::string sname);
49  void bookHistosForState(std::string sname,DQMStore::IBooker & ibooker);
54  void fillHistosForHitProperties(const edm::EventSetup& iSetup, const reco::Track & track, std::string sname);
55  void fillHistosForLScertification(const edm::EventSetup& iSetup, const reco::Track & track, std::string sname);
56  void fillHistosForTrackerSpecific(const reco::Track & track);
57 
58  // ----------member data ---------------------------
60 
63 
65 
68  bool doBSPlots_;
69  bool doPVPlots_;
75  // ADD by Mia
81  // ADD by Mia in order to clean the tracking MEs
82  // do not plot *Theta* and TrackPx* and TrackPy*
85  // ADD by Mia in order to not plot DistanceOfClosestApproach w.r.t. (0,0,0)
86  // the DistanceOfClosestApproach w.r.t. the beam-spot is already shown in DistanceOfClosestApproachToBS
89 
91 
92  // ADD by Mia in order to turnON test MEs
94 
95  //For HI Plots
96  bool doHIPlots_;
97 
98  struct TkParameterMEs {
100  TrackP(NULL)
101  , TrackPx(NULL)
102  , TrackPy(NULL)
103  , TrackPz(NULL)
104  , TrackPt(NULL)
105 
106  , TrackPxErr(NULL)
107  , TrackPyErr(NULL)
108  , TrackPzErr(NULL)
109  , TrackPtErr(NULL)
110  , TrackPErr(NULL)
111 
113 
114  , TrackQ(NULL)
115 
116  , TrackPhi(NULL)
117  , TrackEta(NULL)
118  , TrackTheta(NULL)
119 
120  , TrackPhiErr(NULL)
121  , TrackEtaErr(NULL)
123 
128 
133 
137 
141 
145  {}
146 
152 
158 
160 
162 
166 
170 
175 
180 
184 
188 
192 
193  };
194  std::map<std::string, TkParameterMEs> TkParameterMEMap;
195 
196 
200 
205 
210 
212 
216 
218 
222 
226 
230 
253  // TESTING MEs
256 
257  // add by Mia in order to deal w/ LS transitions
260 
261  //new plots for Heavy Ion DQM
264 
265 
273 
276  };
277  std::map<std::string, TkRecHitsPerSubDetMEs> TkRecHitsPerSubDetMEMap;
278 
279 
280 
281  std::string histname; //for naming the histograms according to algorithm used
282 };
283 #endif
MonitorElement * NumberOfRecHitsPerTrackVsPhi
MonitorElement * NumberOfValidRecHitsPerTrackVsPhi
MonitorElement * Chi2ProbVsPhi
MonitorElement * NumberOfLayersPerTrackVsPhi
MonitorElement * DistanceOfClosestApproachToPVVsPhi
MonitorElement * NumberOfRecHitVsPhiVsEtaPerTrack
bool doTrackerSpecific_
Definition: TrackAnalyzer.h:66
void fillHistosForTrackerSpecific(const reco::Track &track)
MonitorElement * NumberOfRecHitsPerTrackVsEta
void bookHistosForLScertification(DQMStore::IBooker &ibooker)
MonitorElement * NumberOfValidRecHitsPerTrack
void fillHistosForHitProperties(const edm::EventSetup &iSetup, const reco::Track &track, std::string sname)
MonitorElement * Chi2oNDF_lumiFlag
MonitorElement * xPointOfClosestApproachToPV
MonitorElement * NumberOfLayersPerTrackVsPhi
MonitorElement * NumberOfLostRecHitsPerTrack
edm::ParameterSet conf_
Definition: TrackAnalyzer.h:64
bool doGeneralPropertiesPlots_
Definition: TrackAnalyzer.h:71
void fillHistosForLScertification(const edm::EventSetup &iSetup, const reco::Track &track, std::string sname)
MonitorElement * Chi2oNDFVsPhi
MonitorElement * Chi2ProbVsPhi
MonitorElement * DistanceOfClosestApproachVsPhi
#define NULL
Definition: scimark2.h:8
std::map< std::string, TkParameterMEs > TkParameterMEMap
MonitorElement * NumberOfRecHitsPerTrackVsTheta
MonitorElement * algorithm
bool doHitPropertiesPlots_
Definition: TrackAnalyzer.h:73
MonitorElement * DistanceOfClosestApproach
bool doRecHitVsPhiVsEtaPerTrack_
Definition: TrackAnalyzer.h:74
MonitorElement * NumberOfLayersPerTrackVsTheta
MonitorElement * NumberOfRecHitsPerTrack_lumiFlag
std::map< std::string, TkRecHitsPerSubDetMEs > TkRecHitsPerSubDetMEMap
MonitorElement * NumberOfValidRecHitVsPhiVsEtaPerTrack
bool doMeasurementStatePlots_
Definition: TrackAnalyzer.h:72
MonitorElement * NumberOfRecHitsPerTrack
MonitorElement * TESTDistanceOfClosestApproachToBSVsPhi
MonitorElement * NumberOfValidRecHitsPerTrackVsEta
bool doTrack2DChi2Plots_
Definition: TrackAnalyzer.h:79
MonitorElement * Chi2ProbVsTheta
MonitorElement * Chi2oNDFVsEta
MonitorElement * TransDCASig
int iEvent
Definition: GenABIO.cc:230
MonitorElement * NumberOfRecHitsPerTrackVsPhi
MonitorElement * xPointOfClosestApproachVsZ0wrt000
bool doDCAwrt000Plots_
Definition: TrackAnalyzer.h:88
MonitorElement * NumberOfRecHitsPerTrackVsTheta
MonitorElement * xPointOfClosestApproach
MonitorElement * Chi2oNDFVsTheta
bool doTrackLayersVsPhiVsEtaPerTrack_
Definition: TrackAnalyzer.h:78
MonitorElement * NumberOfValidRecHitsPerTrackVsEta
MonitorElement * NumberOfRecHitsPerTrackVsPhi
std::string TopFolder_
Definition: TrackAnalyzer.h:59
MonitorElement * xPointOfClosestApproachVsZ0wrtBS
MonitorElement * NumberOfValidRecHitsPerTrackVsPhi
MonitorElement * NumberOfValidRecHitVsPhiVsEtaPerTrack
MonitorElement * yPointOfClosestApproachToPV
MonitorElement * Chi2ProbVsTheta
MonitorElement * NumberOfRecHitsPerTrackVsEta
MonitorElement * Chi2oNDFVsTheta
MonitorElement * TrackThetaErr
void bookHistosForHitProperties(DQMStore::IBooker &ibooker)
MonitorElement * DistanceOfClosestApproachVsEta
MonitorElement * zPointOfClosestApproachVsPhi
MonitorElement * NumberOfLayersPerTrackVsEta
MonitorElement * NumberOfLayersPerTrackVsTheta
void bookHistosForTrackerSpecific(DQMStore::IBooker &ibooker)
void fillHistosForState(const edm::EventSetup &iSetup, const reco::Track &track, std::string sname)
MonitorElement * Chi2
virtual ~TrackAnalyzer()
bool doLumiAnalysis_
Definition: TrackAnalyzer.h:90
MonitorElement * NumberOfLayersPerTrackVsEta
MonitorElement * NumberOfValidRecHitsPerTrackVsTheta
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
Definition: TrackAnalyzer.h:61
virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup, const reco::Track &track)
MonitorElement * xPointOfClosestApproachVsZ0wrtPV
MonitorElement * yPointOfClosestApproachVsZ0wrtBS
MonitorElement * NumberOfLayersPerTrack
MonitorElement * DistanceOfClosestApproachVsTheta
void bookHistosForBeamSpot(DQMStore::IBooker &ibooker)
MonitorElement * NumberOfLayersPerTrackVsEta
virtual void initHisto(DQMStore::IBooker &ibooker)
bool doDCAwrtPVPlots_
Definition: TrackAnalyzer.h:87
MonitorElement * Chi2ProbVsEta
MonitorElement * zPointOfClosestApproachToPV
MonitorElement * DistanceOfClosestApproachToPV
bool doTrackPxPyPlots_
Definition: TrackAnalyzer.h:84
MonitorElement * NumberOfRecHitVsPhiVsEtaPerTrack
MonitorElement * DistanceOfClosestApproachToBSVsPhi
bool doLayersVsPhiVsEtaPerTrack_
Definition: TrackAnalyzer.h:76
void doSoftReset(DQMStore *dqmStore_)
bool doTrackRecHitVsPhiVsEtaPerTrack_
Definition: TrackAnalyzer.h:77
MonitorElement * yPointOfClosestApproachVsZ0wrt000
MonitorElement * TrackPtErrVsEta
MonitorElement * TESTDistanceOfClosestApproachToBS
MonitorElement * NumberOfRecHitsPerTrackVsEta
MonitorElement * NumberOfValidRecHitsPerTrackVsTheta
void bookHistosForState(std::string sname, DQMStore::IBooker &ibooker)
MonitorElement * yPointOfClosestApproach
MonitorElement * NumberOfLayersVsPhiVsEtaPerTrack
bool doRecHitsPerTrackProfile_
Definition: TrackAnalyzer.h:80
MonitorElement * Chi2Prob
MonitorElement * yPointOfClosestApproachVsZ0wrtPV
MonitorElement * zPointOfClosestApproach
TrackAnalyzer(const edm::ParameterSet &)
MonitorElement * Chi2ProbVsEta
MonitorElement * DistanceOfClosestApproachToBS
MonitorElement * Chi2oNDF
std::string histname
MonitorElement * Chi2oNDFVsEta
void undoSoftReset(DQMStore *dqmStore_)
MonitorElement * NumberOfLayersPerTrackVsPhi
MonitorElement * LongDCASig
edm::EDGetTokenT< reco::VertexCollection > pvToken_
Definition: TrackAnalyzer.h:62
MonitorElement * Chi2oNDFVsPhi