Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
lardataobj
lardataobj
RawData
AuxDetDigit.cxx
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
//
3
// AuxDetDigit class
4
//
5
// brebel@fnal.gov
6
//
7
////////////////////////////////////////////////////////////////////////
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)
18
, fChannel(0)
19
, fAuxDetName(
"UnknownAuxDet"
)
20
, fTimeStamp(UINT64_MAX)
21
{
22
23
}
24
25
//----------------------------------------------------------------------
26
AuxDetDigit::AuxDetDigit
(
unsigned
short
channel
,
27
std::vector<short> adclist,
28
std::string
name
,
29
unsigned
long
long
timeStamp)
30
:
fADC
(adclist)
31
,
fChannel
(channel)
32
,
fAuxDetName
(name)
33
,
fTimeStamp
(timeStamp)
34
{
35
36
}
37
38
//--------------------------------------------------
39
short
AuxDetDigit::ADC
(
size_t
i)
const
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
}
47
48
}
49
////////////////////////////////////////////////////////////////////////
50
name
static QCString name
Definition:
declinfo.cpp:673
raw::AuxDetDigit::fChannel
unsigned short fChannel
channel in the readout
Definition:
AuxDetDigit.h:27
string
std::string string
Definition:
nybbler.cc:12
raw
Raw data description.
Definition:
AdcChannelData.h:88
channel
uint8_t channel
Definition:
CRTFragment.hh:201
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:39
fhicl::exception
cet::coded_exception< error, detail::translate > exception
Definition:
exception.h:33
Generated by
1.8.11