ATLAS Offline Software
|
VectorValue is a helper class to access any jet variable of type vector<X> It is implemented this way, so it is cheap to copy and can be returned from a const method. More...
#include <JetVariable.h>
Classes | |
struct | VectorWrapper |
Public Member Functions | |
VectorValue (VectorWrapper *v=nullptr, float s=1.) | |
float | operator[] (int i) const |
size_t | size () const |
Public Attributes | |
std::unique_ptr< VectorWrapper > | m_v |
float | m_scale =1 |
VectorValue is a helper class to access any jet variable of type vector<X> It is implemented this way, so it is cheap to copy and can be returned from a const method.
(there's possibly a simpler implementation...)
Definition at line 37 of file JetVariable.h.
|
inline |
|
inline |
Definition at line 44 of file JetVariable.h.
|
inline |
Definition at line 45 of file JetVariable.h.
float JetVar::VectorValue::m_scale =1 |
Definition at line 47 of file JetVariable.h.
std::unique_ptr<VectorWrapper> JetVar::VectorValue::m_v |
Definition at line 46 of file JetVariable.h.