Class for finding the most popular both EC and BC counter, and filling the conversion status 'wrong EC/BC number' for frames with different value. More...
#include <CounterChecker.h>
Classes | |
class | Comparer |
Public Types | |
enum | CheckerType { BCChecker, ECChecker } |
typedef std::map< word, std::vector< TotemFramePosition > > | CounterMap |
typedef unsigned short | word |
Public Member Functions | |
template<typename T > | |
void | Analyze (T &status, bool error, std::ostream &es) |
summarizes and fill the status (wrong EC and BC progress error for some frames) More... | |
CounterChecker (CheckerType _type=CounterChecker::BCChecker, const std::string &_name="", unsigned int _min=0, double _fraction=0., unsigned int _verbosity=0) | |
void | Fill (word counter, TotemFramePosition fr) |
add new value to map, counter takes value of EC or BC number More... | |
Private Attributes | |
double | fraction |
unsigned int | min |
minimal required number of frames to search for the most frequent one More... | |
std::string | name |
the name of this check, used in error messages More... | |
CounterMap | relationMap |
counter value -> list of frames with this value More... | |
CheckerType | type |
EC or BC counter checker. More... | |
unsigned int | verbosity |
level of verbosity More... | |
Class for finding the most popular both EC and BC counter, and filling the conversion status 'wrong EC/BC number' for frames with different value.
Definition at line 26 of file CounterChecker.h.
typedef std::map<word, std::vector<TotemFramePosition> > CounterChecker::CounterMap |
Definition at line 30 of file CounterChecker.h.
typedef unsigned short CounterChecker::word |
Definition at line 28 of file CounterChecker.h.
Enumerator | |
---|---|
BCChecker | |
ECChecker |
Definition at line 32 of file CounterChecker.h.
|
inline |
t | CounterChecker::ECCounter or CounterChecker::BCCounter. On that, depends whether checker will fill wrong EC or BC rogress error. |
name | name |
min | minimal required number of frames to search for the most frequent one |
Definition at line 40 of file CounterChecker.h.
void CounterChecker::Analyze | ( | T & | status, |
bool | error, | ||
std::ostream & | es | ||
) |
summarizes and fill the status (wrong EC and BC progress error for some frames)
Definition at line 85 of file CounterChecker.h.
References BCChecker, ECChecker, relativeConstraints::error, fraction, min, name, relationMap, mps_update::status, and verbosity.
Referenced by RawToDigiConverter::runCommon().
void CounterChecker::Fill | ( | word | counter, |
TotemFramePosition | fr | ||
) |
add new value to map, counter takes value of EC or BC number
Definition at line 14 of file CounterChecker.cc.
References counter, and runTheMatrix::ret.
Referenced by RawToDigiConverter::runCommon().
|
private |
the most frequent value is accepted only provided its sub-sample size is greater than the specified fraction of the full sample
Definition at line 78 of file CounterChecker.h.
Referenced by Analyze().
|
private |
minimal required number of frames to search for the most frequent one
Definition at line 74 of file CounterChecker.h.
Referenced by Analyze().
|
private |
the name of this check, used in error messages
Definition at line 71 of file CounterChecker.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(), 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(), Analyze(), dataset.CMSDataset::buildListOfFiles(), dataset.LocalDataset::buildListOfFiles(), dataset.CMSDataset::buildListOfFilesDBS(), dirstructure.Directory::calcStats(), 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(), 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(), python.rootplot.utilities.Hist::TGraph(), python.rootplot.utilities.Hist::TH1F(), counter.Counter::write(), and average.Average::write().
|
private |
counter value -> list of frames with this value
Definition at line 65 of file CounterChecker.h.
Referenced by Analyze().
|
private |
EC or BC counter checker.
Definition at line 68 of file CounterChecker.h.
Referenced by core.autovars.NTupleVariable::makeBranch(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
private |