CMS 3D CMS Logo

DTNoiseTask.h
Go to the documentation of this file.
1 #ifndef DTNoiseTask_H
2 #define DTNoiseTask_H
3 
11 
15 
20 
22 
23 // RecHit
25 
28 
29 
30 namespace edm {
31  class ParameterSet;
32  class EventSetup;
33  class Event;
34 }
35 
36 class DQMStore;
37 class DTGeometry;
38 
39 
40 //-class DTNoiseTask : public edm::EDAnalyzer {
41 class DTNoiseTask : public DQMEDAnalyzer {
42 public:
44  DTNoiseTask(const edm::ParameterSet& ps);
45 
47  ~DTNoiseTask() override;
48 
49  // Operations
50  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
51 
52 
53 protected:
54 
55  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
56 
57  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup) override;
58 
59 
61  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
62 
63 private:
64 
67 
68  // The label to retrieve the digis
70  // counter of processed events
71  int evtNumber;
72  //switch for time boxes filling
74  // Lable of 4D segments in the event
76  //switch for segment veto
78 
81 
82  //tTrig map per Station
83  std::map<DTChamberId, double> tTrigStMap;
84 
85  //the noise histos (Hz)
86  std::map<DTChamberId, MonitorElement*> noiseHistos;
87 
88  //map for histo normalization
89  std::map<DTChamberId, int> mapEvt;
90 
91  //the time boxes
92  std::map<DTSuperLayerId, MonitorElement*> tbHistos;
93 
95 
96  // safe margin (ns) between ttrig and beginning of counting area
97  double safeMargin;
98 
99 };
100 #endif
101 
102 
103 /* Local Variables: */
104 /* show-trailing-whitespace: t */
105 /* truncate-lines: t */
106 /* End: */
std::map< DTChamberId, int > mapEvt
Definition: DTNoiseTask.h:89
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:1
MonitorElement * nEventMonitor
Definition: DTNoiseTask.h:94
bool doSegmentVeto
Definition: DTNoiseTask.h:77
void bookHistos()
Definition: Histogram.h:33
edm::ESHandle< DTGeometry > dtGeom
Definition: DTNoiseTask.h:79
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
Definition: DTNoiseTask.h:75
edm::ESHandle< DTTtrig > tTrigMap
Definition: DTNoiseTask.h:80
virtual example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
edm::EDGetTokenT< DTDigiCollection > dtDigiToken_
Definition: DTNoiseTask.h:69
double safeMargin
Definition: DTNoiseTask.h:97
std::map< DTSuperLayerId, MonitorElement * > tbHistos
Definition: DTNoiseTask.h:92
std::map< DTChamberId, double > tTrigStMap
Definition: DTNoiseTask.h:83
HLT enums.
bool doTimeBoxHistos
Definition: DTNoiseTask.h:73
std::map< DTChamberId, MonitorElement * > noiseHistos
Definition: DTNoiseTask.h:86
Definition: Run.h:44