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 
13 
18 // RecHit
20 
23 
24 
25 namespace edm {
26  class ParameterSet;
27  class EventSetup;
28  class Event;
29 }
30 
31 class DQMStore;
32 class DTGeometry;
33 
34 
35 class DTNoiseTask : public edm::EDAnalyzer {
36 public:
38  DTNoiseTask(const edm::ParameterSet& ps);
39 
41  virtual ~DTNoiseTask();
42 
43  // Operations
44 
45 protected:
47  void beginJob();
48 
49  void beginRun(const edm::Run&, const edm::EventSetup&);
50 
51  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& context);
52  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& setup);
53 
54 
56  void analyze(const edm::Event& e, const edm::EventSetup& c);
57 
59  void endJob();
60 
61 private:
62 
63  void bookHistos(DTChamberId chId);
64  void bookHistos(DTSuperLayerId slId);
65 
66  // The label to retrieve the digis
68  // counter of processed events
69  int evtNumber;
70  //switch for time boxes filling
72  // Lable of 4D segments in the event
74  //switch for segment veto
76 
79 
80  //tTrig map per Station
81  std::map<DTChamberId, double> tTrigStMap;
82 
83  //the noise histos (Hz)
84  std::map<DTChamberId, MonitorElement*> noiseHistos;
85 
86  //map for histo normalization
87  std::map<DTChamberId, int> mapEvt;
88 
89  //the time boxes
90  std::map<DTSuperLayerId, MonitorElement*> tbHistos;
91 
93 
94  // safe margin (ns) between ttrig and beginning of counting area
95  double safeMargin;
96 
97 };
98 #endif
99 
100 
101 /* Local Variables: */
102 /* show-trailing-whitespace: t */
103 /* truncate-lines: t */
104 /* End: */
std::map< DTChamberId, int > mapEvt
Definition: DTNoiseTask.h:87
virtual ~DTNoiseTask()
Destructor.
Definition: DTNoiseTask.cc:69
void beginJob()
BeginJob.
Definition: DTNoiseTask.cc:74
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &setup)
Definition: DTNoiseTask.cc:302
MonitorElement * nEventMonitor
Definition: DTNoiseTask.h:92
bool doSegmentVeto
Definition: DTNoiseTask.h:75
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
To reset the MEs.
Definition: DTNoiseTask.cc:83
edm::ESHandle< DTGeometry > dtGeom
Definition: DTNoiseTask.h:78
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
Definition: DTNoiseTask.cc:93
edm::EDGetTokenT< DTRecSegment4DCollection > recHits4DToken_
Definition: DTNoiseTask.h:73
void beginRun(const edm::Run &, const edm::EventSetup &)
Definition: DTNoiseTask.cc:261
edm::EDGetTokenT< DTDigiCollection > dtDigiToken_
Definition: DTNoiseTask.h:67
void endJob()
Endjob.
Definition: DTNoiseTask.cc:173
double safeMargin
Definition: DTNoiseTask.h:95
std::map< DTSuperLayerId, MonitorElement * > tbHistos
Definition: DTNoiseTask.h:90
std::map< DTChamberId, double > tTrigStMap
Definition: DTNoiseTask.h:81
DTNoiseTask(const edm::ParameterSet &ps)
Constructor.
Definition: DTNoiseTask.cc:41
bool doTimeBoxHistos
Definition: DTNoiseTask.h:71
std::map< DTChamberId, MonitorElement * > noiseHistos
Definition: DTNoiseTask.h:84
DQMStore * dbe
Definition: DTNoiseTask.h:77
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
void bookHistos(DTChamberId chId)
Definition: DTNoiseTask.cc:176
Definition: Run.h:41