CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackingMonitor.h
Go to the documentation of this file.
1 #ifndef TrackingMonitor_H
2 #define TrackingMonitor_H
3 // -*- C++ -*-
4 //
5 // Package: TrackingMonitor
6 // Class: TrackingMonitor
7 //
11 // Original Author: Suchandra Dutta, Giorgia Mila
12 // Created: Thu 28 22:45:30 CEST 2008
13 
14 #include <memory>
15 #include <fstream>
25 
29 
32 
34 
37 
39 
40 class TrackAnalyzer;
42 class VertexMonitor;
43 class GetLumi;
44 class TProfile;
46 
48 {
49  public:
50  explicit TrackingMonitor(const edm::ParameterSet&);
52  virtual void beginJob(void);
53 
54  virtual void setMaxMinBin(std::vector<double> & ,std::vector<double> & ,std::vector<int> & ,double, double, int, double, double, int);
55  virtual void setNclus(const edm::Event&, std::vector<int> & );
56 
57  virtual void beginLuminosityBlock(const edm::LuminosityBlock& lumi, const edm::EventSetup& eSetup);
58  virtual void analyze(const edm::Event&, const edm::EventSetup&);
59  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
60  // virtual void beginRun(const edm::Run&, const edm::EventSetup&);
61  virtual void endRun(const edm::Run&, const edm::EventSetup&);
62 
63  private:
64  void doProfileX(TH2 * th2, MonitorElement* me);
65  void doProfileX(MonitorElement * th2m, MonitorElement* me);
66 
67 
68  // ----------member data ---------------------------
69 
70  std::string histname; //for naming the histograms according to algorithm used
71 
72  // DQMStore * dqmStore_;
73 
75 
76  // the track analyzer
81 
86 
91 
94 
95 
98  std::vector<VertexMonitor*> theVertexMonitor;
100 
101  // Tracks
105 
106  // Good Tracks
108 
109  // Track Seeds
112  std::vector<MonitorElement *> SeedsVsClusters;
113  std::vector<std::string> ClusterLabels;
114 
115 
116  // Track Candidates
118 
119  // Cluster Properties
120  std::vector<MonitorElement*> NumberOfTrkVsClusters;
124 
125  // Monitoring vs LS
129 
130  // Monitoring PU
133 
134  // add in order to deal with LS transitions
136 
139 
153  // ADD by Mia in order to have GoodTrack plots only for collision
158 
160 
163  int pvNDOF_;
164 
165 };
166 
167 #endif //define TrackingMonitor_H
edm::EDGetTokenT< edm::View< TrajectorySeed > > seedToken_
std::vector< MonitorElement * > NumberOfTrkVsClusters
MonitorElement * FractionOfGoodTracks
virtual void setMaxMinBin(std::vector< double > &, std::vector< double > &, std::vector< int > &, double, double, int, double, double, int)
TrackAnalyzer * theTrackAnalyzer
edm::ParameterSet conf_
virtual void setNclus(const edm::Event &, std::vector< int > &)
edm::EDGetTokenT< reco::TrackCollection > allTrackToken_
GetLumi * theLumiDetails_
tuple lumi
Definition: fjr2json.py:35
edm::InputTag pvSrc_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
MonitorElement * NumberOfMeanRecHitsPerTrack
MonitorElement * NumberOfTracksVsGoodPVtx
MonitorElement * GoodTracksFractionVsLS
MonitorElement * NumberOfTracksVsPUPVtx
std::string Quality_
edm::InputTag bsSrc_
MonitorElement * NumberOfSeeds
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * NumberOfTracksVsLS
bool runTrackBuildingAnalyzerForSeed
std::vector< MonitorElement * > SeedsVsClusters
MonitorElement * NumberOfRecHitsPerTrackVsLS
virtual void endRun(const edm::Run &, const edm::EventSetup &)
std::string histname
std::vector< VertexMonitor * > theVertexMonitor
MonitorElement * NumberOfTrkVsPixelClus
MonitorElement * NumberOfTracksVsBXlumi
edm::InputTag stripClusterInputTag_
bool doGeneralPropertiesPlots_
TrackBuildingAnalyzer * theTrackBuildingAnalyzer
std::string AlgoName_
edm::EDGetTokenT< reco::TrackCollection > trackToken_
edm::EDGetTokenT< TrackCandidateCollection > trackCandidateToken_
MonitorElement * NumberOfMeanLayersPerTrack
void doProfileX(TH2 *th2, MonitorElement *me)
StringCutObjectSelector< reco::Track, true > denSelection_
StringCutObjectSelector< reco::Track, true > numSelection_
GenericTriggerEventFlag * genTriggerEventFlag_
edm::InputTag pixelClusterInputTag_
MonitorElement * NumberOfSeeds_lumiFlag
TrackingMonitor(const edm::ParameterSet &)
edm::ESHandle< TransientTrackingRecHitBuilder > theTTRHBuilder
virtual void beginJob(void)
MonitorElement * NumberOfTrackCandidates
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > pixelClustersToken_
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > stripClustersToken_
MonitorElement * NumberOfTrkVsStripClus
MonitorElement * NumberOfTracks_lumiFlag
MonitorElement * NumberOfTrkVsClus
edm::EDGetTokenT< reco::BeamSpot > bsSrcToken_
MonitorElement * NumberOfTracks
edm::EDGetTokenT< reco::VertexCollection > pvSrcToken_
Definition: Run.h:43
virtual void beginLuminosityBlock(const edm::LuminosityBlock &lumi, const edm::EventSetup &eSetup)
std::vector< std::string > ClusterLabels
std::string builderName