CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private 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::MonitorElementIPPull_
 
dqm::reco::MonitorElementIPVsEta_
 
dqm::reco::MonitorElementIPVsEtaVsPhi_
 
dqm::reco::MonitorElementIPVsPhi_
 
float pTcut_
 
std::string varname_
 

Private Attributes

int EtaBin_
 
double EtaMax_
 
double EtaMin_
 
int PhiBin_
 
double PhiMax_
 
double PhiMin_
 

Detailed Description

Definition at line 33 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(), PrimaryVertexMonitor_cff::EtaBin2D, EtaBin_, EtaMax_, EtaMin_, dqm-mbProfile::format, IP_, IPErr_, IPErrVsEta_, IPErrVsEtaVsPhi_, IPErrVsPhi_, IPPull_, IPVsEta_, IPVsEtaVsPhi_, IPVsPhi_, PrimaryVertexMonitor_cff::PhiBin2D, PhiBin_, PhiMax_, 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  PhiBin_ = config.getParameter<int>("PhiBin");
220  PhiMin_ = config.getParameter<double>("PhiMin");
221  PhiMax_ = config.getParameter<double>("PhiMax");
222  int PhiBin2D = config.getParameter<int>("PhiBin2D");
223 
224  EtaBin_ = config.getParameter<int>("EtaBin");
225  EtaMin_ = config.getParameter<double>("EtaMin");
226  EtaMax_ = config.getParameter<double>("EtaMax");
227  int EtaBin2D = config.getParameter<int>("EtaBin2D");
228 
229  // 1D variables
230 
231  IP_ = iBooker.book1D(fmt::format("d{}_pt{}", varname_, pTcut_),
232  fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} (#mum)", pTcut_, varname_),
233  VarBin,
234  VarMin,
235  VarMax);
236 
237  IPErr_ = iBooker.book1D(fmt::format("d{}Err_pt{}", varname_, pTcut_),
238  fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} error (#mum)", pTcut_, varname_),
239  100,
240  0.,
241  (varname_.find("xy") != std::string::npos) ? 2000. : 10000.);
242 
243  IPPull_ = iBooker.book1D(
244  fmt::format("d{}Pull_pt{}", varname_, pTcut_),
245  fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}}/#sigma_{{d_{{{}}}}}", pTcut_, varname_, varname_),
246  100,
247  -5.,
248  5.);
249 
250  // profiles
251 
252  IPVsPhi_ = iBooker.bookProfile(fmt::format("d{}VsPhi_pt{}", varname_, pTcut_),
253  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} VS track #phi", pTcut_, varname_),
254  PhiBin_,
255  PhiMin_,
256  PhiMax_,
257  VarBin,
258  VarMin,
259  VarMax,
260  "");
261  IPVsPhi_->setAxisTitle("PV track (p_{T} > 1 GeV) #phi", 1);
262  IPVsPhi_->setAxisTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} (#mum)", pTcut_, varname_), 2);
263 
264  IPVsEta_ = iBooker.bookProfile(fmt::format("d{}VsEta_pt{}", varname_, pTcut_),
265  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} VS track #eta", pTcut_, varname_),
266  EtaBin_,
267  EtaMin_,
268  EtaMax_,
269  VarBin,
270  VarMin,
271  VarMax,
272  "");
273  IPVsEta_->setAxisTitle("PV track (p_{T} > 1 GeV) #eta", 1);
274  IPVsEta_->setAxisTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} (#mum)", pTcut_, varname_), 2);
275 
276  IPErrVsPhi_ =
277  iBooker.bookProfile(fmt::format("d{}ErrVsPhi_pt{}", varname_, pTcut_),
278  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} error VS track #phi", pTcut_, varname_),
279  PhiBin_,
280  PhiMin_,
281  PhiMax_,
282  VarBin,
283  0.,
284  (varname_.find("xy") != std::string::npos) ? 100. : 200.,
285  "");
286  IPErrVsPhi_->setAxisTitle("PV track (p_{T} > 1 GeV) #phi", 1);
287  IPErrVsPhi_->setAxisTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} error (#mum)", pTcut_, varname_), 2);
288 
289  IPErrVsEta_ =
290  iBooker.bookProfile(fmt::format("d{}ErrVsEta_pt{}", varname_, pTcut_),
291  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} error VS track #eta", pTcut_, varname_),
292  EtaBin_,
293  EtaMin_,
294  EtaMax_,
295  VarBin,
296  0.,
297  (varname_.find("xy") != std::string::npos) ? 100. : 200.,
298  "");
299  IPErrVsEta_->setAxisTitle("PV track (p_{T} > 1 GeV) #eta", 1);
300  IPErrVsEta_->setAxisTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} error (#mum)", pTcut_, varname_), 2);
301 
302  // 2D profiles
303 
304  IPVsEtaVsPhi_ = iBooker.bookProfile2D(
305  fmt::format("d{}VsEtaVsPhi_pt{}", varname_, pTcut_),
306  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} VS track #eta VS track #phi", pTcut_, varname_),
307  EtaBin2D,
308  EtaMin_,
309  EtaMax_,
310  PhiBin2D,
311  PhiMin_,
312  PhiMax_,
313  VarBin,
314  VarMin,
315  VarMax,
316  "");
317  IPVsEtaVsPhi_->setAxisTitle("PV track (p_{T} > 1 GeV) #eta", 1);
318  IPVsEtaVsPhi_->setAxisTitle("PV track (p_{T} > 1 GeV) #phi", 2);
319  IPVsEtaVsPhi_->setAxisTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} (#mum)", pTcut_, varname_), 3);
320 
322  fmt::format("d{}ErrVsEtaVsPhi_pt{}", varname_, pTcut_),
323  fmt::format("PV tracks (p_{{T}} > {}) d_{{{}}} error VS track #eta VS track #phi", pTcut_, varname_),
324  EtaBin2D,
325  EtaMin_,
326  EtaMax_,
327  PhiBin2D,
328  PhiMin_,
329  PhiMax_,
330  VarBin,
331  0.,
332  (varname_.find("xy") != std::string::npos) ? 100. : 200.,
333  "");
334  IPErrVsEtaVsPhi_->setAxisTitle("PV track (p_{T} > 1 GeV) #eta", 1);
335  IPErrVsEtaVsPhi_->setAxisTitle("PV track (p_{T} > 1 GeV) #phi", 2);
336  IPErrVsEtaVsPhi_->setAxisTitle(fmt::format("PV tracks (p_{{T}} > {} GeV) d_{{{}}} error (#mum)", pTcut_, varname_),
337  3);
338 }
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:485
dqm::reco::MonitorElement * IPErrVsEta_
dqm::reco::MonitorElement * IPPull_
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:408
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

