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 
59  std::string l1tdttffolder_;
61  bool online_;
62  bool verbose_;
64  int counterLS_;
65  TH2F * occupancy_r_;
67 
68  std::string wheel_[6];
69  std::string wheelpath_[6];
70  std::string inclusivepath_;
71  std::string gmtpath_;
72 
89 
92 
93 
106 
117 
121 
122  TH1F * getTH1F(const char * hname);
123  TH2F * getTH2F(const char * hname);
124 
125  void setMapLabel(MonitorElement *me);
126 
127  void buildHighQualityPlot( TH2F * occupancySummary,
128  MonitorElement * highQual_Summary,
129  const std::string & path );
130 
131  void buildPhiEtaPlotOFC( MonitorElement * phi_eta_fine_integ,
132  MonitorElement * phi_eta_coarse_integ,
133  MonitorElement * phi_eta_integ,
134  const std::string & path_fine,
135  const std::string & path_coarse,
136  int wh );
137 
138  void buildPhiEtaPlotO( MonitorElement * phi_eta_integ,
139  const std::string & path,
140  int wh );
141 
142 /* void buildPhiEtaPlot( MonitorElement * phi_eta_integ, */
143 /* const std::string & path, */
144 /* int wh ); */
145 
146 /* void buildPhiEtaPlotFC( MonitorElement * phi_eta_fine_integ, */
147 /* MonitorElement * phi_eta_coarse_integ, */
148 /* MonitorElement * phi_eta_integ, */
149 /* const std::string & path_fine, */
150 /* const std::string & path_coarse, */
151 /* int wh ); */
152 
153  void buildSummaries();
154  void setGMTsummary();
155 
156  void setWheelLabel(MonitorElement *me);
157  void setQualLabel(MonitorElement *me, int axis);
158 
159  template<typename T>
160  void normalize( T * me )
161  {
162  double scale = me->Integral();
163  if ( scale > 0 ) {
164  normalize( me, 1./scale, scale );
165  }
166  }
167 
168  template<typename T>
169  void normalize( T * me, const double & scale )
170  {
171  normalize( me, scale, me->Integral() );
172  }
173 
174 
175  template<typename T>
176  void normalize( T * me, const double & scale, const double & entries )
177  {
178  me->SetEntries( entries );
179  me->Scale( scale );
180  }
181 
182 
183 
184 };
185 
186 #endif
MonitorElement * dttf_bx_integ_2ndTrack
Definition: L1TDTTFClient.h:97
MonitorElement * dttf_gmt_matching
Definition: L1TDTTFClient.h:90
MonitorElement * dttf_occupancySummary
Definition: L1TDTTFClient.h:74
MonitorElement * dttf_quality_summary
Definition: L1TDTTFClient.h:79
L1TDTTFClient(const edm::ParameterSet &ps)
Constructor.
MonitorElement * dttf_q_wheel[6]
MonitorElement * dttf_eta_fine_integ
Definition: L1TDTTFClient.h:77
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
Definition: L1TDTTFClient.h:98
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:73
MonitorElement * dttf_quality_integ
Definition: L1TDTTFClient.h:78
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:76
MonitorElement * dttf_phi_eta_fine_integ
Definition: L1TDTTFClient.h:82
MonitorElement * dttf_highQual_Summary_2ndTrack
MonitorElement * dttf_phi_wheel[6]
list path
Definition: scaleCards.py:51
MonitorElement * dttf_phi_eta_integ
Definition: L1TDTTFClient.h:83
MonitorElement * dttf_quality_summary_wheel[6]
MonitorElement * dttf_pt_integ
Definition: L1TDTTFClient.h:86
MonitorElement * dttf_phi_eta_coarse_integ
Definition: L1TDTTFClient.h:81
virtual ~L1TDTTFClient()
Destructor.
TH2F * occupancy_r_
counter
Definition: L1TDTTFClient.h:65
MonitorElement * dttf_occupancySummary_2ndTrack
Definition: L1TDTTFClient.h:95
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
MonitorElement * dttf_eta_integ
Definition: L1TDTTFClient.h:87
MonitorElement * dttf_2ndTrack_Summary
Definition: L1TDTTFClient.h:91
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:75
MonitorElement * dttf_quality_wheel[6]
void setMapLabel(MonitorElement *me)
void buildSummaries()
TH1F * getTH1F(const char *hname)
MonitorElement * dttf_eta_fine_fraction
Definition: L1TDTTFClient.h:84
std::string l1tdttffolder_
Definition: L1TDTTFClient.h:59
void buildHighQualityPlot(TH2F *occupancySummary, MonitorElement *highQual_Summary, const std::string &path)
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:96
MonitorElement * dttf_nTracks_integ_2ndTrack
Definition: L1TDTTFClient.h:94
MonitorElement * dttf_phi_integ_2ndTrack
MonitorElement * dttf_pt_wheel[6]
MonitorElement * dttf_nTracks_wheel_2ndTrack[6]
MonitorElement * dttf_phi_integ
Definition: L1TDTTFClient.h:85
long double T
MonitorElement * dttf_highQual_Summary
Definition: L1TDTTFClient.h:80
MonitorElement * dttf_q_integ
Definition: L1TDTTFClient.h:88
MonitorElement * dttf_bx_wheel_integ[6]
void normalize(T *me)
std::string inclusivepath_
Definition: L1TDTTFClient.h:70
edm::InputTag dttfSource_
Definition: L1TDTTFClient.h:60
Definition: Run.h:33
void setWheelLabel(MonitorElement *me)
std::string wheel_[6]
Definition: L1TDTTFClient.h:68
MonitorElement * dttf_quality_summary_2ndTrack
Definition: L1TDTTFClient.h:99
MonitorElement * dttf_phi_eta_integ_2ndTrack