LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
AdcTypes.h
Go to the documentation of this file.
1 // AdcTypes.h
2 
3 // David Adams
4 // December 2015
5 //
6 // Integer and floating type for Adc signals.
7 
8 #ifndef AdcTypes_H
9 #define AdcTypes_H
10 
11 #include <vector>
12 
13 typedef short AdcCount;
14 typedef std::vector<AdcCount> AdcCountVector;
15 
16 typedef float AdcSignal;
17 typedef std::vector<AdcSignal> AdcSignalVector;
18 typedef std::vector<AdcSignalVector> AdcSignalVectorVector;
19 
20 typedef float AdcPedestal;
21 
22 typedef std::vector<bool> AdcFilterVector;
23 
24 typedef short AdcFlag;
25 typedef std::vector<AdcFlag> AdcFlagVector;
26 
27 const AdcFlag AdcGood = 0; // ADC sample is fine
28 const AdcFlag AdcUnderflow = 1; // ADC sample is underflow
29 const AdcFlag AdcOverflow = 2; // ADC sample is overflow
30 const AdcFlag AdcStuckOff = 3; // ADC sample has bits stuck at 0
31 const AdcFlag AdcStuckOn = 4; // ADC sample has bits stuck at 1
32 const AdcFlag AdcSetFixed = 5; // ADC sample is set to a fixed value
33 const AdcFlag AdcInterpolated = 6; // ADC sample is interpolated
34 const AdcFlag AdcExtrapolated = 7; // ADC sample is extrapolated
35 
36 typedef unsigned int AdcChannel;
37 typedef std::vector<AdcChannel> AdcChannelVector;
38 
39 #endif
float AdcPedestal
Definition: AdcTypes.h:20
const AdcFlag AdcStuckOn
Definition: AdcTypes.h:31
std::vector< bool > AdcFilterVector
Definition: AdcTypes.h:22
std::vector< AdcSignal > AdcSignalVector
Definition: AdcTypes.h:17
unsigned int AdcChannel
Definition: AdcTypes.h:36
short AdcFlag
Definition: AdcTypes.h:24
const AdcFlag AdcOverflow
Definition: AdcTypes.h:29
short AdcCount
Definition: AdcTypes.h:13
const AdcFlag AdcInterpolated
Definition: AdcTypes.h:33
std::vector< AdcSignalVector > AdcSignalVectorVector
Definition: AdcTypes.h:18
const AdcFlag AdcSetFixed
Definition: AdcTypes.h:32
const AdcFlag AdcGood
Definition: AdcTypes.h:27
std::vector< AdcFlag > AdcFlagVector
Definition: AdcTypes.h:25
const AdcFlag AdcStuckOff
Definition: AdcTypes.h:30
const AdcFlag AdcUnderflow
Definition: AdcTypes.h:28
const AdcFlag AdcExtrapolated
Definition: AdcTypes.h:34
std::vector< AdcChannel > AdcChannelVector
Definition: AdcTypes.h:37
std::vector< AdcCount > AdcCountVector
Definition: AdcTypes.h:14
float AdcSignal
Definition: AdcTypes.h:16