AnalysisTree
Loading...
Searching...
No Matches
AnalysisTree::Container Class Reference

A class to store any number of integers, floats and bools. More...

#include <Container.hpp>

Inheritance diagram for AnalysisTree::Container:
Inheritance graph
Collaboration diagram for AnalysisTree::Container:
Collaboration graph

Public Member Functions

 Container (size_t id)
 
 Container (size_t id, const BranchConfig &branch)
 
 Container (const Container &container)=default
 
 Container (Container &&container)=default
 
Containeroperator= (Container &&)=default
 
Containeroperator= (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
 
IndexedObjectoperator= (IndexedObject &&)=default
 
IndexedObjectoperator= (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_ {}
 

Detailed Description

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.

Member Function Documentation

◆ Print()

void AnalysisTree::Container::Print ( ) const
virtualnoexcept

Reimplemented in AnalysisTree::Track.


The documentation for this class was generated from the following files: