CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes
nanoaod::MergeableCounterTable::SingleColumn< T > Struct Template Reference

#include <MergeableCounterTable.h>

Inheritance diagram for nanoaod::MergeableCounterTable::SingleColumn< T >:
nanoaod::MergeableCounterTable::SingleWithNormColumn< T >

Public Types

typedef T value_type
 

Public Member Functions

bool compatible (const SingleColumn< T > &other)
 
void operator+= (const SingleColumn< T > &other)
 
 SingleColumn ()
 
 SingleColumn (const std::string &aname, const std::string &adoc, T avalue=T())
 

Public Attributes

std::string doc
 
std::string name
 
T value
 

Detailed Description

template<typename T>
struct nanoaod::MergeableCounterTable::SingleColumn< T >

Definition at line 18 of file MergeableCounterTable.h.

Member Typedef Documentation

◆ value_type

template<typename T>
typedef T nanoaod::MergeableCounterTable::SingleColumn< T >::value_type

Definition at line 19 of file MergeableCounterTable.h.

Constructor & Destructor Documentation

◆ SingleColumn() [1/2]

template<typename T>
nanoaod::MergeableCounterTable::SingleColumn< T >::SingleColumn ( )
inline

Definition at line 20 of file MergeableCounterTable.h.

20 {}

◆ SingleColumn() [2/2]

template<typename T>
nanoaod::MergeableCounterTable::SingleColumn< T >::SingleColumn ( const std::string &  aname,
const std::string &  adoc,
T  avalue = T() 
)
inline

Member Function Documentation

◆ compatible()

template<typename T>
bool nanoaod::MergeableCounterTable::SingleColumn< T >::compatible ( const SingleColumn< T > &  other)
inline

◆ operator+=()

template<typename T>
void nanoaod::MergeableCounterTable::SingleColumn< T >::operator+= ( const SingleColumn< T > &  other)
inline

Definition at line 25 of file MergeableCounterTable.h.

References nanoaod::MergeableCounterTable::SingleColumn< T >::compatible(), Exception, nanoaod::MergeableCounterTable::SingleColumn< T >::name, and trackingPlots::other.

25  {
26  if (!compatible(other))
27  throw cms::Exception("LogicError",
28  "Trying to merge " + name + " with " + other.name + " failed compatibility test.\n");
29  value += other.value;
30  }
Definition: value.py:1
bool compatible(const SingleColumn< T > &other)

Member Data Documentation

◆ doc

template<typename T>
std::string nanoaod::MergeableCounterTable::SingleColumn< T >::doc

◆ name

template<typename T>
std::string nanoaod::MergeableCounterTable::SingleColumn< T >::name

Definition at line 23 of file MergeableCounterTable.h.

Referenced by ElectronMVAID.ElectronMVAID::__call__(), FWLite.ElectronMVAID::__call__(), dirstructure.Directory::__create_pie_image(), DisplayManager.DisplayManager::__del__(), dqm_interfaces.DirID::__eq__(), dirstructure.Directory::__get_full_path(), dirstructure.Comparison::__get_img_name(), dataset.Dataset::__getDataType(), dataset.Dataset::__getFileInfoList(), dirstructure.Comparison::__make_image(), core.autovars.NTupleVariable::__repr__(), core.autovars.NTupleObjectType::__repr__(), core.autovars.NTupleObject::__repr__(), core.autovars.NTupleCollection::__repr__(), dirstructure.Directory::__repr__(), dqm_interfaces.DirID::__repr__(), dirstructure.Comparison::__repr__(), config.Service::__setattr__(), config.CFG::__str__(), counter.Counter::__str__(), average.Average::__str__(), FWLite.WorkingPoints::_reformat_cut_definitions(), core.autovars.NTupleObjectType::addSubObjects(), core.autovars.NTupleObjectType::addVariables(), core.autovars.NTupleObjectType::allVars(), dataset.CMSDataset::buildListOfFiles(), dataset.LocalDataset::buildListOfFiles(), dataset.CMSDataset::buildListOfFilesDBS(), dirstructure.Directory::calcStats(), nanoaod::MergeableCounterTable::SingleColumn< T >::compatible(), validation.Sample::digest(), python.rootplot.utilities.Hist::divide(), python.rootplot.utilities.Hist::divide_wilson(), DisplayManager.DisplayManager::Draw(), TreeCrawler.Package::dump(), core.autovars.NTupleVariable::fillBranch(), core.autovars.NTupleObject::fillBranches(), core.autovars.NTupleCollection::fillBranchesScalar(), core.autovars.NTupleCollection::fillBranchesVector(), core.autovars.NTupleCollection::get_cpp_declaration(), core.autovars.NTupleCollection::get_cpp_wrapper_class(), core.autovars.NTupleCollection::get_py_wrapper_class(), utils.StatisticalTest::get_status(), production_tasks.Task::getname(), dataset.CMSDataset::getPrimaryDatasetEntries(), dataset.PrivateDataset::getPrimaryDatasetEntries(), VIDSelectorBase.VIDSelectorBase::initialize(), personalPlayback.Applet::log(), core.autovars.NTupleVariable::makeBranch(), core.autovars.NTupleObject::makeBranches(), core.autovars.NTupleCollection::makeBranchesScalar(), core.autovars.NTupleCollection::makeBranchesVector(), nanoaod::MergeableCounterTable::SingleColumn< T >::operator+=(), nanoaod::MergeableCounterTable::SingleWithNormColumn< T >::operator+=(), dirstructure.Directory::print_report(), dataset.BaseDataset::printInfo(), dataset.Dataset::printInfo(), production_tasks.MonitorJobs::run(), python.rootplot.utilities.Hist::TGraph(), python.rootplot.utilities.Hist::TH1F(), counter.Counter::write(), and average.Average::write().

◆ value

template<typename T>
T nanoaod::MergeableCounterTable::SingleColumn< T >::value