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 
86  bool runOnline;
87 
89 
92 
93  // the histograms
94  std::map< std::pair<int,int>, MonitorElement* > chi2Histos;
95  std::map< std::pair<int,int>, MonitorElement* > segmRecHitHistos;
96  std::map< int, MonitorElement* > summaryHistos;
98  // top folder for the histograms in DQMStore
99  std::string topHistoFolder;
100  // hlt DQM mode
102 };
103 
104 #endif
105 
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:31