CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
NanoAODDQM::Count1D Class Reference
Inheritance diagram for NanoAODDQM::Count1D:
NanoAODDQM::Plot

Public Member Functions

 Count1D (DQMStore::IBooker &booker, const edm::ParameterSet &cfg)
 
void fill (const FlatTable &table, const std::vector< bool > &rowsel) override
 
 ~Count1D () override
 
- Public Member Functions inherited from NanoAODDQM::Plot
const std::string & name () const
 
 Plot (MonitorElement *me)
 
virtual ~Plot ()
 

Additional Inherited Members

- Protected Attributes inherited from NanoAODDQM::Plot
MonitorElementplot_
 

Detailed Description

Definition at line 60 of file NanoAODDQM.cc.

Constructor & Destructor Documentation

NanoAODDQM::Count1D::Count1D ( DQMStore::IBooker booker,
const edm::ParameterSet cfg 
)
inline

Definition at line 62 of file NanoAODDQM.cc.

63  : Plot(booker.book1D(cfg.getParameter<std::string>("name"),
64  cfg.getParameter<std::string>("title"),
65  cfg.getParameter<uint32_t>("nbins"),
66  cfg.getParameter<double>("min"),
67  cfg.getParameter<double>("max"))) {}
Plot(MonitorElement *me)
Definition: NanoAODDQM.cc:52
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
NanoAODDQM::Count1D::~Count1D ( )
inlineoverride

Definition at line 68 of file NanoAODDQM.cc.

68 {}

Member Function Documentation

void NanoAODDQM::Count1D::fill ( const FlatTable table,
const std::vector< bool > &  rowsel 
)
inlineoverridevirtual

Implements NanoAODDQM::Plot.

Definition at line 69 of file NanoAODDQM.cc.

References dqm::impl::MonitorElement::Fill(), and NanoAODDQM::Plot::plot_.

69  {
70  plot_->Fill(std::accumulate(rowsel.begin(), rowsel.end(), 0u));
71  }
void Fill(long long x)
MonitorElement * plot_
Definition: NanoAODDQM.cc:58