CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
hcaldqm::flag::Flag Struct Reference

#include <Flag.h>

Public Member Functions

 Flag ()
 
 Flag (std::string const &name, State s=fNA)
 
 Flag (Flag const &f)
 
Flag operator+ (Flag const &f)
 
Flagoperator+= (Flag const &f)
 
Flagoperator= (Flag const &f)
 
bool operator== (Flag const &f)
 
void reset ()
 

Public Attributes

std::string _name
 
State _state
 

Detailed Description

Definition at line 24 of file Flag.h.

Constructor & Destructor Documentation

◆ Flag() [1/3]

hcaldqm::flag::Flag::Flag ( )
inline

Definition at line 25 of file Flag.h.

Referenced by operator+().

25 : _name("SOMEFLAG"), _state(fNA) {}
std::string _name
Definition: Flag.h:61
State _state
Definition: Flag.h:62

◆ Flag() [2/3]

hcaldqm::flag::Flag::Flag ( std::string const &  name,
State  s = fNA 
)
inline

Definition at line 26 of file Flag.h.

◆ Flag() [3/3]

hcaldqm::flag::Flag::Flag ( Flag const &  f)
inline

Definition at line 27 of file Flag.h.

27 : _name(f._name), _state(f._state) {}
std::string _name
Definition: Flag.h:61
State _state
Definition: Flag.h:62
double f[11][100]

Member Function Documentation

◆ operator+()

Flag hcaldqm::flag::Flag::operator+ ( Flag const &  f)
inline

Definition at line 32 of file Flag.h.

References _name, _state, f, Flag(), and SiStripPI::max.

32  {
33  return Flag(_name != f._name ? "SOMEFLAG" : _name, (State)(std::max(_state, f._state)));
34  }
std::string _name
Definition: Flag.h:61
State _state
Definition: Flag.h:62
double f[11][100]

◆ operator+=()

Flag& hcaldqm::flag::Flag::operator+= ( Flag const &  f)
inline

Definition at line 39 of file Flag.h.

References _state, f, and SiStripPI::max.

39  {
40  _state = (State)(std::max(_state, f._state));
41  return *this;
42  }
State _state
Definition: Flag.h:62
double f[11][100]

◆ operator=()

Flag& hcaldqm::flag::Flag::operator= ( Flag const &  f)
inline

Definition at line 52 of file Flag.h.

References _name, _state, and f.

52  {
53  _name = f._name;
54  _state = f._state;
55  return *this;
56  }
std::string _name
Definition: Flag.h:61
State _state
Definition: Flag.h:62
double f[11][100]

◆ operator==()

bool hcaldqm::flag::Flag::operator== ( Flag const &  f)
inline

Definition at line 47 of file Flag.h.

References _name, _state, and f.

47 { return (_state == f._state && _name == f._name); }
std::string _name
Definition: Flag.h:61
State _state
Definition: Flag.h:62
double f[11][100]

◆ reset()

void hcaldqm::flag::Flag::reset ( void  )
inline

Member Data Documentation

◆ _name

std::string hcaldqm::flag::Flag::_name

Definition at line 61 of file Flag.h.

Referenced by plotting.Subtract::__str__(), plotting.Transform::__str__(), plotting.FakeDuplicate::__str__(), plotting.CutEfficiency::__str__(), plotting.AggregateBins::__str__(), plotting.AggregateHistos::__str__(), plotting.ROC::__str__(), trackingPlots.TimePerEventPlot::__str__(), trackingPlots.TimePerTrackPlot::__str__(), SequenceTypes.SequencePlaceholder::_clonesequence(), trackingPlots.TimePerEventPlot::_create(), plotting.PlotGroup::_drawSeparate(), plotting.PlotGroup::_save(), SequenceTypes.SequencePlaceholder::copy(), SequenceTypes._TaskBasePlaceholder::copy(), plotting.Subtract::create(), plotting.Transform::create(), plotting.FakeDuplicate::create(), plotting.CutEfficiency::create(), plotting.AggregateBins::create(), plotting.AggregateHistos::create(), trackingPlots.TimePerTrackPlot::create(), plotting.Plot::create(), plotting.PlotGroup::draw(), SequenceTypes.SequencePlaceholder::dumpPython(), SequenceTypes._TaskBasePlaceholder::dumpPython(), SequenceTypes.SequencePlaceholder::dumpSequenceConfig(), SequenceTypes.SequencePlaceholder::dumpSequencePython(), SequenceTypes._TaskBasePlaceholder::dumpSequencePython(), plotting.Plot::getName(), plotting.PlotGroup::getName(), plotting.PlotterFolder::getName(), plotting.PlotterItem::getName(), plotting.PlotterFolder::getSelectionNameIterator(), SequenceTypes.SequencePlaceholder::insertInto(), SequenceTypes._TaskBasePlaceholder::insertInto(), validation.SimpleSample::name(), trackingPlots.Iteration::name(), operator+(), operator=(), operator==(), plotting.PlotterItem::readDirs(), plotting.PlotGroup::remove(), SequenceTypes.SequencePlaceholder::resolve(), SequenceTypes._TaskBasePlaceholder::resolve(), and plotting.Plot::setName().

◆ _state

State hcaldqm::flag::Flag::_state