LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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 20 of file AuxDetDigit.h.

Constructor & Destructor Documentation

raw::AuxDetDigit::AuxDetDigit ( )

Definition at line 16 of file AuxDetDigit.cxx.

17  : fADC(0), fChannel(0), fAuxDetName("UnknownAuxDet"), fTimeStamp(UINT64_MAX)
18  {}
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 21 of file AuxDetDigit.cxx.

25  : fADC(adclist), fChannel(channel), fAuxDetName(name), fTimeStamp(timeStamp)
26  {}
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

Member Function Documentation

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

Definition at line 29 of file AuxDetDigit.cxx.

References fADC.

30  {
31  if (i >= fADC.size())
32  throw cet::exception("AuxDetDigit")
33  << "illegal index requested for ADC vector: " << i << "\n";
34 
35  return fADC[i];
36  }
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 58 of file AuxDetDigit.h.

References fAuxDetName.

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

Definition at line 54 of file AuxDetDigit.h.

References fChannel.

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

Definition at line 50 of file AuxDetDigit.h.

References fADC.

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

Definition at line 62 of file AuxDetDigit.h.

References fTimeStamp.

63 {
64  return fTimeStamp;
65 }
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.

Referenced by ADC(), and NADC().

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

name of the detector

Definition at line 28 of file AuxDetDigit.h.

Referenced by AuxDetName().

unsigned short raw::AuxDetDigit::fChannel
private

channel in the readout

Definition at line 27 of file AuxDetDigit.h.

Referenced by Channel().

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.

Referenced by TimeStamp().


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