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 
25 
29 
32 
35 
36 
37 #include <memory>
38 #include <iostream>
39 #include <fstream>
40 #include <string>
41 #include <vector>
42 #include <map>
43 
44 class DTGeometry;
45 class DTChamberId;
46 class DTSuperLayerId;
47 class DTLayerId ;
48 class DTWireId;
49 
51 
52 public:
53 
55  DTNoiseTest(const edm::ParameterSet& ps);
56 
58  virtual ~DTNoiseTest();
59 
60 protected:
61 
63  void beginJob();
64 
66  void beginRun(const edm::Run& r, const edm::EventSetup& c);
67 
69  void analyze(const edm::Event& e, const edm::EventSetup& c);
70 
72  void endJob();
73 
75  void bookHistos(const DTChamberId & ch, std::string folder, std::string histoTag);
76  void bookHistos(const DTLayerId & ch, int nWire,std::string folder, std::string histoTag);
77 
79  std::string getMEName(const DTChamberId & ch);
80  std::string getMEName(const DTLayerId & ly);
81 
82 
83 
84  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
85 
87  void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
88 
89 
90 
91 
92 private:
93 
94  bool debug;
95  int updates;
96  unsigned int nLumiSegs;
98  int run;
99 
101 
105 
106  // the collection of noisy channels
107  //std::map< uint32_t, std::vector<DTWireId> > theNoisyChannels;
108 
109  std::vector<DTWireId> theNoisyChannels;
110 
111  // histograms: < detRawID, Histogram >
112  //std::map< uint32_t , MonitorElement* > histos;
113  std::map<std::string, std::map<uint32_t, MonitorElement*> > histos;
114 
115 };
116 
117 #endif
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
Definition: DTNoiseTest.cc:89
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
Definition: DTNoiseTest.cc:68
edm::ESHandle< DTGeometry > muonGeom
Definition: DTNoiseTest.h:103
std::vector< DTWireId > theNoisyChannels
Definition: DTNoiseTest.h:109
unsigned int nLumiSegs
Definition: DTNoiseTest.h:96
DTNoiseTest(const edm::ParameterSet &ps)
Constructor.
Definition: DTNoiseTest.cc:36
edm::ESHandle< DTTtrig > tTrigMap
Definition: DTNoiseTest.h:104
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
Definition: DTNoiseTest.cc:79
int prescaleFactor
Definition: DTNoiseTest.h:97
edm::ParameterSet parameters
Definition: DTNoiseTest.h:102
void bookHistos(const DTChamberId &ch, std::string folder, std::string histoTag)
book the new ME
DQMStore * dbe
Definition: DTNoiseTest.h:100
virtual ~DTNoiseTest()
Destructor.
Definition: DTNoiseTest.cc:51
void beginJob()
BeginJob.
Definition: DTNoiseTest.cc:59
std::string getMEName(const DTChamberId &ch)
Get the ME name.
Definition: DTNoiseTest.cc:271
std::map< std::string, std::map< uint32_t, MonitorElement * > > histos
Definition: DTNoiseTest.h:113
void endJob()
Endjob.
Definition: DTNoiseTest.cc:260
Definition: Run.h:41
void endLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
DQM Client Diagnostic.
Definition: DTNoiseTest.cc:97