CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DTNoiseTask.h
Go to the documentation of this file.
1 #ifndef DTNoiseTask_H
2 #define DTNoiseTask_H
3 
11 
14 
19 
22 
23 // RecHit
25 
28 
29 namespace edm {
30  class ParameterSet;
31  class EventSetup;
32  class Event;
33 } // namespace edm
34 
35 class DTGeometry;
36 class DTTtrig;
37 
38 //-class DTNoiseTask : public edm::EDAnalyzer {
39 class DTNoiseTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
40 public:
42  DTNoiseTask(const edm::ParameterSet& ps);
43 
45  ~DTNoiseTask() override;
46 
47  // Operations
48  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
49 
50 protected:
51  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
52 
53  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup) final {}
54  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup) override;
55 
57  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
58 
59 private:
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
71  //switch for segment veto
73 
77  const DTTtrig* tTrigMap;
78 
79  //tTrig map per Station
80  std::map<DTChamberId, double> tTrigStMap;
81 
82  //the noise histos (Hz)
83  std::map<DTChamberId, MonitorElement*> noiseHistos;
84 
85  //map for histo normalization
86  std::map<DTChamberId, int> mapEvt;
87 
88  //the time boxes
89  std::map<DTSuperLayerId, MonitorElement*> tbHistos;
90 
92 
93  // safe margin (ns) between ttrig and beginning of counting area
94  double safeMargin;
95 };
96 #endif
97 
98 /* Local Variables: */
99 /* show-trailing-whitespace: t */
100 /* truncate-lines: t */
101 /* End: */
std::map< DTChamberId, int > mapEvt
Definition: DTNoiseTask.h:86
const edm::EventSetup & c
MonitorElement * nEventMonitor
Definition: DTNoiseTask.h:91
bool doSegmentVeto
Definition: DTNoiseTask.h:72
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Definition: DTNoiseTask.cc:217
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
Definition: DTNoiseTask.cc:62
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
Definition: DTNoiseTask.h:70
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &setup) final
Definition: DTNoiseTask.h:53
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &setup) override
Definition: DTNoiseTask.cc:256
edm::EDGetTokenT< DTDigiCollection > dtDigiToken_
Definition: DTNoiseTask.h:64
double safeMargin
Definition: DTNoiseTask.h:94
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DTNoiseTask.cc:227
std::map< DTSuperLayerId, MonitorElement * > tbHistos
Definition: DTNoiseTask.h:89
void bookHistos(DQMStore::IBooker &, DTChamberId chId)
Definition: DTNoiseTask.cc:133
std::map< DTChamberId, double > tTrigStMap
Definition: DTNoiseTask.h:80
const DTGeometry * dtGeom
Definition: DTNoiseTask.h:75
edm::ESGetToken< DTTtrig, DTTtrigRcd > tTrigMapToken_
Definition: DTNoiseTask.h:76
DTNoiseTask(const edm::ParameterSet &ps)
Constructor.
Definition: DTNoiseTask.cc:37
bool doTimeBoxHistos
Definition: DTNoiseTask.h:68
std::map< DTChamberId, MonitorElement * > noiseHistos
Definition: DTNoiseTask.h:83
const DTTtrig * tTrigMap
Definition: DTNoiseTask.h:77
edm::ESGetToken< DTGeometry, MuonGeometryRecord > muonGeomToken_
Definition: DTNoiseTask.h:74
Definition: Run.h:45
~DTNoiseTask() override
Destructor.
Definition: DTNoiseTask.cc:59