CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
SummaryOutputProducer::GenericSummary Struct Reference
Inheritance diagram for SummaryOutputProducer::GenericSummary:
SummaryOutputProducer::TriggerSummary

Public Member Functions

int addEntry (const JsonOutputProducer::JsonEvent &_event, const int _triggerIndex)
 
Pair changed () const
 
Pair gained () const
 
 GenericSummary (int _id, const JsonOutputProducer &_json, const std::vector< std::string > &_names)
 
bool keepForC () const
 
bool keepForGL () const
 
Pair lost () const
 

Public Attributes

int id
 
const JsonOutputProducerjson
 
std::string name
 
std::set< Eventv_changed
 
std::set< Eventv_gained
 
std::set< Eventv_lost
 

Detailed Description

Definition at line 817 of file hltDiff.cc.

Constructor & Destructor Documentation

◆ GenericSummary()

SummaryOutputProducer::GenericSummary::GenericSummary ( int  _id,
const JsonOutputProducer _json,
const std::vector< std::string > &  _names 
)
inline

Definition at line 825 of file hltDiff.cc.

826  : json(_json), id(_id) {
827  name = _names.at(id);
828  }

References Skims_PA_cff::name.

Member Function Documentation

◆ addEntry()

int SummaryOutputProducer::GenericSummary::addEntry ( const JsonOutputProducer::JsonEvent _event,
const int  _triggerIndex 
)
inline

Definition at line 830 of file hltDiff.cc.

830  {
831  const JsonOutputProducer::JsonTriggerEventState& state = _event.triggerStates.at(_triggerIndex);
832  const Event event = Event(_event.run, _event.lumi, _event.event);
833  int moduleId = state.o.l;
834  if (state.o.s == State::Pass && state.n.s == State::Fail) {
835  moduleId = state.n.l;
836  v_lost.insert(event);
837  } else if (state.o.s == State::Fail && state.n.s == State::Pass) {
838  v_gained.insert(event);
839  } else if (state.o.s == State::Fail && state.n.s == State::Fail) {
840  v_changed.insert(event);
841  }
842 
843  return moduleId;
844  }

References JsonOutputProducer::JsonEvent::event, Fail, JsonOutputProducer::JsonEventState::l, JsonOutputProducer::JsonEvent::lumi, JsonOutputProducer::JsonTriggerEventState::n, JsonOutputProducer::JsonTriggerEventState::o, Pass, JsonOutputProducer::JsonEvent::run, JsonOutputProducer::JsonEventState::s, and JsonOutputProducer::JsonEvent::triggerStates.

◆ changed()

Pair SummaryOutputProducer::GenericSummary::changed ( ) const
inline

Definition at line 850 of file hltDiff.cc.

850 { return Pair(double(v_changed.size()), sqrt(double(v_changed.size()))); }

References mathSSE::sqrt().

◆ gained()

Pair SummaryOutputProducer::GenericSummary::gained ( ) const
inline

Definition at line 846 of file hltDiff.cc.

846 { return Pair(double(v_gained.size()), sqrt(double(v_gained.size()))); }

References mathSSE::sqrt().

◆ keepForC()

bool SummaryOutputProducer::GenericSummary::keepForC ( ) const
inline

Definition at line 852 of file hltDiff.cc.

852 { return !v_changed.empty(); }

◆ keepForGL()

bool SummaryOutputProducer::GenericSummary::keepForGL ( ) const
inline

Definition at line 854 of file hltDiff.cc.

854 { return !v_gained.empty() || !v_lost.empty(); }

◆ lost()

Pair SummaryOutputProducer::GenericSummary::lost ( ) const
inline

Definition at line 848 of file hltDiff.cc.

848 { return Pair(double(v_lost.size()), sqrt(double(v_lost.size()))); }

References mathSSE::sqrt().

Member Data Documentation

◆ id

int SummaryOutputProducer::GenericSummary::id

Definition at line 819 of file hltDiff.cc.

◆ json

const JsonOutputProducer& SummaryOutputProducer::GenericSummary::json

Definition at line 818 of file hltDiff.cc.

◆ name

std::string SummaryOutputProducer::GenericSummary::name

Definition at line 820 of file hltDiff.cc.

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(), validation.Sample::digest(), python.rootplot.utilities.Hist::divide(), python.rootplot.utilities.Hist::divide_wilson(), DisplayManager.DisplayManager::Draw(), 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().

◆ v_changed

std::set<Event> SummaryOutputProducer::GenericSummary::v_changed

Definition at line 823 of file hltDiff.cc.

◆ v_gained

std::set<Event> SummaryOutputProducer::GenericSummary::v_gained

Definition at line 821 of file hltDiff.cc.

◆ v_lost

std::set<Event> SummaryOutputProducer::GenericSummary::v_lost

Definition at line 822 of file hltDiff.cc.

SummaryOutputProducer::GenericSummary::name
std::string name
Definition: hltDiff.cc:820
JsonOutputProducer::JsonEvent::run
int run
Definition: hltDiff.cc:660
JsonOutputProducer::JsonEventState::s
State s
Definition: hltDiff.cc:618
JsonOutputProducer::JsonEvent::lumi
int lumi
Definition: hltDiff.cc:661
SummaryOutputProducer::GenericSummary::json
const JsonOutputProducer & json
Definition: hltDiff.cc:818
SummaryOutputProducer::GenericSummary::v_lost
std::set< Event > v_lost
Definition: hltDiff.cc:822
JsonOutputProducer::JsonTriggerEventState::o
JsonEventState o
Definition: hltDiff.cc:643
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
Pass
Definition: hltDiff.cc:244
Event
JsonOutputProducer::JsonEvent::triggerStates
std::vector< JsonTriggerEventState > triggerStates
Definition: hltDiff.cc:663
SummaryOutputProducer::GenericSummary::v_gained
std::set< Event > v_gained
Definition: hltDiff.cc:821
SummaryOutputProducer::GenericSummary::v_changed
std::set< Event > v_changed
Definition: hltDiff.cc:823
JsonOutputProducer::JsonTriggerEventState
Definition: hltDiff.cc:641
SummaryOutputProducer::GenericSummary::id
int id
Definition: hltDiff.cc:819
JsonOutputProducer::JsonTriggerEventState::n
JsonEventState n
Definition: hltDiff.cc:644
Fail
Definition: hltDiff.cc:245
event
Definition: event.py:1
JsonOutputProducer::JsonEventState::l
int l
Definition: hltDiff.cc:620
JsonOutputProducer::JsonEvent::event
int event
Definition: hltDiff.cc:662