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 28 of file CounterChecker.h.
typedef std::map<word, std::vector<TotemFramePosition> > CounterChecker::CounterMap |
Definition at line 33 of file CounterChecker.h.
typedef unsigned short CounterChecker::word |
Definition at line 31 of file CounterChecker.h.
Enumerator | |
---|---|
BCChecker | |
ECChecker |
Definition at line 35 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 43 of file CounterChecker.h.
References Analyze(), relativeConstraints::error, Fill(), and mps_update::status.
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 88 of file CounterChecker.h.
References BCChecker, ECChecker, fraction, min, name, relationMap, and verbosity.
Referenced by CounterChecker(), and 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 18 of file CounterChecker.cc.
References counter, and list().
Referenced by CounterChecker(), and 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 79 of file CounterChecker.h.
Referenced by Analyze().
|
private |
minimal required number of frames to search for the most frequent one
Definition at line 75 of file CounterChecker.h.
Referenced by Analyze().
|
private |
the name of this check, used in error messages
Definition at line 72 of file CounterChecker.h.
Referenced by ElectronMVAID.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__(), core.autovars.NTupleObjectType::addSubObjects(), core.autovars.NTupleObjectType::addVariables(), core.autovars.NTupleObjectType::allVars(), Analyze(), 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(), Vispa.Views.PropertyView.Property::valueChanged(), counter.Counter::write(), and average.Average::write().
|
private |
counter value -> list of frames with this value
Definition at line 66 of file CounterChecker.h.
Referenced by Analyze().
|
private |
EC or BC counter checker.
Definition at line 69 of file CounterChecker.h.
Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputCommands(), core.autovars.NTupleVariable::makeBranch(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
private |