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 27 of file Flag.h.

Constructor & Destructor Documentation

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

Definition at line 29 of file Flag.h.

Referenced by operator+().

29  :
30  _name("SOMEFLAG"), _state(fNA)
31  {}
std::string _name
Definition: Flag.h:78
State _state
Definition: Flag.h:79
hcaldqm::flag::Flag::Flag ( std::string const &  name,
State  s = fNA 
)
inline

Definition at line 32 of file Flag.h.

32  :
33  _name(name), _state(s)
34  {}
std::string _name
Definition: Flag.h:78
State _state
Definition: Flag.h:79
hcaldqm::flag::Flag::Flag ( Flag const &  f)
inline

Definition at line 35 of file Flag.h.

35  :
36  _name(f._name), _state(f._state)
37  {}
std::string _name
Definition: Flag.h:78
State _state
Definition: Flag.h:79
double f[11][100]

Member Function Documentation

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

Definition at line 42 of file Flag.h.

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

43  {
44  return Flag(_name!=f._name?"SOMEFLAG":_name,
45  (State)(std::max(_state, f._state)));
46  }
std::string _name
Definition: Flag.h:78
State _state
Definition: Flag.h:79
double f[11][100]
Flag& hcaldqm::flag::Flag::operator+= ( Flag const &  f)
inline

Definition at line 51 of file Flag.h.

References _state, and SiStripPI::max.

52  {
53  _state = (State)(std::max(_state, f._state));
54  return *this;
55  }
State _state
Definition: Flag.h:79
double f[11][100]
Flag& hcaldqm::flag::Flag::operator= ( Flag const &  f)
inline

Definition at line 68 of file Flag.h.

References _name, and _state.

69  {
70  _name = f._name;
71  _state = f._state;
72  return *this;
73  }
std::string _name
Definition: Flag.h:78
State _state
Definition: Flag.h:79
double f[11][100]
bool hcaldqm::flag::Flag::operator== ( Flag const &  f)
inline

Definition at line 60 of file Flag.h.

References _name, and _state.

61  {
62  return (_state==f._state && _name==f._name);
63  }
std::string _name
Definition: Flag.h:78
State _state
Definition: Flag.h:79
double f[11][100]
void hcaldqm::flag::Flag::reset ( void  )
inline

Member Data Documentation

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

Definition at line 78 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(), Vispa.Views.PropertyView.Property::name(), validation.SimpleSample::name(), trackingPlots.Iteration::name(), operator+(), operator=(), operator==(), plotting.PlotterItem::readDirs(), plotting.PlotGroup::remove(), SequenceTypes.SequencePlaceholder::resolve(), and SequenceTypes.TaskPlaceholder::resolve().

State hcaldqm::flag::Flag::_state