CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
PrimaryVertexMonitor::IPMonitoring Struct Reference

#include <PrimaryVertexMonitor.h>

Public Member Functions

void bookIPMonitor (DQMStore::IBooker &, const edm::ParameterSet &)
 

Public Attributes

dqm::reco::MonitorElementIP_
 
dqm::reco::MonitorElementIPErr_
 
dqm::reco::MonitorElementIPErrVsEta_
 
dqm::reco::MonitorElementIPErrVsEtaVsPhi_
 
dqm::reco::MonitorElementIPErrVsPhi_
 
dqm::reco::MonitorElementIPVsEta_
 
dqm::reco::MonitorElementIPVsEtaVsPhi_
 
dqm::reco::MonitorElementIPVsPhi_
 
float pTcut_
 
std::string varname_
 

Detailed Description

Definition at line 35 of file PrimaryVertexMonitor.h.

Member Function Documentation

◆ bookIPMonitor()

void PrimaryVertexMonitor::IPMonitoring::bookIPMonitor ( DQMStore::IBooker iBooker,
const edm::ParameterSet config 
)

Definition at line 214 of file PrimaryVertexMonitor.cc.

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::bookProfile(), dqm::implementation::IBooker::bookProfile2D(), MonitorTrackInnerTrackMuons_cff::EtaBin, PrimaryVertexMonitor_cff::EtaBin2D, MonitorTrackInnerTrackMuons_cff::EtaMax, MonitorTrackInnerTrackMuons_cff::EtaMin, dqm-mbProfile::format, IP_, IPErr_, IPErrVsEta_, IPErrVsEtaVsPhi_, IPErrVsPhi_, IPVsEta_, IPVsEtaVsPhi_, IPVsPhi_, MonitorTrackSTAMuons_cfi::PhiBin, PrimaryVertexMonitor_cff::PhiBin2D, MonitorTrackSTAMuons_cfi::PhiMax, MonitorTrackSTAMuons_cfi::PhiMin, pTcut_, dqm::impl::MonitorElement::setAxisTitle(), and varname_.

Referenced by PrimaryVertexMonitor::bookHistograms().

214  {
215  int VarBin = config.getParameter<int>(fmt::format("D{}Bin", varname_));
216  double VarMin = config.getParameter<double>(fmt::format("D{}Min", varname_));
217  double VarMax = config.getParameter<double>(fmt::format("D{}Max", varname_));
218 
219  int PhiBin = config.getParameter<int>("PhiBin");
220  int PhiBin2D = config.getParameter<int>("PhiBin2D");
221  double PhiMin = config.getParameter<double>("PhiMin");
222  double PhiMax = config.getParameter<double>("PhiMax");
223 
224  int EtaBin = config.getParameter<int>("EtaBin");
225  int EtaBin2D = config.getParameter<int>("EtaBin2D");
226  double EtaMin = config.getParameter<double>("EtaMin");
227  double EtaMax = config.getParameter<double>("EtaMax");
228 
229  IP_ = iBooker.book1D(fmt::format("d{}_pt{}", varname_, pTcut_),
230  fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} (#mum)", pTcut_, varname_),
231  VarBin,
232  VarMin,
233  VarMax);
234 
235  IPErr_ = iBooker.book1D(fmt::format("d{}Err_pt{}", varname_, pTcut_),
236  fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} error (#mum)", pTcut_, varname_),
237  100,
238  0.,
239  (varname_.find("xy") != std::string::npos) ? 2000. : 10000.);
240 
241  IPVsPhi_ = iBooker.bookProfile(fmt::format("d{}VsPhi_pt{}", varname_, pTcut_),
242  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} VS track #phi", pTcut_, varname_),
243  PhiBin,
244  PhiMin,
245  PhiMax,
246  VarBin,
247  VarMin,
248  VarMax,
249  "");
250  IPVsPhi_->setAxisTitle("PV track (p_{T} > 1 GeV) #phi", 1);
251  IPVsPhi_->setAxisTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} (#mum)", pTcut_, varname_), 2);
252 
253  IPVsEta_ = iBooker.bookProfile(fmt::format("d{}VsEta_pt{}", varname_, pTcut_),
254  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} VS track #eta", pTcut_, varname_),
255  EtaBin,
256  EtaMin,
257  EtaMax,
258  VarBin,
259  VarMin,
260  VarMax,
261  "");
262  IPVsEta_->setAxisTitle("PV track (p_{T} > 1 GeV) #eta", 1);
263  IPVsEta_->setAxisTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} (#mum)", pTcut_, varname_), 2);
264 
265  IPErrVsPhi_ =
266  iBooker.bookProfile(fmt::format("d{}ErrVsPhi_pt{}", varname_, pTcut_),
267  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} error VS track #phi", pTcut_, varname_),
268  PhiBin,
269  PhiMin,
270  PhiMax,
271  VarBin,
272  0.,
273  (varname_.find("xy") != std::string::npos) ? 100. : 200.,
274  "");
275  IPErrVsPhi_->setAxisTitle("PV track (p_{T} > 1 GeV) #phi", 1);
276  IPErrVsPhi_->setAxisTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} error (#mum)", pTcut_, varname_), 2);
277 
278  IPErrVsEta_ =
279  iBooker.bookProfile(fmt::format("d{}ErrVsEta_pt{}", varname_, pTcut_),
280  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} error VS track #eta", pTcut_, varname_),
281  EtaBin,
282  EtaMin,
283  EtaMax,
284  VarBin,
285  0.,
286  (varname_.find("xy") != std::string::npos) ? 100. : 200.,
287  "");
288  IPErrVsEta_->setAxisTitle("PV track (p_{T} > 1 GeV) #eta", 1);
289  IPErrVsEta_->setAxisTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} error (#mum)", pTcut_, varname_), 2);
290 
291  IPVsEtaVsPhi_ = iBooker.bookProfile2D(
292  fmt::format("d{}VsEtaVsPhi_pt{}", varname_, pTcut_),
293  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} VS track #eta VS track #phi", pTcut_, varname_),
294  EtaBin2D,
295  EtaMin,
296  EtaMax,
297  PhiBin2D,
298  PhiMin,
299  PhiMax,
300  VarBin,
301  VarMin,
302  VarMax,
303  "");
304  IPVsEtaVsPhi_->setAxisTitle("PV track (p_{T} > 1 GeV) #eta", 1);
305  IPVsEtaVsPhi_->setAxisTitle("PV track (p_{T} > 1 GeV) #phi", 2);
306  IPVsEtaVsPhi_->setAxisTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} (#mum)", pTcut_, varname_), 3);
307 
309  fmt::format("d{}ErrVsEtaVsPhi_pt{}", varname_, pTcut_),
310  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} error VS track #eta VS track #phi", pTcut_, varname_),
311  EtaBin2D,
312  EtaMin,
313  EtaMax,
314  PhiBin2D,
315  PhiMin,
316  PhiMax,
317  VarBin,
318  0.,
319  (varname_.find("xy") != std::string::npos) ? 100. : 200.,
320  "");
321  IPErrVsEtaVsPhi_->setAxisTitle("PV track (p_{T} > 1 GeV) #eta", 1);
322  IPErrVsEtaVsPhi_->setAxisTitle("PV track (p_{T} > 1 GeV) #phi", 2);
323  IPErrVsEtaVsPhi_->setAxisTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} error (#mum)", pTcut_, varname_),
324  3);
325 }
MonitorElement * bookProfile2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, double lowZ, double highZ, char const *option="s", FUNC onbooking=NOOP())
Definition: DQMStore.h:476
dqm::reco::MonitorElement * IPErrVsEta_
Definition: config.py:1
dqm::reco::MonitorElement * IPVsEtaVsPhi_
dqm::reco::MonitorElement * IP_
dqm::reco::MonitorElement * IPVsEta_
dqm::reco::MonitorElement * IPErrVsPhi_
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
Definition: DQMStore.h:399
dqm::reco::MonitorElement * IPErr_
dqm::reco::MonitorElement * IPErrVsEtaVsPhi_
dqm::reco::MonitorElement * IPVsPhi_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)

