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>

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 17 of file MergeableCounterTable.h.

Member Typedef Documentation

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

Definition at line 18 of file MergeableCounterTable.h.

Constructor & Destructor Documentation

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

Definition at line 19 of file MergeableCounterTable.h.

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

Member Function Documentation

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

Definition at line 29 of file MergeableCounterTable.h.

References nanoaod::MergeableCounterTable::SingleColumn< T >::name.

Referenced by nanoaod::MergeableCounterTable::tryMerge().

29  {
30  return name == other.name; // we don't check the doc, not needed
31  }
template<typename T>
void nanoaod::MergeableCounterTable::SingleColumn< T >::operator+= ( const SingleColumn< T > &  other)
inline

Definition at line 23 of file MergeableCounterTable.h.

References nanoaod::MergeableCounterTable::SingleColumn< T >::value.

23  {
26  //if (name != other.name) throw cms::Exception("LogicError", "Trying to merge "+name+" with "+other.name+"\n");
27  value += other.value;
28  }
Definition: value.py:1

Member Data Documentation

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

Definition at line 21 of file MergeableCounterTable.h.

Referenced by ElectronMVAID.ElectronMVAID::__call__(), FWLite.ElectronMVAID::__call__(), dirstructure.Directory::__create_pie_image(), DisplayManager.DisplayManager::__del__(), dqm_interfaces.DirID::__eq__(), BeautifulSoup.Tag::__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__(), BeautifulSoup.Tag::__str__(), BeautifulSoup.SoupStrainer::__str__(), FWLite.WorkingPoints::_reformat_cut_definitions(), core.autovars.NTupleObjectType::addSubObjects(), core.autovars.NTupleObjectType::addVariables(), core.autovars.NTupleObjectType::allVars(), 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(), dirstructure.Directory::print_report(), dataset.BaseDataset::printInfo(), dataset.Dataset::printInfo(), production_tasks.MonitorJobs::run(), BeautifulSoup.SoupStrainer::searchTag(), python.rootplot.utilities.Hist::TGraph(), python.rootplot.utilities.Hist::TH1F(), Vispa.Views.PropertyView.Property::valueChanged(), counter.Counter::write(), and average.Average::write().

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