AnalysisTree
|
A class to store any number of integers, floats and bools. More...
#include <Container.hpp>
Public Member Functions | |
Container (size_t id) | |
Container (size_t id, const BranchConfig &branch) | |
Container (const Container &container)=default | |
Container (Container &&container)=default | |
Container & | operator= (Container &&)=default |
Container & | operator= (const Container &part)=default |
template<class T > | |
std::vector< T > & | Vector () |
template<class T > | |
const std::vector< T > & | GetVector () const |
template<typename T > | |
void | SetField (T value, Integer_t field_id) |
template<typename T > | |
ANALYSISTREE_ATTR_NODISCARD T | GetField (Integer_t field_id) const |
template<typename T > | |
ANALYSISTREE_ATTR_NODISCARD size_t | GetSize () const |
void | Init (const BranchConfig &branch) |
virtual void | Print () const noexcept |
template<> | |
std::vector< int > & | Vector () |
template<> | |
std::vector< float > & | Vector () |
template<> | |
std::vector< bool > & | Vector () |
template<> | |
const std::vector< int > & | GetVector () const |
template<> | |
const std::vector< float > & | GetVector () const |
template<> | |
const std::vector< bool > & | GetVector () const |
Public Member Functions inherited from AnalysisTree::IndexedObject | |
IndexedObject (size_t id) | |
IndexedObject (const IndexedObject &indexedObject)=default | |
IndexedObject (IndexedObject &&indexedObject)=default | |
IndexedObject & | operator= (IndexedObject &&)=default |
IndexedObject & | operator= (const IndexedObject &indexedObject)=default |
ANALYSISTREE_ATTR_NODISCARD size_t | GetId () const |
Protected Member Functions | |
ClassDefOverride (Container, 2) | |
Protected Attributes | |
std::vector< float > | floats_ {} |
std::vector< int > | ints_ {} |
std::vector< bool > | bools_ {} |
A class to store any number of integers, floats and bools.
Consists of IndexedObject and separate std::vector<T>, for T={float, int, bool}. Intended to be used as a base class for all AnalysysTree objects.
|
virtualnoexcept |
Reimplemented in AnalysisTree::Track.