Public Member Functions | Private Attributes | List of all members
raw::AuxDetDigit Class Reference

#include <AuxDetDigit.h>

Public Member Functions

 AuxDetDigit ()
 
 AuxDetDigit (unsigned short channel, std::vector< short > adclist, std::string name="UknownAuxDet", unsigned long long timeStamp=UINT64_MAX)
 
size_t NADC () const
 
short ADC (size_t i) const
 
unsigned short Channel () const
 
std::string const & AuxDetName () const
 
unsigned long long TimeStamp () const
 

Private Attributes

std::vector< short > fADC
 vector of adc counts More...
 
unsigned short fChannel
 channel in the readout More...
 
std::string fAuxDetName
 name of the detector More...
 
unsigned long long fTimeStamp
 

Detailed Description

Definition at line 19 of file AuxDetDigit.h.

Constructor & Destructor Documentation

raw::AuxDetDigit::AuxDetDigit ( )

Definition at line 16 of file AuxDetDigit.cxx.

17  : fADC(0)
18  , fChannel(0)
19  , fAuxDetName("UnknownAuxDet")
20  , fTimeStamp(UINT64_MAX)
21  {
22 
23  }
unsigned short fChannel
channel in the readout
Definition: AuxDetDigit.h:27
unsigned long long fTimeStamp
Definition: AuxDetDigit.h:29
std::vector< short > fADC
vector of adc counts
Definition: AuxDetDigit.h:26
std::string fAuxDetName
name of the detector
Definition: AuxDetDigit.h:28
raw::AuxDetDigit::AuxDetDigit ( unsigned short  channel,
std::vector< short >  adclist,
std::string  name = "UknownAuxDet",
unsigned long long  timeStamp = UINT64_MAX 
)

Definition at line 26 of file AuxDetDigit.cxx.

30  : fADC(adclist)
31  , fChannel(channel)
32  , fAuxDetName(name)
33  , fTimeStamp(timeStamp)
34  {
35 
36  }
static QCString name
Definition: declinfo.cpp:673
unsigned short fChannel
channel in the readout
Definition: AuxDetDigit.h:27
uint8_t channel
Definition: CRTFragment.hh:201
unsigned long long fTimeStamp
Definition: AuxDetDigit.h:29
std::vector< short > fADC
vector of adc counts
Definition: AuxDetDigit.h:26
std::string fAuxDetName
name of the detector
Definition: AuxDetDigit.h:28

Member Function Documentation

short raw::AuxDetDigit::ADC ( size_t  i) const

Definition at line 39 of file AuxDetDigit.cxx.

40  {
41  if(i >= fADC.size())
42  throw cet::exception("AuxDetDigit") << "illegal index requested for ADC vector: "
43  << i << "\n";
44 
45  return fADC[i];
46  }
std::vector< short > fADC
vector of adc counts
Definition: AuxDetDigit.h:26
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
std::string const & raw::AuxDetDigit::AuxDetName ( ) const
inline

Definition at line 57 of file AuxDetDigit.h.

57 { return fAuxDetName; }
std::string fAuxDetName
name of the detector
Definition: AuxDetDigit.h:28
unsigned short raw::AuxDetDigit::Channel ( ) const
inline

Definition at line 56 of file AuxDetDigit.h.

56 { return fChannel; }
unsigned short fChannel
channel in the readout
Definition: AuxDetDigit.h:27
size_t raw::AuxDetDigit::NADC ( ) const
inline

Definition at line 55 of file AuxDetDigit.h.

55 { return fADC.size(); }
std::vector< short > fADC
vector of adc counts
Definition: AuxDetDigit.h:26
unsigned long long raw::AuxDetDigit::TimeStamp ( ) const
inline

Definition at line 58 of file AuxDetDigit.h.

58 { return fTimeStamp; }
unsigned long long fTimeStamp
Definition: AuxDetDigit.h:29

Member Data Documentation

std::vector<short> raw::AuxDetDigit::fADC
private

vector of adc counts

Definition at line 26 of file AuxDetDigit.h.

std::string raw::AuxDetDigit::fAuxDetName
private

name of the detector

Definition at line 28 of file AuxDetDigit.h.

unsigned short raw::AuxDetDigit::fChannel
private

channel in the readout

Definition at line 27 of file AuxDetDigit.h.

unsigned long long raw::AuxDetDigit::fTimeStamp
private

timestamp, upper 32 bits for the seconds since 1970 lower 32 for nanoseconds

Definition at line 29 of file AuxDetDigit.h.


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