CMS 3D CMS Logo

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 59 of file NanoAODDQM.cc.

Constructor & Destructor Documentation

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

Definition at line 61 of file NanoAODDQM.cc.

61  :
62  Plot(booker.book1D(cfg.getParameter<std::string>("name"), cfg.getParameter<std::string>("title"), cfg.getParameter<uint32_t>("nbins"), cfg.getParameter<double>("min"), cfg.getParameter<double>("max")))
63  {
64  }
T getParameter(std::string const &) const
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:106
Plot(MonitorElement *me)
Definition: NanoAODDQM.cc:52
NanoAODDQM::Count1D::~Count1D ( )
inlineoverride

Definition at line 65 of file NanoAODDQM.cc.

65 {}

Member Function Documentation

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

Implements NanoAODDQM::Plot.

Definition at line 66 of file NanoAODDQM.cc.

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

66  {
67  plot_->Fill(std::accumulate(rowsel.begin(), rowsel.end(), 0u));
68  }
void Fill(long long x)
MonitorElement * plot_
Definition: NanoAODDQM.cc:57