CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTNoiseTest.h
Go to the documentation of this file.
1 #ifndef DTNoiseTest_H
2 #define DTNoiseTest_H
3 
4 
5 
27 
31 
34 
37 
38 
39 #include <memory>
40 #include <iostream>
41 #include <fstream>
42 #include <string>
43 #include <vector>
44 #include <map>
45 
46 class DTGeometry;
47 class DTChamberId;
48 class DTSuperLayerId;
49 class DTLayerId ;
50 class DTWireId;
51 
53 
54 public:
55 
57  DTNoiseTest(const edm::ParameterSet& ps);
58 
60  virtual ~DTNoiseTest();
61 
62 protected:
63 
65  void beginJob();
66 
68  void beginRun(const edm::Run& r, const edm::EventSetup& c);
69 
71  void analyze(const edm::Event& e, const edm::EventSetup& c);
72 
74  void endJob();
75 
77  void bookHistos(const DTChamberId & ch, std::string folder, std::string histoTag);
78  void bookHistos(const DTLayerId & ch, int nWire,std::string folder, std::string histoTag);
79 
81  std::string getMEName(const DTChamberId & ch);
82  std::string getMEName(const DTLayerId & ly);
83 
84 
85 
86  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
87 
89  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
90 
91 
92 
93 
94 private:
95 
96  bool debug;
97  int updates;
98  unsigned int nLumiSegs;
100  int run;
101 
103 
107 
108  // the collection of noisy channels
109  //std::map< uint32_t, std::vector<DTWireId> > theNoisyChannels;
110 
111  std::vector<DTWireId> theNoisyChannels;
112 
113  // histograms: < detRawID, Histogram >
114  //std::map< uint32_t , MonitorElement* > histos;
115  std::map<std::string, std::map<uint32_t, MonitorElement*> > histos;
116 
117 };
118 
119 #endif
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
Definition: DTNoiseTest.cc:91
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
Definition: DTNoiseTest.cc:70
edm::ESHandle< DTGeometry > muonGeom
Definition: DTNoiseTest.h:105
std::vector< DTWireId > theNoisyChannels
Definition: DTNoiseTest.h:111
unsigned int nLumiSegs
Definition: DTNoiseTest.h:98
DTNoiseTest(const edm::ParameterSet &ps)
Constructor.
Definition: DTNoiseTest.cc:38
edm::ESHandle< DTTtrig > tTrigMap
Definition: DTNoiseTest.h:106
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
Definition: DTNoiseTest.cc:81
int prescaleFactor
Definition: DTNoiseTest.h:99
edm::ParameterSet parameters
Definition: DTNoiseTest.h:104
void bookHistos(const DTChamberId &ch, std::string folder, std::string histoTag)
book the new ME
DQMStore * dbe
Definition: DTNoiseTest.h:102
virtual ~DTNoiseTest()
Destructor.
Definition: DTNoiseTest.cc:53
void beginJob()
BeginJob.
Definition: DTNoiseTest.cc:61
std::string getMEName(const DTChamberId &ch)
Get the ME name.
Definition: DTNoiseTest.cc:273
std::map< std::string, std::map< uint32_t, MonitorElement * > > histos
Definition: DTNoiseTest.h:115
void endJob()
Endjob.
Definition: DTNoiseTest.cc:262
Definition: Run.h:36
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
DQM Client Diagnostic.
Definition: DTNoiseTest.cc:99