GamR  0.0.0
GammaROOT
Loading...
Searching...
No Matches
GamR::Tree::TDetector< Ts > Class Template Reference

#include <Detector.hh>

+ Inheritance diagram for GamR::Tree::TDetector< Ts >:
+ Collaboration diagram for GamR::Tree::TDetector< Ts >:

Public Types

template<size_t n>
using meas_type = typename std::tuple_element<n, std::tuple<Ts...>>::type
 
using measurements_type = std::tuple<std::pair<Ts, Double_t>...>
 

Public Member Functions

 TDetector ()
 
 TDetector (TDetDefn< Ts... > &defn, ULong64_t eventNum)
 
 ~TDetector ()
 
template<int N>
auto Get () -> decltype(std::get< N >(Meas).first) &
 
template<int N>
auto GetCal () -> decltype(std::get< N >(Meas).second) &
 
auto GetAll () -> decltype(Meas) &
 
size_t GetNumMeasurements () const
 
void Reset ()
 
 ClassDef (TDetector, 1)
 

Public Attributes

measurements_type Meas
 
UShort_t ID
 
Float16_t Eff
 

Detailed Description

template<typename... Ts>
class GamR::Tree::TDetector< Ts >

Definition at line 18 of file Detector.hh.

Member Typedef Documentation

◆ meas_type

template<typename... Ts>
template<size_t n>
using GamR::Tree::TDetector< Ts >::meas_type = typename std::tuple_element<n, std::tuple<Ts...>>::type

Definition at line 21 of file Detector.hh.

◆ measurements_type

template<typename... Ts>
using GamR::Tree::TDetector< Ts >::measurements_type = std::tuple<std::pair<Ts, Double_t>...>

Definition at line 22 of file Detector.hh.

Constructor & Destructor Documentation

◆ TDetector() [1/2]

template<typename... Ts>
GamR::Tree::TDetector< Ts >::TDetector ( )
inline

Definition at line 30 of file Detector.hh.

Referenced by ClassDef().

+ Here is the caller graph for this function:

◆ TDetector() [2/2]

template<typename... Ts>
GamR::Tree::TDetector< Ts >::TDetector ( TDetDefn< Ts... > & defn,
ULong64_t eventNum )
inline

Definition at line 31 of file Detector.hh.

References Eff, GamR::Tree::TDetDefn< Ts >::GetAllDatums(), GamR::Tree::TDetDefn< Ts >::GetEfficiency(), GamR::Tree::TDetDefn< Ts >::GetID(), ID, and Meas.

+ Here is the call graph for this function:

◆ ~TDetector()

template<typename... Ts>
GamR::Tree::TDetector< Ts >::~TDetector ( )
inline

Definition at line 38 of file Detector.hh.

Member Function Documentation

◆ ClassDef()

template<typename... Ts>
GamR::Tree::TDetector< Ts >::ClassDef ( TDetector< Ts > ,
1  )

References TDetector().

+ Here is the call graph for this function:

◆ Get()

template<typename... Ts>
template<int N>
auto GamR::Tree::TDetector< Ts >::Get ( ) -> decltype(std::get<N>(Meas).first) &
inline

Definition at line 40 of file Detector.hh.

References Meas.

◆ GetAll()

template<typename... Ts>
auto GamR::Tree::TDetector< Ts >::GetAll ( ) -> decltype(Meas) &
inline

Definition at line 49 of file Detector.hh.

References Meas.

◆ GetCal()

template<typename... Ts>
template<int N>
auto GamR::Tree::TDetector< Ts >::GetCal ( ) -> decltype(std::get<N>(Meas).second) &
inline

Definition at line 45 of file Detector.hh.

References Meas.

◆ GetNumMeasurements()

template<typename... Ts>
size_t GamR::Tree::TDetector< Ts >::GetNumMeasurements ( ) const
inline

Definition at line 50 of file Detector.hh.

◆ Reset()

template<typename... Ts>
void GamR::Tree::TDetector< Ts >::Reset ( )
inline

Definition at line 51 of file Detector.hh.

References Eff, ID, and Meas.

Member Data Documentation

◆ Eff

template<typename... Ts>
Float16_t GamR::Tree::TDetector< Ts >::Eff

Definition at line 27 of file Detector.hh.

Referenced by TDetector(), and Reset().

◆ ID

template<typename... Ts>
UShort_t GamR::Tree::TDetector< Ts >::ID

Definition at line 26 of file Detector.hh.

Referenced by TDetector(), and Reset().

◆ Meas

template<typename... Ts>
measurements_type GamR::Tree::TDetector< Ts >::Meas

Definition at line 25 of file Detector.hh.

Referenced by TDetector(), Get(), GetAll(), GetCal(), and Reset().


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