CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 50 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 DQMStore::IBooker::book1D(), etaMonitorElement, etMonitorElement, cmsPerfStripChart::format, parent, phiMonitorElement, EmDQMReco::plotBins, EmDQMReco::plotEtaMax, EmDQMReco::plotPhiMax, EmDQMReco::plotPtMax, EmDQMReco::plotPtMin, and AlCaHLTBitMon_QueryRunRegistry::string.

52  :
53  parent(_parent)
54 {
55  // introducing variables for better code readability later on
56  std::string histName;
57  std::string histTitle;
58 
59  // et
60  histName = boost::str(boost::format(histogramNameTemplate) % "et");
61  histTitle = boost::str(boost::format(histogramTitleTemplate) % "E_{T}");
62  etMonitorElement = iBooker.book1D(histName.c_str(),
63  histTitle.c_str(),
66  parent->plotPtMax);
67 
68  // eta
69  histName = boost::str(boost::format(histogramNameTemplate) % "eta");
70  histTitle= boost::str(boost::format(histogramTitleTemplate) % "#eta");
71  etaMonitorElement = iBooker.book1D(histName.c_str(),
72  histTitle.c_str(),
74  - parent->plotEtaMax,
76 
77  // phi
78  histName = boost::str(boost::format(histogramNameTemplate) % "phi");
79  histTitle= boost::str(boost::format(histogramTitleTemplate) % "#phi");
80  phiMonitorElement = iBooker.book1D(histName.c_str(),
81  histTitle.c_str(),
83  - parent->plotPhiMax,
85 }
string format
Some error handling for the usage.
unsigned int plotBins
Definition: EmDQMReco.h:133
MonitorElement * etaMonitorElement
Definition: EmDQMReco.h:73
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:115
double plotPhiMax
Definition: EmDQMReco.h:130
MonitorElement * phiMonitorElement
Definition: EmDQMReco.h:74
double plotPtMin
Definition: EmDQMReco.h:128
double plotPtMax
Definition: EmDQMReco.h:129
double plotEtaMax
Definition: EmDQMReco.h:127

Member Function Documentation

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

Definition at line 90 of file EmDQMReco.cc.

91 {
92  etMonitorElement->Fill(momentum.Et());
93  etaMonitorElement->Fill(momentum.eta() );
94  phiMonitorElement->Fill(momentum.phi() );
95 }
void Fill(long long x)
MonitorElement * etaMonitorElement
Definition: EmDQMReco.h:73
MonitorElement * phiMonitorElement
Definition: EmDQMReco.h:74

Member Data Documentation

MonitorElement* EmDQMReco::FourVectorMonitorElements::etaMonitorElement
private

Definition at line 73 of file EmDQMReco.h.

Referenced by FourVectorMonitorElements().

MonitorElement* EmDQMReco::FourVectorMonitorElements::etMonitorElement
private

DQM objects (histograms) for the variables to be plotted

Definition at line 72 of file EmDQMReco.h.

Referenced by FourVectorMonitorElements().

EmDQMReco* EmDQMReco::FourVectorMonitorElements::parent
private

for accessing the histogramming parameters

Definition at line 69 of file EmDQMReco.h.

Referenced by BeautifulSoup.PageElement::_invert(), 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(), argparse.HelpFormatter._Section::format_help(), python.rootplot.argparse.HelpFormatter._Section::format_help(), FourVectorMonitorElements(), 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(), 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 74 of file EmDQMReco.h.

Referenced by FourVectorMonitorElements().