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 
22 
26 
27 
28 #include <memory>
29 #include <iostream>
30 #include <fstream>
31 #include <string>
32 #include <vector>
33 #include <map>
34 
35 class DTGeometry;
36 class DTChamberId;
37 class DTSuperLayerId;
38 
40 
41 public:
42 
45 
47  virtual ~DTSegmentAnalysisTest();
48 
49 
51  void beginJob();
52  void endJob(void);
53 
54  void beginRun(const edm::Run& run, const edm::EventSetup& eSetup);
55 
57  void analyze(const edm::Event& e, const edm::EventSetup& c);
58 
60  void bookHistos();
61 
63  std::string getMEName(const DTChamberId & chID, std::string histoTag);
64 
65  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
66 
69 
71  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
72 
74  void endRun(edm::Run const& run, edm::EventSetup const& c);
75 
76 
77 private:
78 
79  int nevents;
80  unsigned int nLumiSegs;
81  // switch on for detailed analysis
83  int nMinEvts;
84 
85  int maxPhiHit;
87 
88  bool runOnline;
89 
91 
94 
95  // the histograms
96  std::map< std::pair<int,int>, MonitorElement* > chi2Histos;
97  std::map< std::pair<int,int>, MonitorElement* > segmRecHitHistos;
98  std::map< int, MonitorElement* > summaryHistos;
100  // top folder for the histograms in DQMStore
102  // hlt DQM mode
104 };
105 
106 #endif
107 
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:41