Project
Loading...
Searching...
No Matches
o2::tpc::CalDet< T > Class Template Reference

#include <CalDet.h>

Public Member Functions

 CalDet ()
 
 CalDet (CalDet const &)=default
 
CalDetoperator= (CalDet const &)=default
 
 ~CalDet ()=default
 
 CalDet (PadSubset padSusbset)
 
 CalDet (const std::string_view name, const PadSubset padSusbset=PadSubset::ROC)
 
PadSubset getPadSubset () const
 
const std::vector< CalType > & getData () const
 
std::vector< CalType > & getData ()
 
const CalTypegetCalArray (size_t position) const
 
CalTypegetCalArray (size_t position)
 
const T getValue (const int sec, const int globalPadInSector) const
 
void setValue (const int sec, const int globalPadInSector, const T &value)
 
void setValue (const int sec, const int rowInSector, const int padInRow, const T &value)
 
const T getValue (const ROC roc, const size_t row, const size_t pad) const
 
const T getValue (const CRU cru, const size_t row, const size_t pad) const
 
const T getValue (const Sector sec, const int rowInSector, const int padInRow) const
 
void setName (const std::string_view name, bool nameCalArrays=true)
 
const std::string & getName () const
 
const CalDetmultiply (const T &val)
 
const CalDetoperator+= (const CalDet &other)
 
const CalDetoperator-= (const CalDet &other)
 
const CalDetoperator*= (const CalDet &other)
 
const CalDetoperator/= (const CalDet &other)
 
bool operator== (const CalDet &other) const
 
const CalDetoperator+= (const T &val)
 
const CalDetoperator-= (const T &val)
 
const CalDetoperator*= (const T &val)
 
const CalDetoperator/= (const T &val)
 
const CalDetoperator= (const T &val)
 
template<typename U = T>
getMean () const
 
template<typename U = T>
getSum () const
 

Friends

template<class U >
CalDet< U > operator+ (const CalDet< U > &, const CalDet< U > &)
 
template<class U >
CalDet< U > operator- (const CalDet< U > &, const CalDet< U > &)
 

Detailed Description

template<class T>
class o2::tpc::CalDet< T >

Class to hold calibration data on a pad level

Definition at line 40 of file CalDet.h.

Constructor & Destructor Documentation

◆ CalDet() [1/4]

template<class T >
o2::tpc::CalDet< T >::CalDet ( )
inline

Definition at line 45 of file CalDet.h.

◆ CalDet() [2/4]

template<class T >
o2::tpc::CalDet< T >::CalDet ( CalDet< T > const &  )
default

◆ ~CalDet()

template<class T >
o2::tpc::CalDet< T >::~CalDet ( )
default

◆ CalDet() [3/4]

template<class T >
o2::tpc::CalDet< T >::CalDet ( PadSubset  padSusbset)
inline

Definition at line 50 of file CalDet.h.

◆ CalDet() [4/4]

template<class T >
o2::tpc::CalDet< T >::CalDet ( const std::string_view  name,
const PadSubset  padSusbset = PadSubset::ROC 
)
inline

Definition at line 52 of file CalDet.h.

Member Function Documentation

◆ getCalArray() [1/2]

template<class T >
CalType & o2::tpc::CalDet< T >::getCalArray ( size_t  position)
inline

Definition at line 64 of file CalDet.h.

◆ getCalArray() [2/2]

template<class T >
const CalType & o2::tpc::CalDet< T >::getCalArray ( size_t  position) const
inline

Definition at line 63 of file CalDet.h.

◆ getData() [1/2]

template<class T >
std::vector< CalType > & o2::tpc::CalDet< T >::getData ( )
inline

Definition at line 59 of file CalDet.h.

◆ getData() [2/2]

template<class T >
const std::vector< CalType > & o2::tpc::CalDet< T >::getData ( ) const
inline

Definition at line 58 of file CalDet.h.

◆ getMean()

template<class T >
template<typename U = T>
U o2::tpc::CalDet< T >::getMean ( ) const
inline

Definition at line 108 of file CalDet.h.

◆ getName()

template<class T >
const std::string & o2::tpc::CalDet< T >::getName ( ) const
inline

Definition at line 85 of file CalDet.h.

◆ getPadSubset()

template<class T >
PadSubset o2::tpc::CalDet< T >::getPadSubset ( ) const
inline

Return the pad subset type

Returns
pad subset type

Definition at line 56 of file CalDet.h.

◆ getSum()

