![]() |
ATLAS Offline Software
|
Specialization of VariableAtt for the vector<> type. More...
#include <JetVariable.h>
Classes | |
struct | VectorWrapperT |
Public Types | |
typedef std::vector< T > | vect_t |
Public Member Functions | |
VariableAtt (const std::string &name, int index) | |
virtual std::string | name () const |
virtual bool | isVector () const |
return true if the underlying variable is of type vector<X> More... | |
virtual float | value (const xAOD::Jet &j) const |
virtual VectorValue | vector (const xAOD::Jet &j) const |
return a helper object allowing to iterate over the underlying vector. !!! use only if isVector()==true !!! More... | |
float | scale () const |
void | setScale (float s) |
Static Public Member Functions | |
static std::unique_ptr< Variable > | create (const std::string &name, const std::string &type="float", int index=-1) |
create and return a new Variable of a given name & type. More... | |
Public Attributes | |
Accessor< vect_t > | m_acc |
std::string | m_name |
float | m_scale = 1 |
int | m_index = -1 |
Static Public Attributes | |
static const vect_t | s_dummy {-999} |
Specialization of VariableAtt for the vector<> type.
Definition at line 103 of file JetVariable.h.
typedef std::vector<T> JetVar::VariableAtt< std::vector< T > >::vect_t |
Definition at line 104 of file JetVariable.h.
|
inline |
|
staticinherited |
create and return a new Variable of a given name & type.
If type is a vector an index can be specified : the variable will behave as a non-vector Variable corresponding to the value at the given index
Definition at line 10 of file JetVariable.cxx.
|
inlinevirtual |
return true if the underlying variable is of type vector<X>
Reimplemented from JetVar::Variable.
Definition at line 122 of file JetVariable.h.
|
inlinevirtual |
Reimplemented from JetVar::Variable.
Definition at line 116 of file JetVariable.h.
|
inlineinherited |
Definition at line 67 of file JetVariable.h.
|
inlineinherited |
Definition at line 68 of file JetVariable.h.
|
inlinevirtual |
Implements JetVar::Variable.
Definition at line 125 of file JetVariable.h.
|
inlinevirtual |
return a helper object allowing to iterate over the underlying vector. !!! use only if isVector()==true !!!
Reimplemented from JetVar::Variable.
Definition at line 132 of file JetVariable.h.
Accessor<vect_t> JetVar::VariableAtt< std::vector< T > >::m_acc |
Definition at line 144 of file JetVariable.h.
|
inherited |
Definition at line 78 of file JetVariable.h.
|
inherited |
Definition at line 76 of file JetVariable.h.
|
inherited |
Definition at line 77 of file JetVariable.h.
|
inlinestatic |
Definition at line 146 of file JetVariable.h.