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 DQMStore;
41 class TrackAnalyzer;
43 class VertexMonitor;
44 class GetLumi;
45 class TProfile;
47 
49 {
50  public:
51  explicit TrackingMonitor(const edm::ParameterSet&);
53  virtual void beginJob(void);
54  virtual void endJob(void);
55 
56  virtual void setMaxMinBin(std::vector<double> & ,std::vector<double> & ,std::vector<int> & ,double, double, int, double, double, int);
57  virtual void setNclus(const edm::Event&, std::vector<int> & );
58 
59  virtual void beginLuminosityBlock(const edm::LuminosityBlock& lumi, const edm::EventSetup& eSetup);
60  virtual void analyze(const edm::Event&, const edm::EventSetup&);
61  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
62  // virtual void beginRun(const edm::Run&, const edm::EventSetup&);
63  virtual void endRun(const edm::Run&, const edm::EventSetup&);
64 
65  private:
66  void doProfileX(TH2 * th2, MonitorElement* me);
67  void doProfileX(MonitorElement * th2m, MonitorElement* me);
68 
69 
70  // ----------member data ---------------------------
71 
72  std::string histname; //for naming the histograms according to algorithm used
73 
75 
77 
78  // the track analyzer
83 
88 
93 
96 
97 
100  std::vector<VertexMonitor*> theVertexMonitor;
102 
103  // Tracks
107 
108  // Good Tracks
110 
111  // Track Seeds
114  std::vector<MonitorElement *> SeedsVsClusters;
115  std::vector<std::string> ClusterLabels;
116 
117 
118  // Track Candidates
120 
121  // Cluster Properties
122  std::vector<MonitorElement*> NumberOfTrkVsClusters;
126 
127  // Monitoring vs LS
131 
132  // Monitoring PU
135 
136  // add in order to deal with LS transitions
138 
141 
155  // ADD by Mia in order to have GoodTrack plots only for collision
160 
162 
165 
166 };
167 
168 #endif //define TrackingMonitor_H
edm::EDGetTokenT< edm::View< TrajectorySeed > > seedToken_
std::vector< MonitorElement * > NumberOfTrkVsClusters
MonitorElement * FractionOfGoodTracks
DQMStore * dqmStore_
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
std::string Quality_
edm::InputTag bsSrc_
MonitorElement * NumberOfSeeds
virtual void endJob(void)
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:41
virtual void beginLuminosityBlock(const edm::LuminosityBlock &lumi, const edm::EventSetup &eSetup)
std::vector< std::string > ClusterLabels
std::string builderName