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
11 
12 //
13 // class declaration
14 //
15 
16 class TH1F;
17 class TH2F;
18 class MonitorElement;
19 
20 
22 
23 public:
24 
27 
29  virtual ~L1TDTTFClient();
30 
31 protected:
32 
33  void dqmEndLuminosityBlock(DQMStore::IBooker &ibooker, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const&); //performed in the endLumi
34  void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override; //performed in the endJob
35 
36  void book(DQMStore::IBooker &ibooker);
37 
38 
39 private:
40 
43  bool online_;
44  bool verbose_;
46  int counterLS_;
47  TH2F * occupancy_r_;
48 
54 
71 
74 
76 
89 
100 
104 
105  TH1F * getTH1F(DQMStore::IGetter &igetter, const char * hname);
106  TH2F * getTH2F(DQMStore::IGetter &igetter, const char * hname);
107 
109 
110  void buildHighQualityPlot( DQMStore::IGetter &igetter,TH2F * occupancySummary,
111  MonitorElement * highQual_Summary,
112  const std::string & path );
113 
114  void buildPhiEtaPlotOFC( DQMStore::IGetter &igetter,
115  MonitorElement * phi_eta_fine_integ,
116  MonitorElement * phi_eta_coarse_integ,
117  MonitorElement * phi_eta_integ,
118  const std::string & path_fine,
119  const std::string & path_coarse,
120  int wh );
121 
122  void buildPhiEtaPlotO( DQMStore::IGetter &igetter,
123  MonitorElement * phi_eta_integ,
124  const std::string & path,
125  int wh );
126 
127 /* void buildPhiEtaPlot( MonitorElement * phi_eta_integ, */
128 /* const std::string & path, */
129 /* int wh ); */
130 
131 /* void buildPhiEtaPlotFC( 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 makeSummary(DQMStore::IGetter &igetter);
139  void buildSummaries(DQMStore::IGetter &igetter);
140  void setGMTsummary(DQMStore::IGetter &igetter);
141 
143  void setQualLabel(MonitorElement *me, int axis);
144 
145  template<typename T>
146  void normalize( T * me )
147  {
148  double scale = me->Integral();
149  if ( scale > 0 ) {
150  normalize( me, 1./scale, scale );
151  }
152  }
153 
154  template<typename T>
155  void normalize( T * me, const double & scale )
156  {
157  normalize( me, scale, me->Integral() );
158  }
159 
160 
161  template<typename T>
162  void normalize( T * me, const double & scale, const double & entries )
163  {
164  me->SetEntries( entries );
165  me->Scale( scale );
166  }
167 
168 
169 
170 };
171 
172 #endif
MonitorElement * dttf_bx_integ_2ndTrack
Definition: L1TDTTFClient.h:80
MonitorElement * dttf_gmt_matching
Definition: L1TDTTFClient.h:72
MonitorElement * dttf_occupancySummary
Definition: L1TDTTFClient.h:56
MonitorElement * dttf_quality_summary
Definition: L1TDTTFClient.h:61
L1TDTTFClient(const edm::ParameterSet &ps)
Constructor.
MonitorElement * dttf_q_wheel[6]
Definition: L1TDTTFClient.h:99
MonitorElement * dttf_eta_fine_integ
Definition: L1TDTTFClient.h:59
void normalize(T *me, const double &scale, const double &entries)
MonitorElement * dttf_eta_integ_2ndTrack
Definition: L1TDTTFClient.h:85
MonitorElement * dttf_quality_integ_2ndTrack
Definition: L1TDTTFClient.h:81
MonitorElement * dttf_eta_wheel[6]
Definition: L1TDTTFClient.h:96
void buildSummaries(DQMStore::IGetter &igetter)
MonitorElement * dttf_nTracks_integ
Definition: L1TDTTFClient.h:55
MonitorElement * dttf_quality_integ
Definition: L1TDTTFClient.h:60
TH1F * getTH1F(DQMStore::IGetter &igetter, const char *hname)
std::string wheelpath_[6]
Definition: L1TDTTFClient.h:50
void buildPhiEtaPlotO(DQMStore::IGetter &igetter, MonitorElement *phi_eta_integ, const std::string &path, int wh)
MonitorElement * dttf_bx_wheel_integ_2ndTrack[6]
void buildHighQualityPlot(DQMStore::IGetter &igetter, TH2F *occupancySummary, MonitorElement *highQual_Summary, const std::string &path)
void book(DQMStore::IBooker &ibooker)
MonitorElement * dttf_bx_wheel_summary[6]
Definition: L1TDTTFClient.h:91
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
void dqmEndLuminosityBlock(DQMStore::IBooker &ibooker, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
MonitorElement * dttf_pt_integ_2ndTrack
Definition: L1TDTTFClient.h:87
MonitorElement * dttf_bx_integ
Definition: L1TDTTFClient.h:58
TH2F * getTH2F(DQMStore::IGetter &igetter, const char *hname)
MonitorElement * dttf_phi_eta_fine_integ
Definition: L1TDTTFClient.h:64
MonitorElement * dttf_highQual_Summary_2ndTrack
Definition: L1TDTTFClient.h:83
MonitorElement * dttf_phi_wheel[6]
Definition: L1TDTTFClient.h:97
MonitorElement * dttf_phi_eta_integ
Definition: L1TDTTFClient.h:65
MonitorElement * dttf_quality_summary_wheel[6]
Definition: L1TDTTFClient.h:94
MonitorElement * dttf_pt_integ
Definition: L1TDTTFClient.h:68
MonitorElement * dttf_phi_eta_coarse_integ
Definition: L1TDTTFClient.h:63
virtual ~L1TDTTFClient()
Destructor.
TH2F * occupancy_r_
counter
Definition: L1TDTTFClient.h:47
MonitorElement * dttf_occupancySummary_2ndTrack
Definition: L1TDTTFClient.h:78
MonitorElement * dttf_eta_integ
Definition: L1TDTTFClient.h:69
MonitorElement * dttf_2ndTrack_Summary
Definition: L1TDTTFClient.h:73
std::string gmtpath_
Definition: L1TDTTFClient.h:52
MonitorElement * dttf_q_integ_2ndTrack
Definition: L1TDTTFClient.h:88
MonitorElement * dttf_bx_wheel_summary_2ndTrack[6]
void normalize(T *me, const double &scale)
MonitorElement * dttf_bx_summary
Definition: L1TDTTFClient.h:57
MonitorElement * dttf_quality_wheel[6]
Definition: L1TDTTFClient.h:93
void setMapLabel(MonitorElement *me)
void makeSummary(DQMStore::IGetter &igetter)
MonitorElement * dttf_eta_fine_fraction
Definition: L1TDTTFClient.h:66
std::string l1tdttffolder_
Definition: L1TDTTFClient.h:41
MonitorElement * dttf_occupancySummary_test
Definition: L1TDTTFClient.h:75
MonitorElement * dttf_fine_fraction_wh[6]
Definition: L1TDTTFClient.h:95
void setQualLabel(MonitorElement *me, int axis)
MonitorElement * dttf_nTracks_wheel[6]
Definition: L1TDTTFClient.h:90
MonitorElement * dttf_bx_summary_2ndTrack
Definition: L1TDTTFClient.h:79
MonitorElement * dttf_nTracks_integ_2ndTrack
Definition: L1TDTTFClient.h:77
void buildPhiEtaPlotOFC(DQMStore::IGetter &igetter, 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)
void setGMTsummary(DQMStore::IGetter &igetter)
MonitorElement * dttf_phi_integ_2ndTrack
Definition: L1TDTTFClient.h:86
MonitorElement * dttf_pt_wheel[6]
Definition: L1TDTTFClient.h:98
MonitorElement * dttf_nTracks_wheel_2ndTrack[6]
MonitorElement * dttf_phi_integ
Definition: L1TDTTFClient.h:67
long double T
MonitorElement * dttf_highQual_Summary
Definition: L1TDTTFClient.h:62
MonitorElement * dttf_q_integ
Definition: L1TDTTFClient.h:70
MonitorElement * dttf_bx_wheel_integ[6]
Definition: L1TDTTFClient.h:92
void normalize(T *me)
std::string inclusivepath_
Definition: L1TDTTFClient.h:51
std::string testpath_
Definition: L1TDTTFClient.h:53
edm::InputTag dttfSource_
Definition: L1TDTTFClient.h:42
void setWheelLabel(MonitorElement *me)
std::string wheel_[6]
Definition: L1TDTTFClient.h:49
MonitorElement * dttf_quality_summary_2ndTrack
Definition: L1TDTTFClient.h:82
MonitorElement * dttf_phi_eta_integ_2ndTrack
Definition: L1TDTTFClient.h:84