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 one::DQMEDAnalyzer<edm::one::WatchLuminosityBlocks> {
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 beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup) final {}
58  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup) override;
59 
60 
62  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
63 
64 private:
65 
68 
69  // The label to retrieve the digis
71  // counter of processed events
72  int evtNumber;
73  //switch for time boxes filling
75  // Lable of 4D segments in the event
77  //switch for segment veto
79 
82 
83  //tTrig map per Station
84  std::map<DTChamberId, double> tTrigStMap;
85 
86  //the noise histos (Hz)
87  std::map<DTChamberId, MonitorElement*> noiseHistos;
88 
89  //map for histo normalization
90  std::map<DTChamberId, int> mapEvt;
91 
92  //the time boxes
93  std::map<DTSuperLayerId, MonitorElement*> tbHistos;
94 
96 
97  // safe margin (ns) between ttrig and beginning of counting area
98  double safeMargin;
99 
100 };
101 #endif
102 
103 
104 /* Local Variables: */
105 /* show-trailing-whitespace: t */
106 /* truncate-lines: t */
107 /* End: */
std::map< DTChamberId, int > mapEvt
Definition: DTNoiseTask.h:90
def setup(process, global_tag, zero_tesla=False)
Definition: GeneralSetup.py:2
virtual example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
MonitorElement * nEventMonitor
Definition: DTNoiseTask.h:95
bool doSegmentVeto
Definition: DTNoiseTask.h:78
void bookHistos()
Definition: Histogram.h:33
edm::ESHandle< DTGeometry > dtGeom
Definition: DTNoiseTask.h:80
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
Definition: DTNoiseTask.h:76
edm::ESHandle< DTTtrig > tTrigMap
Definition: DTNoiseTask.h:81
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &setup) final
Definition: DTNoiseTask.h:57
edm::EDGetTokenT< DTDigiCollection > dtDigiToken_
Definition: DTNoiseTask.h:70
double safeMargin
Definition: DTNoiseTask.h:98
std::map< DTSuperLayerId, MonitorElement * > tbHistos
Definition: DTNoiseTask.h:93
std::map< DTChamberId, double > tTrigStMap
Definition: DTNoiseTask.h:84
HLT enums.
bool doTimeBoxHistos
Definition: DTNoiseTask.h:74
std::map< DTChamberId, MonitorElement * > noiseHistos
Definition: DTNoiseTask.h:87
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: Run.h:44