Member Data Documentation

◆ IP_

dqm::reco::MonitorElement* PrimaryVertexMonitor::IPMonitoring::IP_

Definition at line 38 of file PrimaryVertexMonitor.h.

Referenced by bookIPMonitor(), and PrimaryVertexMonitor::pvTracksPlots().

◆ IPErr_

dqm::reco::MonitorElement * PrimaryVertexMonitor::IPMonitoring::IPErr_

Definition at line 38 of file PrimaryVertexMonitor.h.

Referenced by bookIPMonitor(), and PrimaryVertexMonitor::pvTracksPlots().

◆ IPErrVsEta_

dqm::reco::MonitorElement * PrimaryVertexMonitor::IPMonitoring::IPErrVsEta_

Definition at line 40 of file PrimaryVertexMonitor.h.

Referenced by bookIPMonitor(), and PrimaryVertexMonitor::pvTracksPlots().

◆ IPErrVsEtaVsPhi_

dqm::reco::MonitorElement * PrimaryVertexMonitor::IPMonitoring::IPErrVsEtaVsPhi_

Definition at line 41 of file PrimaryVertexMonitor.h.

Referenced by bookIPMonitor(), and PrimaryVertexMonitor::pvTracksPlots().

◆ IPErrVsPhi_

dqm::reco::MonitorElement* PrimaryVertexMonitor::IPMonitoring::IPErrVsPhi_

Definition at line 40 of file PrimaryVertexMonitor.h.

Referenced by bookIPMonitor(), and PrimaryVertexMonitor::pvTracksPlots().

◆ IPVsEta_

dqm::reco::MonitorElement * PrimaryVertexMonitor::IPMonitoring::IPVsEta_

Definition at line 39 of file PrimaryVertexMonitor.h.

Referenced by bookIPMonitor(), and PrimaryVertexMonitor::pvTracksPlots().

◆ IPVsEtaVsPhi_

dqm::reco::MonitorElement* PrimaryVertexMonitor::IPMonitoring::IPVsEtaVsPhi_

Definition at line 41 of file PrimaryVertexMonitor.h.

Referenced by bookIPMonitor(), and PrimaryVertexMonitor::pvTracksPlots().

◆ IPVsPhi_

dqm::reco::MonitorElement* PrimaryVertexMonitor::IPMonitoring::IPVsPhi_

Definition at line 39 of file PrimaryVertexMonitor.h.

Referenced by bookIPMonitor(), and PrimaryVertexMonitor::pvTracksPlots().

◆ pTcut_

float PrimaryVertexMonitor::IPMonitoring::pTcut_

Definition at line 37 of file PrimaryVertexMonitor.h.

Referenced by PrimaryVertexMonitor::bookHistograms(), and bookIPMonitor().

◆ varname_

std::string PrimaryVertexMonitor::IPMonitoring::varname_

Definition at line 36 of file PrimaryVertexMonitor.h.

Referenced by PrimaryVertexMonitor::bookHistograms(), and bookIPMonitor().