PixelRecData.cc
Go to the documentation of this file.
1 #include <fevt/PixelRecData.h>
2 #include <fevt/Channel.h>
3 
4 #include <fdet/Channel.h>
5 
6 #include <utl/ErrorLogger.h>
7 #include <utl/AugerException.h>
8 
9 using namespace utl;
10 using namespace fevt;
11 
12 
13 PixelRecData::PixelRecData() :
14  fCharge(0),
15  fPulseStart(0), fPulseStop(0),
16  fBaseline(0),
17  fRMS(0),
18  fCentroid(eUndefined), fCentroidError(eUndefined),
19  fChi_i(eUndefined),
20  fT_i(0), fT_iError(0),
21  fPulseIsFound(false),
22  fFirstTriggeredTimeBin(-1),
23  fFlagValidPixels(eValid)
24 {
25 }
26 
27 
28 void
29 PixelRecData::MakePhotonTrace(unsigned int size, double binning,
30  const FdConstants::LightSource source) {
31 
32  if (HasPhotonTrace(source)) {
33  ERROR("Source already exists");
34  }
35  else
36  fPhotonTrace->AddTrace(size, binning, source);
37 }
38 
40  const FdConstants::LightSource source) {
41 
42  if (HasPhotonTrace(source)) {
43  ERROR("Source already exists");
44  }
45  else
46  fPhotonTrace->AddTrace(t, source);
47 }
48 
49 
50 
51 // Configure (x)emacs for this file ...
52 // Local Variables:
53 // mode: c++
54 // compile-command: "make -C .. FEvent/PixelRecData.o -k"
55 // End:
LightSource
Possible light sources.
Definition: FdConstants.h:9
bool HasPhotonTrace(const FdConstants::LightSource source=FdConstants::eTotal) const
Check that trace for source /par source is present.
Definition: PixelRecData.h:48
void MakePhotonTrace(unsigned int size, double binning, const FdConstants::LightSource source=FdConstants::eTotal)
Definition: PixelRecData.cc:29
utl::InitializedShadowPtr< utl::MultiTraceD > fPhotonTrace
Definition: PixelRecData.h:145
#define ERROR(message)
Macro for logging error messages.
Definition: ErrorLogger.h:165

, generated on Tue Sep 26 2023.