◆ EtaBin_

int PrimaryVertexMonitor::IPMonitoring::EtaBin_
private

Definition at line 44 of file PrimaryVertexMonitor.h.

Referenced by bookIPMonitor().

◆ EtaMax_

double PrimaryVertexMonitor::IPMonitoring::EtaMax_
private

Definition at line 45 of file PrimaryVertexMonitor.h.

Referenced by bookIPMonitor().

◆ EtaMin_

double PrimaryVertexMonitor::IPMonitoring::EtaMin_
private

Definition at line 45 of file PrimaryVertexMonitor.h.

Referenced by bookIPMonitor().

◆ IP_

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

Definition at line 36 of file PrimaryVertexMonitor.h.

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

◆ IPErr_

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

Definition at line 36 of file PrimaryVertexMonitor.h.

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

◆ IPErrVsEta_

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

Definition at line 38 of file PrimaryVertexMonitor.h.

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

◆ IPErrVsEtaVsPhi_

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

Definition at line 39 of file PrimaryVertexMonitor.h.

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

◆ IPErrVsPhi_

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

Definition at line 38 of file PrimaryVertexMonitor.h.

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

◆ IPPull_

dqm::reco::MonitorElement * PrimaryVertexMonitor::IPMonitoring::IPPull_

Definition at line 36 of file PrimaryVertexMonitor.h.

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

◆ IPVsEta_

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

Definition at line 37 of file PrimaryVertexMonitor.h.

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

◆ IPVsEtaVsPhi_

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

Definition at line 39 of file PrimaryVertexMonitor.h.

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

◆ IPVsPhi_

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

Definition at line 37 of file PrimaryVertexMonitor.h.

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

◆ PhiBin_

int PrimaryVertexMonitor::IPMonitoring::PhiBin_
private

Definition at line 44 of file PrimaryVertexMonitor.h.

Referenced by bookIPMonitor().

◆ PhiMax_

double PrimaryVertexMonitor::IPMonitoring::PhiMax_
private

Definition at line 45 of file PrimaryVertexMonitor.h.

Referenced by bookIPMonitor().

◆ PhiMin_

double PrimaryVertexMonitor::IPMonitoring::PhiMin_
private

Definition at line 45 of file PrimaryVertexMonitor.h.

Referenced by bookIPMonitor().

◆ pTcut_

float PrimaryVertexMonitor::IPMonitoring::pTcut_

Definition at line 35 of file PrimaryVertexMonitor.h.

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

◆ varname_

std::string PrimaryVertexMonitor::IPMonitoring::varname_

Definition at line 34 of file PrimaryVertexMonitor.h.

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