#include <PhysicsTools/MVAComputer/interface/Variable.h>
Public Types | |
enum | Flags { FLAG_NONE = 0, FLAG_OPTIONAL = 1 << 0, FLAG_MULTIPLE = 1 << 1, FLAG_ALL = (1 << 2) - 1 } |
Public Member Functions | |
Flags | getFlags () const |
const AtomicId | getName () const |
bool | isMultiple () const |
bool | isOptional () const |
Variable (AtomicId name, Flags flags=FLAG_NONE) | |
Variable (const Variable &orig) | |
Variable () | |
Private Attributes | |
Flags | flags |
AtomicId | name |
Classes | |
class | Value |
Helper class that can contain an identifier-value pair. More... | |
class | ValueList |
Helper class that can contain an list of identifier-value pairs. More... |
The class Variable describes an input variable by its name and properties. The name is represented by an atomic identifier (an alphanumerical value). The properties consists of flags. Currently the two flags describe the allowed number of times a variable can appear in the input, whether a variable is allowed to be omitted and whether a variable can have multiple values.
Definition at line 34 of file Variable.h.
Definition at line 36 of file Variable.h.
00036 { 00037 FLAG_NONE = 0, 00038 FLAG_OPTIONAL = 1 << 0, 00039 FLAG_MULTIPLE = 1 << 1, 00040 FLAG_ALL = (1 << 2) - 1 00041 };
PhysicsTools::Variable::Variable | ( | ) | [inline] |
PhysicsTools::Variable::Variable | ( | const Variable & | orig | ) | [inline] |
Flags PhysicsTools::Variable::getFlags | ( | ) | const [inline] |
Definition at line 145 of file Variable.h.
References flags.
Referenced by PhysicsTools::MVATrainer::connectProcessors().
00145 { return flags;}
Definition at line 144 of file Variable.h.
References name.
Referenced by PhysicsTools::SourceVariableSet::append(), PhysicsTools::MVATrainer::connectProcessors(), PhysicsTools::TrainProcessor::doTrainBegin(), PhysicsTools::MVAComputer::InputVar::operator<(), and PhysicsTools::SourceVariableSet::PosVar::VarNameLess().
00144 { return name; }
bool PhysicsTools::Variable::isMultiple | ( | ) | const [inline] |
Definition at line 148 of file Variable.h.
References FLAG_MULTIPLE, and flags.
00148 { return flags & FLAG_MULTIPLE; }
bool PhysicsTools::Variable::isOptional | ( | ) | const [inline] |
Definition at line 147 of file Variable.h.
References FLAG_OPTIONAL, and flags.
00147 { return flags & FLAG_OPTIONAL; }
Flags PhysicsTools::Variable::flags [private] |
Definition at line 152 of file Variable.h.
Referenced by getFlags(), isMultiple(), and isOptional().
AtomicId PhysicsTools::Variable::name [private] |