FEvent/ChannelRecData.cc
Go to the documentation of this file.
1 #include <fevt/ChannelRecData.h>
2 #include <utl/ErrorLogger.h>
3 #include <fdet/Channel.h>
4 
5 using namespace utl;
6 using namespace fevt;
7 
8 
9 void
10 ChannelRecData::MakeFADCTrace(unsigned int size, double binning, const FdConstants::LightSource source)
11 {
12  if (HasFADCTrace(source)) {
13  ERROR("Source already exists");
14  }
15  else
16  fFADCTrace->AddTrace(size, binning, source);
17 }
18 
19 void
20 ChannelRecData::MakeFADCTrace(const utl::TraceI& t, const FdConstants::LightSource source)
21 {
22  if (HasFADCTrace(source)) {
23  ERROR("Source already exists");
24  }
25  else
26  fFADCTrace->AddTrace(t, source);
27 }
28 
29 void
30 ChannelRecData::AddDeSaturatedBin(const int bin)
31 {
32  fDeSaturedBins.insert(bin);
33 }
34 
35 bool
36 ChannelRecData::IsDeSaturated(const int bin)
37 const
38 {
39  return fDeSaturedBins.find(bin) != fDeSaturedBins.end();
40 }
41 
42 
LightSource
Possible light sources.
Definition: FdConstants.h:9
#define ERROR(message)
Macro for logging error messages.
Definition: ErrorLogger.h:165

, generated on Tue Sep 26 2023.