CMS 3D CMS Logo

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