LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
AuxDetDigit.cxx
Go to the documentation of this file.
1
//
3
// AuxDetDigit class
4
//
5
// brebel@fnal.gov
6
//
8
9
#include "
lardataobj/RawData/AuxDetDigit.h
"
10
11
#include "cetlib_except/exception.h"
12
13
namespace
raw
{
14
15
//----------------------------------------------------------------------
16
AuxDetDigit::AuxDetDigit
()
17
: fADC(0), fChannel(0), fAuxDetName(
"UnknownAuxDet"
), fTimeStamp(UINT64_MAX)
18
{}
19
20
//----------------------------------------------------------------------
21
AuxDetDigit::AuxDetDigit
(
unsigned
short
channel,
22
std::vector<short> adclist,
23
std::string name,
24
unsigned
long
long
timeStamp)
25
:
fADC
(adclist),
fChannel
(channel),
fAuxDetName
(name),
fTimeStamp
(timeStamp)
26
{}
27
28
//--------------------------------------------------
29
short
AuxDetDigit::ADC
(
size_t
i)
const
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
}
37
38
}
raw::AuxDetDigit::fChannel
unsigned short fChannel
channel in the readout
Definition:
AuxDetDigit.h:27
raw
Raw data description.
Definition:
RawTypes.h:6
raw::AuxDetDigit::AuxDetDigit
AuxDetDigit()
Definition:
AuxDetDigit.cxx:16
raw::AuxDetDigit::fTimeStamp
unsigned long long fTimeStamp
Definition:
AuxDetDigit.h:29
AuxDetDigit.h
raw::AuxDetDigit::fADC
std::vector< short > fADC
vector of adc counts
Definition:
AuxDetDigit.h:26
raw::AuxDetDigit::fAuxDetName
std::string fAuxDetName
name of the detector
Definition:
AuxDetDigit.h:28
raw::AuxDetDigit::ADC
short ADC(size_t i) const
Definition:
AuxDetDigit.cxx:29
fhicl::exception
cet::coded_exception< error, detail::translate > exception
Definition:
exception.h:33
lardataobj
v09_18_03
source
lardataobj
RawData
AuxDetDigit.cxx
Generated on Thu May 2 2024 20:59:37 for LArSoft by
1.8.11