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 // $Id: TrackAnalyzer.h,v 1.16 2012/04/27 15:56:48 tosi Exp $
12 
13 #include <memory>
14 #include <fstream>
22 
23 
24 class DQMStore;
25 
27 {
28  public:
30  virtual ~TrackAnalyzer();
31  virtual void beginJob(DQMStore * dqmStore_);
32 
33  virtual void analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup, const reco::Track& track);
34 
35  void doSoftReset (DQMStore * dqmStore_);
36  void doReset (DQMStore * dqmStore_);
37  void undoSoftReset(DQMStore * dqmStore_);
38  void setLumiFlag();
39 
40  private:
41 
42  void fillHistosForState(const edm::EventSetup& iSetup, const reco::Track & track, std::string sname);
43  void bookHistosForState(std::string sname, DQMStore * dqmStore_);
44  void doTrackerSpecificInitialization(DQMStore * dqmStore_);
45  void doTrackerSpecificFillHists(const reco::Track & track);
46 
47  // ----------member data ---------------------------
48 
50 
53  bool doBSPlots_;
60  // ADD by Mia
65 
66  // ADD by Mia in order to clean the tracking MEs
67  // do not plot *Theta* and TrackPx* and TrackPy*
70  // ADD by Mia in order to not plot DistanceOfClosestApproach w.r.t. (0,0,0)
71  // the DistanceOfClosestApproach w.r.t. the beam-spot is already shown in DistanceOfClosestApproachToBS
73 
75 
76  // ADD by Mia in order to turnON test MEs
78 
103  // TESTING MEs
106 
107  // add by Mia in order to deal w/ LS transitions
112 
119 
126 
133 
140 
147 
154 
170 
172  {
174  : TrackP(NULL)
175  , TrackPx(NULL)
176  , TrackPy(NULL)
177  , TrackPz(NULL)
178  , TrackPt(NULL)
179 
180  , TrackPxErr(NULL)
181  , TrackPyErr(NULL)
182  , TrackPzErr(NULL)
183  , TrackPtErr(NULL)
184  , TrackPErr(NULL)
185 
187 
188  , TrackQ(NULL)
189 
190  , TrackPhi(NULL)
191  , TrackEta(NULL)
192  , TrackTheta(NULL)
193 
194  , TrackPhiErr(NULL)
195  , TrackEtaErr(NULL)
197 
210 
217 
218  , GoodTrackPt(NULL)
219  , GoodTrackEta(NULL)
220  , GoodTrackPhi(NULL)
221  {}
222 
228 
234 
236 
238 
242 
246 
259 
266 
270  };
271 
272  std::map<std::string, TkParameterMEs> TkParameterMEMap;
273 
274  std::string histname; //for naming the histograms according to algorithm used
275 };
276 #endif
MonitorElement * NumberOfRecHitsPerTrackVsPhi
MonitorElement * NumberOfLayersPerTrackVsPhi
MonitorElement * NumberOfPixEndcapLayersPerTrackVsEtaProfile
MonitorElement * NumberOfRecHitsFoundPerTrack
Definition: TrackAnalyzer.h:80
MonitorElement * NumberOfRecHitVsPhiVsEtaPerTrack
Definition: TrackAnalyzer.h:83
bool doTrackerSpecific_
Definition: TrackAnalyzer.h:51
MonitorElement * NumberOfLayersPerTrackVsEtaProfile
MonitorElement * Chi2oNDFVsEtaProfile
MonitorElement * NumberOfPixEndcapLayersPerTrack
MonitorElement * NumberOfPixBarrelLayersPerTrack
MonitorElement * GoodTrackNumberOfRecHitsPerTrackVsPhiProfile
MonitorElement * GoodTrackChi2ProbVsPhi
MonitorElement * GoodTrackNumberOfRecHitsPerTrack
MonitorElement * NumberOfTOBLayersPerTrackVsPhiProfile
MonitorElement * GoodTrackNumberOfLayersVsPhiVsEtaPerTrack
MonitorElement * NumberOfTIDRecHitsPerTrackVsPhiProfile
MonitorElement * GoodTrackChi2oNDFVsPhi
MonitorElement * Chi2oNDF_lumiFlag
MonitorElement * NumberOfRecHitsLostPerTrack
Definition: TrackAnalyzer.h:81
MonitorElement * NumberOfTIBLayersPerTrack
MonitorElement * NumberOfTOBRecHitsPerTrack
MonitorElement * NumberOfPixEndcapRecHitsPerTrack
MonitorElement * NumberOfTECRecHitsPerTrackVsPhiProfile
MonitorElement * NumberOfPixBarrelRecHitsPerTrackVsPhiProfile
MonitorElement * NumberOfTIBRecHitsPerTrackVsPhiProfile
MonitorElement * NumberOfTIDRecHitsPerTrackVsEtaProfile
edm::ParameterSet conf_
Definition: TrackAnalyzer.h:49
MonitorElement * NumberOfRecHitsPerTrackVsPhiProfile
void doReset(DQMStore *dqmStore_)
bool doGeneralPropertiesPlots_
Definition: TrackAnalyzer.h:56
MonitorElement * NumberOfPixBarrelRecHitsPerTrackVsEtaProfile
MonitorElement * GoodTrackNumberOfRecHitVsPhiVsEtaPerTrack
MonitorElement * DistanceOfClosestApproachVsPhi
Definition: TrackAnalyzer.h:91
MonitorElement * GoodTrackNumberOfRecHitsPerTrack_lumiFlag
#define NULL
Definition: scimark2.h:8
std::map< std::string, TkParameterMEs > TkParameterMEMap
MonitorElement * GoodTrackNumberOfRecHitsPerTrackVsEtaProfile
MonitorElement * algorithm
bool doHitPropertiesPlots_
Definition: TrackAnalyzer.h:58
MonitorElement * DistanceOfClosestApproach
Definition: TrackAnalyzer.h:88
MonitorElement * NumberOfPixEndcapLayersPerTrackVsPhiProfile
bool doRecHitVsPhiVsEtaPerTrack_
Definition: TrackAnalyzer.h:59
MonitorElement * NumberOfLayersPerTrackVsTheta
MonitorElement * NumberOfTIBLayersPerTrackVsEtaProfile
MonitorElement * NumberOfRecHitsPerTrack_lumiFlag
bool doMeasurementStatePlots_
Definition: TrackAnalyzer.h:57
MonitorElement * NumberOfRecHitsPerTrack
Definition: TrackAnalyzer.h:79
MonitorElement * NumberOfPixEndcapRecHitsPerTrackVsEtaProfile
MonitorElement * GoodTrackChi2oNDF
MonitorElement * GoodTrackChi2Prob
void bookHistosForState(std::string sname, DQMStore *dqmStore_)
MonitorElement * TESTDistanceOfClosestApproachToBSVsPhi
MonitorElement * NumberOfTECLayersPerTrackVsEtaProfile
MonitorElement * NumberOfLayersPerTrackVsPhiProfile
MonitorElement * NumberOfPixBarrelLayersPerTrackVsPhiProfile
virtual void beginJob(DQMStore *dqmStore_)
MonitorElement * Chi2oNDFVsEta
int iEvent
Definition: GenABIO.cc:243
MonitorElement * xPointOfClosestApproachVsZ0wrt000
Definition: TrackAnalyzer.h:95
MonitorElement * GoodTrackChi2ProbVsEta
MonitorElement * NumberOfTOBLayersPerTrack
MonitorElement * NumberOfTECLayersPerTrack
bool doDCAwrt000Plots_
Definition: TrackAnalyzer.h:72
void doTrackerSpecificInitialization(DQMStore *dqmStore_)
MonitorElement * NumberOfRecHitsPerTrackVsTheta
MonitorElement * xPointOfClosestApproach
Definition: TrackAnalyzer.h:94
MonitorElement * GoodTrackAlgorithm
MonitorElement * NumberOfTIDRecHitsPerTrack
void doTrackerSpecificFillHists(const reco::Track &track)
MonitorElement * NumberOfLayersPerTrackVsThetaProfile
MonitorElement * xPointOfClosestApproachVsZ0wrtBS
Definition: TrackAnalyzer.h:96
MonitorElement * NumberOfTIDLayersPerTrack
MonitorElement * NumberOfTECRecHitsPerTrackVsEtaProfile
MonitorElement * NumberOfTIDLayersPerTrackVsPhiProfile
MonitorElement * Chi2oNDFVsPhiProfile
bool doGoodTrack2DChi2Plots_
Definition: TrackAnalyzer.h:64
MonitorElement * NumberOfRecHitsPerTrackVsEta
MonitorElement * GoodTrackNumberOfFoundRecHitsPerTrackVsEtaProfile
MonitorElement * Chi2oNDFVsTheta
MonitorElement * TrackThetaErr
MonitorElement * DistanceOfClosestApproachVsEta
Definition: TrackAnalyzer.h:93
MonitorElement * zPointOfClosestApproachVsPhi
MonitorElement * NumberOfPixBarrelLayersPerTrackVsEtaProfile
void fillHistosForState(const edm::EventSetup &iSetup, const reco::Track &track, std::string sname)
MonitorElement * NumberOfTOBRecHitsPerTrackVsPhiProfile
MonitorElement * Chi2
Definition: TrackAnalyzer.h:85
virtual ~TrackAnalyzer()
bool doLumiAnalysis_
Definition: TrackAnalyzer.h:74
MonitorElement * NumberOfTIBLayersPerTrackVsPhiProfile
MonitorElement * NumberOfLayersPerTrackVsEta
bool doGoodTrackPlots_
Definition: TrackAnalyzer.h:54
MonitorElement * GoodTrackChi2oNDFVsEta
virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup, const reco::Track &track)
MonitorElement * yPointOfClosestApproachVsZ0wrtBS
Definition: TrackAnalyzer.h:99
MonitorElement * NumberOfLayersPerTrack
Definition: TrackAnalyzer.h:82
MonitorElement * NumberOfTIBRecHitsPerTrackVsEtaProfile
MonitorElement * NumberOfRecHitsPerTrackVsEtaProfile
MonitorElement * NumberOfPixEndcapRecHitsPerTrackVsPhiProfile
MonitorElement * DistanceOfClosestApproachVsTheta
Definition: TrackAnalyzer.h:90
MonitorElement * GoodTrackNumberOfFoundRecHitsPerTrackVsPhiProfile
MonitorElement * NumberOfTECLayersPerTrackVsPhiProfile
MonitorElement * NumberOfTIDLayersPerTrackVsEtaProfile
MonitorElement * NumberOfTOBLayersPerTrackVsEtaProfile
bool doTrackPxPyPlots_
Definition: TrackAnalyzer.h:69
MonitorElement * DistanceOfClosestApproachToBSVsPhi
Definition: TrackAnalyzer.h:92
bool doLayersVsPhiVsEtaPerTrack_
Definition: TrackAnalyzer.h:61
void doSoftReset(DQMStore *dqmStore_)
MonitorElement * NumberOfTECRecHitsPerTrack
MonitorElement * yPointOfClosestApproachVsZ0wrt000
Definition: TrackAnalyzer.h:98
MonitorElement * TrackPtErrVsEta
bool doGoodTrackRecHitVsPhiVsEtaPerTrack_
Definition: TrackAnalyzer.h:62
MonitorElement * TESTDistanceOfClosestApproachToBS
bool doGoodTrackLayersVsPhiVsEtaPerTrack_
Definition: TrackAnalyzer.h:63
MonitorElement * yPointOfClosestApproach
Definition: TrackAnalyzer.h:97
MonitorElement * NumberOfPixBarrelRecHitsPerTrack
MonitorElement * NumberOfLayersVsPhiVsEtaPerTrack
Definition: TrackAnalyzer.h:84
MonitorElement * Chi2Prob
Definition: TrackAnalyzer.h:86
MonitorElement * Chi2oNDFVsThetaProfile
MonitorElement * zPointOfClosestApproach
TrackAnalyzer(const edm::ParameterSet &)
MonitorElement * NumberOfRecHitsPerTrackVsThetaProfile
MonitorElement * GoodTrackNumberOfFoundRecHitsPerTrack
MonitorElement * DistanceOfClosestApproachToBS
Definition: TrackAnalyzer.h:89
MonitorElement * Chi2oNDF
Definition: TrackAnalyzer.h:87
std::string histname
MonitorElement * GoodTrackChi2oNDF_lumiFlag
MonitorElement * NumberOfTOBRecHitsPerTrackVsEtaProfile
void undoSoftReset(DQMStore *dqmStore_)
MonitorElement * NumberOfTIBRecHitsPerTrack
MonitorElement * Chi2oNDFVsPhi