CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTSegmentAnalysisTest.h
Go to the documentation of this file.
1 #ifndef DTSegmentAnalysisTest_H
2 #define DTSegmentAnalysisTest_H
3 
4 
24 
28 
29 
30 #include <memory>
31 #include <iostream>
32 #include <fstream>
33 #include <string>
34 #include <vector>
35 #include <map>
36 
37 class DTGeometry;
38 class DTChamberId;
39 class DTSuperLayerId;
40 
42 
43 public:
44 
47 
49  virtual ~DTSegmentAnalysisTest();
50 
51 
53  void beginJob();
54  void endJob(void);
55 
56  void beginRun(const edm::Run& run, const edm::EventSetup& eSetup);
57 
59  void analyze(const edm::Event& e, const edm::EventSetup& c);
60 
62  void bookHistos();
63 
65  std::string getMEName(const DTChamberId & chID, std::string histoTag);
66 
67  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
68 
71 
73  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
74 
76  void endRun(edm::Run const& run, edm::EventSetup const& c);
77 
78 
79 private:
80 
81  int nevents;
82  unsigned int nLumiSegs;
83  // switch on for detailed analysis
85  int nMinEvts;
86 
87  int maxPhiHit;
89 
90  bool runOnline;
91 
93 
96 
97  // the histograms
98  std::map< std::pair<int,int>, MonitorElement* > chi2Histos;
99  std::map< std::pair<int,int>, MonitorElement* > segmRecHitHistos;
100  std::map< int, MonitorElement* > summaryHistos;
102  // top folder for the histograms in DQMStore
103  std::string topHistoFolder;
104  // hlt DQM mode
106 };
107 
108 #endif
109 
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
edm::ParameterSet parameters
void endRun(edm::Run const &run, edm::EventSetup const &c)
DQM Client Diagnostic in offline mode.
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
DQM Client Diagnostic in online mode.
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
std::map< std::pair< int, int >, MonitorElement * > segmRecHitHistos
DTSegmentAnalysisTest(const edm::ParameterSet &ps)
Constructor.
std::string getMEName(const DTChamberId &chID, std::string histoTag)
Get the ME name.
std::map< std::pair< int, int >, MonitorElement * > chi2Histos
edm::ESHandle< DTGeometry > muonGeom
virtual ~DTSegmentAnalysisTest()
Destructor.
void bookHistos()
book the summary histograms
std::map< int, MonitorElement * > summaryHistos
void performClientDiagnostic()
Perform client diagnostic operations.
void beginRun(const edm::Run &run, const edm::EventSetup &eSetup)
Definition: Run.h:33