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

#include <EventHeader.hpp>

Inheritance diagram for AnalysisTree::EventHeader:
Inheritance graph
Collaboration diagram for AnalysisTree::EventHeader:
Collaboration graph

Public Member Functions

 EventHeader (size_t id)
 
 EventHeader (const Container &cont)
 
 EventHeader (size_t id, const BranchConfig &branch) noexcept
 
 EventHeader (const EventHeader &eh)=default
 
 EventHeader (EventHeader &&eh)=default
 
EventHeaderoperator= (EventHeader &&eh)=default
 
EventHeaderoperator= (const EventHeader &eh)=default
 
ANALYSISTREE_ATTR_NODISCARD TVector3 GetVertexPosition3 () const
 
void SetVertexPosition3 (const TVector3 &pos)
 
template<typename T >
GetField (Integer_t iField) const
 
template<typename T >
void SetField (T value, Integer_t field_id)
 
ANALYSISTREE_ATTR_NODISCARD Floating_t GetVertexX () const
 
ANALYSISTREE_ATTR_NODISCARD Floating_t GetVertexY () const
 
ANALYSISTREE_ATTR_NODISCARD Floating_t GetVertexZ () const
 
EventHeaderbegin ()
 
EventHeaderend ()
 
const EventHeadercbegin () const
 
const EventHeadercend () const
 
ANALYSISTREE_ATTR_NODISCARD const EventHeaderGetChannel (size_t i) const
 
ANALYSISTREE_ATTR_NODISCARD EventHeaderChannel (size_t i)
 
void Print () const noexcept override
 
- Public Member Functions inherited from AnalysisTree::Container
 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)
 
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
 

Static Public Member Functions

static constexpr size_t GetNumberOfChannels ()
 
static void ClearChannels ()
 
static EventHeaderAddChannel ()
 

Protected Attributes

std::array< Floating_t, 3 > vtx_pos_ {{UndefValueFloat, UndefValueFloat, UndefValueFloat}}
 
- Protected Attributes inherited from AnalysisTree::Container
std::vector< float > floats_ {}
 
std::vector< int > ints_ {}
 
std::vector< bool > bools_ {}
 

Additional Inherited Members

- Protected Member Functions inherited from AnalysisTree::Container
 ClassDefOverride (Container, 2)
 

Detailed Description

A class for an event header

Member Function Documentation

◆ GetVertexPosition3()

TVector3 AnalysisTree::EventHeader::GetVertexPosition3 ( ) const
Returns
3D-position of the vertex

◆ Print()

void AnalysisTree::EventHeader::Print ( ) const
overridevirtualnoexcept

Reimplemented from AnalysisTree::Container.


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