template<class T >
template<typename U = T>
U o2::tpc::CalDet< T >::getSum ( ) const
inline

Definition at line 126 of file CalDet.h.

◆ getValue() [1/4]

template<class T >
const T o2::tpc::CalDet< T >::getValue ( const CRU  cru,
const size_t  row,
const size_t  pad 
) const
inline

Definition at line 223 of file CalDet.h.

◆ getValue() [2/4]

template<class T >
const T o2::tpc::CalDet< T >::getValue ( const int  sec,
const int  globalPadInSector 
) const
inline

Definition at line 154 of file CalDet.h.

◆ getValue() [3/4]

template<class T >
const T o2::tpc::CalDet< T >::getValue ( const ROC  roc,
const size_t  row,
const size_t  pad 
) const
inline
Todo:
return value of T& not possible if a default value should be returned, e.g. T{}: warning: returning reference to temporary

Definition at line 191 of file CalDet.h.

◆ getValue() [4/4]

template<class T >
const T o2::tpc::CalDet< T >::getValue ( const Sector  sec,
const int  rowInSector,
const int  padInRow 
) const
inline

Definition at line 285 of file CalDet.h.

◆ multiply()

template<class T >
const CalDet & o2::tpc::CalDet< T >::multiply ( const T &  val)
inline

Definition at line 87 of file CalDet.h.

◆ operator*=() [1/2]

template<class T >
const CalDet< T > & o2::tpc::CalDet< T >::operator*= ( const CalDet< T > &  other)
inline

Definition at line 336 of file CalDet.h.

◆ operator*=() [2/2]

template<class T >
const CalDet< T > & o2::tpc::CalDet< T >::operator*= ( const T &  val)
inline

Definition at line 390 of file CalDet.h.

◆ operator+=() [1/2]

template<class T >
const CalDet< T > & o2::tpc::CalDet< T >::operator+= ( const CalDet< T > &  other)
inline

Definition at line 302 of file CalDet.h.

◆ operator+=() [2/2]

template<class T >
const CalDet< T > & o2::tpc::CalDet< T >::operator+= ( const T &  val)
inline

Definition at line 370 of file CalDet.h.

◆ operator-=() [1/2]

template<class T >
const CalDet< T > & o2::tpc::CalDet< T >::operator-= ( const CalDet< T > &  other)
inline

Definition at line 319 of file CalDet.h.

◆ operator-=() [2/2]

template<class T >
const CalDet< T > & o2::tpc::CalDet< T >::operator-= ( const T &  val)
inline

Definition at line 380 of file CalDet.h.

◆ operator/=() [1/2]

template<class T >
const CalDet< T > & o2::tpc::CalDet< T >::operator/= ( const CalDet< T > &  other)
inline

Definition at line 353 of file CalDet.h.

◆ operator/=() [2/2]

template<class T >
const CalDet< T > & o2::tpc::CalDet< T >::operator/= ( const T &  val)
inline

Definition at line 400 of file CalDet.h.

◆ operator=() [1/2]

template<class T >
CalDet & o2::tpc::CalDet< T >::operator= ( CalDet< T > const &  )
default

◆ operator=() [2/2]

template<class T >
const CalDet< T > & o2::tpc::CalDet< T >::operator= ( const T &  val)
inline

Definition at line 410 of file CalDet.h.

◆ operator==()

template<class T >
bool o2::tpc::CalDet< T >::operator== ( const CalDet< T > &  other) const
inline

Definition at line 420 of file CalDet.h.

◆ setName()

template<class T >
void o2::tpc::CalDet< T >::setName ( const std::string_view  name,
bool  nameCalArrays = true 
)
inline

Definition at line 78 of file CalDet.h.

◆ setValue() [1/2]

template<class T >
void o2::tpc::CalDet< T >::setValue ( const int  sec,
const int  globalPadInSector,
const T &  value 
)
inline

Definition at line 257 of file CalDet.h.

◆ setValue() [2/2]

template<class T >
void o2::tpc::CalDet< T >::setValue ( const int  sec,
const int  rowInSector,
const int  padInRow,
const T &  value 
)
inline

Definition at line 271 of file CalDet.h.

Friends And Related Symbol Documentation

◆ operator+

template<class T >
template<class U >
CalDet< U > operator+ ( const CalDet< U > &  ,
const CalDet< U > &   
)
friend

◆ operator-

template<class T >
template<class U >
CalDet< U > operator- ( const CalDet< U > &  ,
const CalDet< U > &   
)
friend

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