CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTDigiForNoiseTask.h
Go to the documentation of this file.
1 #ifndef DTDigiForNoiseTask_H
2 #define DTDigiForNoiseTask_H
3 
4 /*
5  * \file DTDigiForNoiseTask.h
6  *
7  * \author G. Mila - INFN Torino
8  *
9 */
10 
18 
24 
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 DTSuperLayerId;
37 class DTLayerId;
38 class DTChamberId;
39 
40 
41 //-class DTDigiForNoiseTask: public edm::EDAnalyzer{
43 
44 public:
45 
48 
50  virtual ~DTDigiForNoiseTask();
51 
52 protected:
53 
55  void dqmBeginRun(const edm::Run& , const edm::EventSetup&);
56 
58  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
59 
60 
62  void bookHistos(DQMStore::IBooker &, const DTLayerId& dtSL);
63 
65  void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
66 
68  void analyze(const edm::Event& e, const edm::EventSetup& c);
69 
70 private:
71 
72  bool debug;
73  int nevents;
74 
76 
79 
80  std::map< DTLayerId, MonitorElement* > digiHistos;
81 
82 
83 };
84 
85 #endif
86 
87 /* Local Variables: */
88 /* show-trailing-whitespace: t */
89 /* truncate-lines: t */
90 /* End: */
void beginLuminosityBlock(edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
To reset the MEs.
edm::EDGetTokenT< DTDigiCollection > dtDigisToken_
void dqmBeginRun(const edm::Run &, const edm::EventSetup &)
begin run
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
bookHistograms
std::map< DTLayerId, MonitorElement * > digiHistos
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
edm::ParameterSet parameters
virtual ~DTDigiForNoiseTask()
Destructor.
DTDigiForNoiseTask(const edm::ParameterSet &ps)
Constructor.
void bookHistos(DQMStore::IBooker &, const DTLayerId &dtSL)
Book the ME.
edm::ESHandle< DTGeometry > muonGeom
Definition: Run.h:41