CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTNoiseTask.h
Go to the documentation of this file.
1 #ifndef DTNoiseTask_H
2 #define DTNoiseTask_H
3 
15 
20 
21 
22 namespace edm {
23  class ParameterSet;
24  class EventSetup;
25  class Event;
26 }
27 
28 class DQMStore;
29 class DTGeometry;
30 
31 
32 class DTNoiseTask : public edm::EDAnalyzer {
33 public:
35  DTNoiseTask(const edm::ParameterSet& ps);
36 
38  virtual ~DTNoiseTask();
39 
40  // Operations
41 
42 protected:
44  void beginJob();
45 
46  void beginRun(const edm::Run&, const edm::EventSetup&);
47 
48  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context);
49  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup);
50 
51 
53  void analyze(const edm::Event& e, const edm::EventSetup& c);
54 
56  void endJob();
57 
58 private:
59 
60  void bookHistos(DTChamberId chId);
61  void bookHistos(DTSuperLayerId slId);
62 
63  // The label to retrieve the digis
65  // counter of processed events
66  int evtNumber;
67  //switch for time boxes filling
69  // Lable of 4D segments in the event
70  std::string theRecHits4DLabel;
71  //switch for segment veto
73 
76 
77  //tTrig map per Station
78  std::map<DTChamberId, double> tTrigStMap;
79 
80  //the noise histos (Hz)
81  std::map<DTChamberId, MonitorElement*> noiseHistos;
82 
83  //map for histo normalization
84  std::map<DTChamberId, int> mapEvt;
85 
86  //the time boxes
87  std::map<DTSuperLayerId, MonitorElement*> tbHistos;
88 
90 
91  // safe margin (ns) between ttrig and beginning of counting area
92  double safeMargin;
93 
94 };
95 #endif
96 
std::map< DTChamberId, int > mapEvt
Definition: DTNoiseTask.h:84
edm::InputTag dtDigiLabel
Definition: DTNoiseTask.h:64
virtual ~DTNoiseTask()
Destructor.
Definition: DTNoiseTask.cc:74
void beginJob()
BeginJob.
Definition: DTNoiseTask.cc:79
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &setup)
Definition: DTNoiseTask.cc:307
MonitorElement * nEventMonitor
Definition: DTNoiseTask.h:89
bool doSegmentVeto
Definition: DTNoiseTask.h:72
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
To reset the MEs.
Definition: DTNoiseTask.cc:88
edm::ESHandle< DTGeometry > dtGeom
Definition: DTNoiseTask.h:75
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
Definition: DTNoiseTask.cc:98
void beginRun(const edm::Run &, const edm::EventSetup &)
Definition: DTNoiseTask.cc:266
void endJob()
Endjob.
Definition: DTNoiseTask.cc:178
double safeMargin
Definition: DTNoiseTask.h:92
std::map< DTSuperLayerId, MonitorElement * > tbHistos
Definition: DTNoiseTask.h:87
std::map< DTChamberId, double > tTrigStMap
Definition: DTNoiseTask.h:78
DTNoiseTask(const edm::ParameterSet &ps)
Constructor.
Definition: DTNoiseTask.cc:48
bool doTimeBoxHistos
Definition: DTNoiseTask.h:68
std::map< DTChamberId, MonitorElement * > noiseHistos
Definition: DTNoiseTask.h:81
DQMStore * dbe
Definition: DTNoiseTask.h:74
std::string theRecHits4DLabel
Definition: DTNoiseTask.h:70
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
void bookHistos(DTChamberId chId)
Definition: DTNoiseTask.cc:181
Definition: Run.h:33