CMS 3D CMS Logo

DTNoiseTask.h
Go to the documentation of this file.
1 #ifndef DTNoiseTask_H
2 #define DTNoiseTask_H
3 
11 
14 
19 
21 
22 // RecHit
24 
27 
28 namespace edm {
29  class ParameterSet;
30  class EventSetup;
31  class Event;
32 } // namespace edm
33 
34 class DTGeometry;
35 
36 //-class DTNoiseTask : public edm::EDAnalyzer {
37 class DTNoiseTask : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
38 public:
40  DTNoiseTask(const edm::ParameterSet& ps);
41 
43  ~DTNoiseTask() override;
44 
45  // Operations
46  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
47 
48 protected:
49  void dqmBeginRun(const edm::Run&, const edm::EventSetup&) override;
50 
51  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup) final {}
52  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup) override;
53 
55  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
56 
57 private:
60 
61  // The label to retrieve the digis
63  // counter of processed events
64  int evtNumber;
65  //switch for time boxes filling
67  // Lable of 4D segments in the event
69  //switch for segment veto
71 
74 
75  //tTrig map per Station
76  std::map<DTChamberId, double> tTrigStMap;
77 
78  //the noise histos (Hz)
79  std::map<DTChamberId, MonitorElement*> noiseHistos;
80 
81  //map for histo normalization
82  std::map<DTChamberId, int> mapEvt;
83 
84  //the time boxes
85  std::map<DTSuperLayerId, MonitorElement*> tbHistos;
86 
88 
89  // safe margin (ns) between ttrig and beginning of counting area
90  double safeMargin;
91 };
92 #endif
93 
94 /* Local Variables: */
95 /* show-trailing-whitespace: t */
96 /* truncate-lines: t */
97 /* End: */
DTNoiseTask::noiseHistos
std::map< DTChamberId, MonitorElement * > noiseHistos
Definition: DTNoiseTask.h:79
DTGeometry
Definition: DTGeometry.h:28
DTSuperLayerId
Definition: DTSuperLayerId.h:12
DTNoiseTask::~DTNoiseTask
~DTNoiseTask() override
Destructor.
Definition: DTNoiseTask.cc:58
ESHandle.h
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< DTDigiCollection >
edm
HLT enums.
Definition: AlignableModifier.h:19
DTNoiseTask::mapEvt
std::map< DTChamberId, int > mapEvt
Definition: DTNoiseTask.h:82
DTNoiseTask::dqmBeginRun
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
Definition: DTNoiseTask.cc:216
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
EDAnalyzer.h
DTNoiseTask::nEventMonitor
MonitorElement * nEventMonitor
Definition: DTNoiseTask.h:87
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
DTNoiseTask::doSegmentVeto
bool doSegmentVeto
Definition: DTNoiseTask.h:70
DQMOneEDAnalyzer.h
DTNoiseTask::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &setup) final
Definition: DTNoiseTask.h:51
DTNoiseTask::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
Definition: DTNoiseTask.cc:61
DTNoiseTask::tTrigMap
edm::ESHandle< DTTtrig > tTrigMap
Definition: DTNoiseTask.h:73
edm::ESHandle< DTGeometry >
DTNoiseTask::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DTNoiseTask.cc:226
Event
DTNoiseTask::bookHistos
void bookHistos(DQMStore::IBooker &, DTChamberId chId)
Definition: DTNoiseTask.cc:132
DTChamberId.h
DTNoiseTask::recHits4DToken_
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
Definition: DTNoiseTask.h:68
DTNoiseTask::tbHistos
std::map< DTSuperLayerId, MonitorElement * > tbHistos
Definition: DTNoiseTask.h:85
DTNoiseTask::dtGeom
edm::ESHandle< DTGeometry > dtGeom
Definition: DTNoiseTask.h:72
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
DTNoiseTask::tTrigStMap
std::map< DTChamberId, double > tTrigStMap
Definition: DTNoiseTask.h:76
DTNoiseTask::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &setup) override
Definition: DTNoiseTask.cc:255
edm::EventSetup
Definition: EventSetup.h:58
DTTtrig.h
DTNoiseTask::doTimeBoxHistos
bool doTimeBoxHistos
Definition: DTNoiseTask.h:66
DTNoiseTask::dtDigiToken_
edm::EDGetTokenT< DTDigiCollection > dtDigiToken_
Definition: DTNoiseTask.h:62
InputTag.h
DTNoiseTask::safeMargin
double safeMargin
Definition: DTNoiseTask.h:90
DTNoiseTask::DTNoiseTask
DTNoiseTask(const edm::ParameterSet &ps)
Constructor.
Definition: DTNoiseTask.cc:39
DTNoiseTask
Definition: DTNoiseTask.h:37
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTDigi.h
DTDigiCollection.h
DTChamberId
Definition: DTChamberId.h:14
EventSetup
DTSuperLayerId.h
DTNoiseTask::evtNumber
int evtNumber
Definition: DTNoiseTask.h:64
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
edm::Event
Definition: Event.h:73
DTRecSegment4DCollection.h
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37