test
CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 865 of file hltDiff.cc.

Constructor & Destructor Documentation

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

Definition at line 873 of file hltDiff.cc.

References mergeVDriftHistosByStation::name.

873  :
874  json(_json),
875  id(_id) {
876  name = _names.at(id);
877  }
const JsonOutputProducer & json
Definition: hltDiff.cc:866

Member Function Documentation

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

Definition at line 879 of file hltDiff.cc.

References event(), 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.

879  {
880  const JsonOutputProducer::JsonTriggerEventState& state = _event.triggerStates.at(_triggerIndex);
881  const Event event = Event(_event.run, _event.lumi, _event.event);
882  int moduleId = state.o.l;
883  if (state.o.s == State::Pass && state.n.s == State::Fail) {
884  moduleId = state.n.l;
885  v_lost.insert(event);
886  } else
887  if (state.o.s == State::Fail && state.n.s == State::Pass) {
888  v_gained.insert(event);
889  } else
890  if (state.o.s == State::Fail && state.n.s == State::Fail) {
891  v_changed.insert(event);
892  }
893 
894  return moduleId;
895  }
Definition: hltDiff.cc:289
std::vector< JsonTriggerEventState > triggerStates
Definition: hltDiff.cc:712
Definition: Event.h:16
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
Definition: hltDiff.cc:290
Pair SummaryOutputProducer::GenericSummary::changed ( ) const
inline

Definition at line 905 of file hltDiff.cc.

References mathSSE::sqrt().

Referenced by SummaryOutputProducer::writeCSV_module(), and SummaryOutputProducer::writeHistograms().

905  {
906  return Pair( double(v_changed.size()), sqrt( double(v_changed.size()) ) );
907  }
T sqrt(T t)
Definition: SSEVec.h:18
Pair SummaryOutputProducer::GenericSummary::gained ( ) const
inline

Definition at line 897 of file hltDiff.cc.

References mathSSE::sqrt().

Referenced by SummaryOutputProducer::writeCSV_module(), and SummaryOutputProducer::writeHistograms().

897  {
898  return Pair( double(v_gained.size()), sqrt( double(v_gained.size()) ) );
899  }
T sqrt(T t)
Definition: SSEVec.h:18
bool SummaryOutputProducer::GenericSummary::keepForC ( ) const
inline

Definition at line 909 of file hltDiff.cc.

Referenced by SummaryOutputProducer::writeHistograms().

909  {
910  return v_changed.size() > 0;
911  }
bool SummaryOutputProducer::GenericSummary::keepForGL ( ) const
inline

Definition at line 913 of file hltDiff.cc.

Referenced by SummaryOutputProducer::writeHistograms().

913  {
914  return v_gained.size() > 0 || v_lost.size() > 0;
915  }
Pair SummaryOutputProducer::GenericSummary::lost ( ) const
inline

Definition at line 901 of file hltDiff.cc.

References mathSSE::sqrt().

Referenced by SummaryOutputProducer::writeCSV_module(), and SummaryOutputProducer::writeHistograms().

901  {
902  return Pair( double(v_lost.size()), sqrt( double(v_lost.size()) ) );
903  }
T sqrt(T t)
Definition: SSEVec.h:18

Member Data Documentation

int SummaryOutputProducer::GenericSummary::id

Definition at line 867 of file hltDiff.cc.

const JsonOutputProducer& SummaryOutputProducer::GenericSummary::json

Definition at line 866 of file hltDiff.cc.

std::string SummaryOutputProducer::GenericSummary::name

Definition at line 868 of file hltDiff.cc.

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(), cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), 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(), 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(), Vispa.Views.PropertyView.Property::valueChanged(), counter.Counter::write(), average.Average::write(), SummaryOutputProducer::writeCSV_module(), SummaryOutputProducer::writeCSV_trigger(), and SummaryOutputProducer::writeHistograms().

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

Definition at line 871 of file hltDiff.cc.

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

Definition at line 869 of file hltDiff.cc.

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

Definition at line 870 of file hltDiff.cc.