AnalysisTree
Loading...
Searching...
No Matches
AnalysisTree::Detector< T > Class Template Reference

#include <Detector.hpp>

Inheritance diagram for AnalysisTree::Detector< T >:
Inheritance graph
Collaboration diagram for AnalysisTree::Detector< T >:
Collaboration graph

Public Member Functions

 Detector (size_t id)
 
 Detector (const Detector &otherDetector)=default
 
 Detector (Detector &&otherDetector) noexcept=default
 
Detectoroperator= (Detector &&) noexcept=default
 
Detectoroperator= (const Detector &part)=default
 
ANALYSISTREE_ATTR_NODISCARD size_t GetNumberOfChannels () const noexcept
 
T * AddChannel ()
 
T & AddChannel (const BranchConfig &branch)
 
void ClearChannels ()
 
T & Channel (size_t number)
 
const T & GetChannel (size_t number) const
 
const std::vector< T > * GetChannels () const
 
std::vector< T > * Channels ()
 
void Reserve (size_t n)
 
void Print () const
 
auto begin () -> typename std::vector< T >::iterator
 
auto end () -> typename std::vector< T >::iterator
 
auto cbegin () const -> typename std::vector< T >::const_iterator
 
auto cend () const -> typename std::vector< T >::const_iterator
 
auto begin () const -> typename std::vector< T >::const_iterator
 
auto end () const -> typename std::vector< T >::const_iterator
 
- 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 Attributes

std::vector< T > channels_ {}
 

Friends

bool operator== (const Detector &that, const Detector &other)
 

Additional Inherited Members

- Static Protected Member Functions inherited from AnalysisTree::IndexAccessor
static void InitIndexedObject (IndexedObject *indexedObject, size_t newID)
 

Detailed Description

template<class T>
class AnalysisTree::Detector< T >

A base class for any kind of channel detector. As an IndexAccessor has an access to index variable if the Channel

Template Parameters
Ta type of channel

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