test
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 
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  virtual ~DTNoiseTask();
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&);
56 
57  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context);
58  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup);
59 
60 
62  void analyze(const edm::Event& e, const edm::EventSetup& c);
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
virtual ~DTNoiseTask()
Destructor.
Definition: DTNoiseTask.cc:67
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &setup)
Definition: DTNoiseTask.cc:292
MonitorElement * nEventMonitor
Definition: DTNoiseTask.h:95
bool doSegmentVeto
Definition: DTNoiseTask.h:78
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
To reset the MEs.
Definition: DTNoiseTask.cc:70
edm::ESHandle< DTGeometry > dtGeom
Definition: DTNoiseTask.h:80
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
Definition: DTNoiseTask.cc:80
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
Definition: DTNoiseTask.h:76
edm::ESHandle< DTTtrig > tTrigMap
Definition: DTNoiseTask.h:81
edm::EDGetTokenT< DTDigiCollection > dtDigiToken_
Definition: DTNoiseTask.h:70
double safeMargin
Definition: DTNoiseTask.h:98
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DTNoiseTask.cc:256
std::map< DTSuperLayerId, MonitorElement * > tbHistos
Definition: DTNoiseTask.h:93
void bookHistos(DQMStore::IBooker &, DTChamberId chId)
Definition: DTNoiseTask.cc:157
void dqmBeginRun(const edm::Run &, const edm::EventSetup &)
Definition: DTNoiseTask.cc:243
std::map< DTChamberId, double > tTrigStMap
Definition: DTNoiseTask.h:84
DTNoiseTask(const edm::ParameterSet &ps)
Constructor.
Definition: DTNoiseTask.cc:41
bool doTimeBoxHistos
Definition: DTNoiseTask.h:74
std::map< DTChamberId, MonitorElement * > noiseHistos
Definition: DTNoiseTask.h:87
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
Definition: Run.h:43