CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TDTTFClient.h
Go to the documentation of this file.
1 #ifndef DQM_L1TMONITORCLIENT_L1TDTTF_H
2 #define DQM_L1TMONITORCLIENT_L1TDTTF_H
3 
4 // system include files
5 #include <string>
6 
7 // user include files
10 
11 //
12 // class declaration
13 //
14 
15 class TH1F;
16 class TH2F;
17 class DQMStore;
18 class MonitorElement;
19 
20 
22 
23 public:
24 
27 
29  virtual ~L1TDTTFClient();
30 
31 protected:
32 
34  void beginJob(void);
35 
37  void beginRun(const edm::Run& r, const edm::EventSetup& c);
38 
40  void analyze(const edm::Event& e, const edm::EventSetup& c) ;
41 
42  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
43  const edm::EventSetup& context) ;
44 
46  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
47  const edm::EventSetup& c);
48 
50  void endRun(const edm::Run& r, const edm::EventSetup& c);
51 
53  void endJob();
54 
55  void makeSummary();
56 
57 private:
58 
61  bool online_;
62  bool verbose_;
64  int counterLS_;
65  TH2F * occupancy_r_;
67 
73 
90 
93 
95 
108 
119 
123 
124  TH1F * getTH1F(const char * hname);
125  TH2F * getTH2F(const char * hname);
126 
127  void setMapLabel(MonitorElement *me);
128 
129  void buildHighQualityPlot( TH2F * occupancySummary,
130  MonitorElement * highQual_Summary,
131  const std::string & path );
132 
133  void buildPhiEtaPlotOFC( MonitorElement * phi_eta_fine_integ,
134  MonitorElement * phi_eta_coarse_integ,
135  MonitorElement * phi_eta_integ,
136  const std::string & path_fine,
137  const std::string & path_coarse,
138  int wh );
139 
140  void buildPhiEtaPlotO( MonitorElement * phi_eta_integ,
141  const std::string & path,
142  int wh );
143 
144 /* void buildPhiEtaPlot( MonitorElement * phi_eta_integ, */
145 /* const std::string & path, */
146 /* int wh ); */
147 
148 /* void buildPhiEtaPlotFC( MonitorElement * phi_eta_fine_integ, */
149 /* MonitorElement * phi_eta_coarse_integ, */
150 /* MonitorElement * phi_eta_integ, */
151 /* const std::string & path_fine, */
152 /* const std::string & path_coarse, */
153 /* int wh ); */
154 
155  void buildSummaries();
156  void setGMTsummary();
157 
158  void setWheelLabel(MonitorElement *me);
159  void setQualLabel(MonitorElement *me, int axis);
160 
161  template<typename T>
162  void normalize( T * me )
163  {
164  double scale = me->Integral();
165  if ( scale > 0 ) {
166  normalize( me, 1./scale, scale );
167  }
168  }
169 
170  template<typename T>
171  void normalize( T * me, const double & scale )
172  {
173  normalize( me, scale, me->Integral() );
174  }
175 
176 
177  template<typename T>
178  void normalize( T * me, const double & scale, const double & entries )
179  {
180  me->SetEntries( entries );
181  me->Scale( scale );
182  }
183 
184 
185 
186 };
187 
188 #endif
MonitorElement * dttf_bx_integ_2ndTrack
Definition: L1TDTTFClient.h:99
MonitorElement * dttf_gmt_matching
Definition: L1TDTTFClient.h:91
MonitorElement * dttf_occupancySummary
Definition: L1TDTTFClient.h:75
MonitorElement * dttf_quality_summary
Definition: L1TDTTFClient.h:80
L1TDTTFClient(const edm::ParameterSet &ps)
Constructor.
MonitorElement * dttf_q_wheel[6]
MonitorElement * dttf_eta_fine_integ
Definition: L1TDTTFClient.h:78
void normalize(T *me, const double &scale, const double &entries)
TH2F * getTH2F(const char *hname)
MonitorElement * dttf_eta_integ_2ndTrack
void buildPhiEtaPlotO(MonitorElement *phi_eta_integ, const std::string &path, int wh)
void setGMTsummary()
MonitorElement * dttf_quality_integ_2ndTrack
MonitorElement * dttf_eta_wheel[6]
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
DQM Client Diagnostic.
void beginJob(void)
BeginJob.
MonitorElement * dttf_nTracks_integ
Definition: L1TDTTFClient.h:74
MonitorElement * dttf_quality_integ
Definition: L1TDTTFClient.h:79
std::string wheelpath_[6]
Definition: L1TDTTFClient.h:69
MonitorElement * dttf_bx_wheel_integ_2ndTrack[6]
MonitorElement * dttf_bx_wheel_summary[6]
MonitorElement * dttf_pt_integ_2ndTrack
void endJob()
Endjob.
MonitorElement * dttf_bx_integ
Definition: L1TDTTFClient.h:77
MonitorElement * dttf_phi_eta_fine_integ
Definition: L1TDTTFClient.h:83
MonitorElement * dttf_highQual_Summary_2ndTrack
MonitorElement * dttf_phi_wheel[6]
MonitorElement * dttf_phi_eta_integ
Definition: L1TDTTFClient.h:84
MonitorElement * dttf_quality_summary_wheel[6]
MonitorElement * dttf_pt_integ
Definition: L1TDTTFClient.h:87
MonitorElement * dttf_phi_eta_coarse_integ
Definition: L1TDTTFClient.h:82
virtual ~L1TDTTFClient()
Destructor.
TH2F * occupancy_r_
counter
Definition: L1TDTTFClient.h:65
MonitorElement * dttf_occupancySummary_2ndTrack
Definition: L1TDTTFClient.h:97
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
MonitorElement * dttf_eta_integ
Definition: L1TDTTFClient.h:88
MonitorElement * dttf_2ndTrack_Summary
Definition: L1TDTTFClient.h:92
std::string gmtpath_
Definition: L1TDTTFClient.h:71
MonitorElement * dttf_q_integ_2ndTrack
MonitorElement * dttf_bx_wheel_summary_2ndTrack[6]
DQMStore * dbe_
Definition: L1TDTTFClient.h:66
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
void normalize(T *me, const double &scale)
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
MonitorElement * dttf_bx_summary
Definition: L1TDTTFClient.h:76
MonitorElement * dttf_quality_wheel[6]
void setMapLabel(MonitorElement *me)
void buildSummaries()
TH1F * getTH1F(const char *hname)
MonitorElement * dttf_eta_fine_fraction
Definition: L1TDTTFClient.h:85
std::string l1tdttffolder_
Definition: L1TDTTFClient.h:59
void buildHighQualityPlot(TH2F *occupancySummary, MonitorElement *highQual_Summary, const std::string &path)
MonitorElement * dttf_occupancySummary_test
Definition: L1TDTTFClient.h:94
MonitorElement * dttf_fine_fraction_wh[6]
void setQualLabel(MonitorElement *me, int axis)
MonitorElement * dttf_nTracks_wheel[6]
void analyze(const edm::Event &e, const edm::EventSetup &c)
Fake Analyze.
void buildPhiEtaPlotOFC(MonitorElement *phi_eta_fine_integ, MonitorElement *phi_eta_coarse_integ, MonitorElement *phi_eta_integ, const std::string &path_fine, const std::string &path_coarse, int wh)
MonitorElement * dttf_bx_summary_2ndTrack
Definition: L1TDTTFClient.h:98
MonitorElement * dttf_nTracks_integ_2ndTrack
Definition: L1TDTTFClient.h:96
MonitorElement * dttf_phi_integ_2ndTrack
MonitorElement * dttf_pt_wheel[6]
MonitorElement * dttf_nTracks_wheel_2ndTrack[6]
MonitorElement * dttf_phi_integ
Definition: L1TDTTFClient.h:86
long double T
MonitorElement * dttf_highQual_Summary
Definition: L1TDTTFClient.h:81
MonitorElement * dttf_q_integ
Definition: L1TDTTFClient.h:89
MonitorElement * dttf_bx_wheel_integ[6]
void normalize(T *me)
std::string inclusivepath_
Definition: L1TDTTFClient.h:70
std::string testpath_
Definition: L1TDTTFClient.h:72
edm::InputTag dttfSource_
Definition: L1TDTTFClient.h:60
Definition: Run.h:36
void setWheelLabel(MonitorElement *me)
std::string wheel_[6]
Definition: L1TDTTFClient.h:68
MonitorElement * dttf_quality_summary_2ndTrack
MonitorElement * dttf_phi_eta_integ_2ndTrack