AdcCountSelection.h
Go to the documentation of this file.
1 // AdcCountSelection.h
2 
3 #ifndef AdcCountSelection_H
4 #define AdcCountSelection_H
5 
6 // David Adams
7 // May 2016
8 //
9 // Class AdcSelection holds the channel number, pedestal, (floating) ADC count vector
10 // and filter vector for one ADC channel. The latter indicates which channels are
11 // to be retained.
12 
14 
16 
17  // typedefs
18  typedef unsigned int Channel;
19 
20  // public data
22  Channel channel;
25 
26  // Ctor from an ADC count vector. The filter is set to accept all.
27  AdcCountSelection(const AdcCountVector& a_counts, Channel a_channel, AdcPedestal a_pedestal)
28  : counts(a_counts), channel(a_channel), pedestal(a_pedestal), filter(counts.size(), true) { }
29 
30 };
31 
32 typedef std::vector<AdcCountSelection> AdcCountSelectionVector;
33 
34 #endif
std::vector< AdcCountSelection > AdcCountSelectionVector
std::vector< AdcCount > AdcCountVector
Definition: AdcTypes.h:19
const AdcCountVector & counts
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
AdcFilterVector filter
unsigned int Channel
AdcCountSelection(const AdcCountVector &a_counts, Channel a_channel, AdcPedestal a_pedestal)
std::vector< bool > AdcFilterVector
Definition: AdcTypes.h:27
float AdcPedestal
Definition: AdcTypes.h:25