Public Member Functions | Private Attributes | List of all members
CRT::Hit Class Reference

#include <CRTTrigger.h>

Public Member Functions

 Hit (uint8_t channel, uint16_t adc)
 
 Hit ()
 
virtual ~Hit ()=default
 
size_t Channel () const
 
short ADC () const
 
bool IsDefault () const
 
template<class STREAM >
void dump (STREAM &stream) const
 

Private Attributes

size_t fChannel
 
short fADC
 

Detailed Description

Definition at line 23 of file CRTTrigger.h.

Constructor & Destructor Documentation

CRT::Hit::Hit ( uint8_t  channel,
uint16_t  adc 
)
inline

Definition at line 27 of file CRTTrigger.h.

27  : fChannel(channel), /*fAuxDetname(detName),*/ fADC(adc)
28  {
29  }
int16_t adc
Definition: CRTFragment.hh:202
uint8_t channel
Definition: CRTFragment.hh:201
size_t fChannel
Definition: CRTTrigger.h:65
short fADC
Definition: CRTTrigger.h:69
CRT::Hit::Hit ( )
inline

Definition at line 33 of file CRTTrigger.h.

33 : fChannel(std::numeric_limits<decltype(fChannel)>::max()), /*fAuxDetName("NULL"),*/ fADC(std::numeric_limits<decltype(fADC)>::max()) {}
static int max(int a, int b)
size_t fChannel
Definition: CRTTrigger.h:65
short fADC
Definition: CRTTrigger.h:69
virtual CRT::Hit::~Hit ( )
virtualdefault

Member Function Documentation

short CRT::Hit::ADC ( ) const
inline

Definition at line 43 of file CRTTrigger.h.

43 { return fADC; }
short fADC
Definition: CRTTrigger.h:69
size_t CRT::Hit::Channel ( ) const
inline

Definition at line 39 of file CRTTrigger.h.

39 { return fChannel; }
size_t fChannel
Definition: CRTTrigger.h:65
template<class STREAM >
void CRT::Hit::dump ( STREAM &  stream) const
inline

Definition at line 50 of file CRTTrigger.h.

51  {
52  stream << "CRT::Hit Dump:\n"
53  << "Channel: " << fChannel << "\n"
54  //<< "AuxDetName: " << fAuxDetName << "\n"
55  << "ADC: " << fADC << "\n"
56  << "Was this CRT::Hit default-constructed? " << (IsDefault()?"true":"false") << "\n";
57  return stream;
58  }
bool IsDefault() const
Definition: CRTTrigger.h:46
size_t fChannel
Definition: CRTTrigger.h:65
short fADC
Definition: CRTTrigger.h:69
bool CRT::Hit::IsDefault ( ) const
inline

Definition at line 46 of file CRTTrigger.h.

static int max(int a, int b)
short fADC
Definition: CRTTrigger.h:69

Member Data Documentation

short CRT::Hit::fADC
private

Definition at line 69 of file CRTTrigger.h.

size_t CRT::Hit::fChannel
private

Definition at line 65 of file CRTTrigger.h.


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