CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
EmDQMReco::FourVectorMonitorElements Class Reference

Public Member Functions

void fill (const math::XYZTLorentzVector &momentum)
 
 FourVectorMonitorElements (EmDQMReco *_parent, DQMStore::IBooker &iBooker, const std::string &histogramNameTemplate, const std::string &histogramTitleTemplate)
 

Private Attributes

MonitorElementetaMonitorElement
 
MonitorElementetMonitorElement
 
EmDQMRecoparent
 
MonitorElementphiMonitorElement
 

Detailed Description

a class managing a set of MonitorElements for quantities of a fourvector we want to histogram.

Definition at line 53 of file EmDQMReco.h.

Constructor & Destructor Documentation

EmDQMReco::FourVectorMonitorElements::FourVectorMonitorElements ( EmDQMReco _parent,
DQMStore::IBooker iBooker,
const std::string &  histogramNameTemplate,
const std::string &  histogramTitleTemplate 
)
Parameters
histogramNameTemplateshould be a format string (like used in printf(..) or boost::format(..) for the histogram NAME where the first s is replaced with et,eta or phi.
histogramTitleTemplateshould be a format string (see histogramNameTemplate) for the histogram TITLE where the first s is replaced with et,eta or phi.

Definition at line 48 of file EmDQMReco.cc.

References dqm::dqmstoreimpl::DQMStore::IBooker::book1D(), etaMonitorElement, etMonitorElement, dqm-mbProfile::format, B2GTnPMonitor_cfi::histTitle, parent, phiMonitorElement, EmDQMReco::plotBins, EmDQMReco::plotEtaMax, EmDQMReco::plotPhiMax, EmDQMReco::plotPtMax, EmDQMReco::plotPtMin, str, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by EmDQMReco::bookHistograms().

52  : parent(_parent) {
53  // introducing variables for better code readability later on
54  std::string histName;
56 
57  // et
58  histName = boost::str(boost::format(histogramNameTemplate) % "et");
59  histTitle = boost::str(boost::format(histogramTitleTemplate) % "E_{T}");
61  iBooker.book1D(histName.c_str(), histTitle.c_str(), parent->plotBins, parent->plotPtMin, parent->plotPtMax);
62 
63  // eta
64  histName = boost::str(boost::format(histogramNameTemplate) % "eta");
65  histTitle = boost::str(boost::format(histogramTitleTemplate) % "#eta");
67  iBooker.book1D(histName.c_str(), histTitle.c_str(), parent->plotBins, -parent->plotEtaMax, parent->plotEtaMax);
68 
69  // phi
70  histName = boost::str(boost::format(histogramNameTemplate) % "phi");
71  histTitle = boost::str(boost::format(histogramTitleTemplate) % "#phi");
73  iBooker.book1D(histName.c_str(), histTitle.c_str(), parent->plotBins, -parent->plotPhiMax, parent->plotPhiMax);
74 }
unsigned int plotBins
Definition: EmDQMReco.h:131
MonitorElement * etaMonitorElement
Definition: EmDQMReco.h:76
double plotPhiMax
Definition: EmDQMReco.h:128
MonitorElement * phiMonitorElement
Definition: EmDQMReco.h:77
double plotPtMin
Definition: EmDQMReco.h:126
double plotPtMax
Definition: EmDQMReco.h:127
double plotEtaMax
Definition: EmDQMReco.h:125
#define str(s)

Member Function Documentation

void EmDQMReco::FourVectorMonitorElements::fill ( const math::XYZTLorentzVector momentum)

Definition at line 78 of file EmDQMReco.cc.

References etaMonitorElement, etMonitorElement, dqm::impl::MonitorElement::Fill(), and phiMonitorElement.

78  {
79  etMonitorElement->Fill(momentum.Et());
80  etaMonitorElement->Fill(momentum.eta());
81  phiMonitorElement->Fill(momentum.phi());
82 }
void Fill(long long x)
MonitorElement * etaMonitorElement
Definition: EmDQMReco.h:76
MonitorElement * phiMonitorElement
Definition: EmDQMReco.h:77

Member Data Documentation

MonitorElement* EmDQMReco::FourVectorMonitorElements::etaMonitorElement
private

Definition at line 76 of file EmDQMReco.h.

Referenced by fill(), and FourVectorMonitorElements().

MonitorElement* EmDQMReco::FourVectorMonitorElements::etMonitorElement
private

DQM objects (histograms) for the variables to be plotted

Definition at line 75 of file EmDQMReco.h.

Referenced by fill(), and FourVectorMonitorElements().

EmDQMReco* EmDQMReco::FourVectorMonitorElements::parent
private

for accessing the histogramming parameters

Definition at line 72 of file EmDQMReco.h.

Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget::addMenuEntry(), Vispa.Views.LineDecayView.LineDecayContainer::applyFilter(), Vispa.Views.BoxDecayView.BoxDecayContainer::arrangeUsingRelations(), Vispa.Views.BoxDecayView.BoxDecayContainer::autolayoutAlgorithm(), Vispa.Gui.ZoomableScrollableWidgetOwner.ZoomableScrollableWidgetOwner::autosizeScrollArea(), Vispa.Views.BoxDecayView.BoxDecayContainer::autosizeScrollArea(), Vispa.Gui.PortWidget.PortWidget::connectionPoint(), Vispa.Main.StartupScreen.StartupScreen::createDescriptionWidget(), Vispa.Views.BoxDecayView.BoxDecayContainer::dataAccessor(), Vispa.Views.LineDecayView.LineDecayContainer::dataAccessor(), Vispa.Views.LineDecayView.DecayLine::dataAccessor(), Vispa.Views.LineDecayView.LineDecayContainer::delete(), Vispa.Views.LineDecayView.DecayNode::delete(), Vispa.Views.LineDecayView.DecayLine::delete(), Vispa.Gui.VispaWidget.VispaWidget::delete(), Vispa.Gui.VispaWidget.VispaWidget::dragWidget(), Vispa.Share.ImageExporter.ImageExporter::exportImageDialog(), Vispa.Views.LineDecayView.DecayLine::extendedSize(), FourVectorMonitorElements(), edmIntegrityCheck.PublishToFileSystem::get(), Vispa.Gui.VispaWidget.VispaWidget::keyPressEvent(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent(), Vispa.Gui.PortWidget.PortWidget::moduleParent(), Vispa.Gui.WidgetContainer.WidgetContainer::mouseDoubleClickEvent(), Vispa.Gui.VispaWidget.VispaWidget::mouseDoubleClickEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), Vispa.Views.LineDecayView.ParticleWidget::mousePressEvent(), Vispa.Views.LineDecayView.DecayNode::move(), Vispa.Views.LineDecayView.LineDecayContainer::noDecorationsMode(), Vispa.Views.LineDecayView.LineDecayContainer::operationId(), Vispa.Views.LineDecayView.DecayLine::paint(), Vispa.Gui.VispaWidget.VispaWidget::paintEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget::positionizeMenuWidget(), edmIntegrityCheck.PublishToFileSystem::publish(), Vispa.Views.LineDecayView.DecayLine::qtLineStyle(), Vispa.Views.WidgetView.WidgetView::restoreSelection(), Vispa.Views.WidgetView.WidgetView::select(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Views.LineDecayView.LineDecayContainer::sizeHint(), Vispa.Views.LineDecayView.LineDecayContainer::tabController(), Vispa.Views.BoxDecayView.BoxDecayContainer::toggleCollapsed(), Vispa.Views.LineDecayView.DecayNode::unite(), Vispa.Views.PropertyView.PropertyView::valueChanged(), Vispa.Views.BoxDecayView.BoxDecayContainer::widgetByObject(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::widgetDoubleClicked(), and Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::widgetDragged().

MonitorElement* EmDQMReco::FourVectorMonitorElements::phiMonitorElement
private

Definition at line 77 of file EmDQMReco.h.

Referenced by fill(), and FourVectorMonitorElements().