CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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
hcaldqm::flag::Flag::Flag ( std::string const &  name,
State  s = fNA 
)
inline

Definition at line 26 of file Flag.h.

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

Member Function Documentation

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

Definition at line 32 of file Flag.h.

References _name, _state, 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
Flag& hcaldqm::flag::Flag::operator+= ( Flag const &  f)
inline

Definition at line 39 of file Flag.h.

References _state, and SiStripPI::max.

39  {
40  _state = (State)(std::max(_state, f._state));
41  return *this;
42  }
State _state
Definition: Flag.h:62
Flag& hcaldqm::flag::Flag::operator= ( Flag const &  f)
inline

Definition at line 52 of file Flag.h.

References _name, and _state.

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
bool hcaldqm::flag::Flag::operator== ( Flag const &  f)
inline

Definition at line 47 of file Flag.h.

References _name, and _state.

47 { return (_state == f._state && _name == f._name); }
std::string _name
Definition: Flag.h:61
State _state
Definition: Flag.h:62
void hcaldqm::flag::Flag::reset ( void  )
inline

Member Data Documentation

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.TaskPlaceholder::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.TaskPlaceholder::dumpPython(), SequenceTypes.SequencePlaceholder::dumpSequenceConfig(), SequenceTypes.SequencePlaceholder::dumpSequencePython(), SequenceTypes.TaskPlaceholder::dumpSequencePython(), plotting.Plot::getName(), plotting.PlotGroup::getName(), plotting.PlotterFolder::getName(), plotting.PlotterItem::getName(), plotting.PlotterFolder::getSelectionNameIterator(), SequenceTypes.SequencePlaceholder::insertInto(), SequenceTypes.TaskPlaceholder::insertInto(), validation.SimpleSample::name(), trackingPlots.Iteration::name(), operator+(), operator=(), operator==(), plotting.PlotterItem::readDirs(), plotting.PlotGroup::remove(), SequenceTypes.SequencePlaceholder::resolve(), SequenceTypes.TaskPlaceholder::resolve(), and plotting.Plot::setName().

State hcaldqm::flag::Flag::_state