PixelSimData.cc
Go to the documentation of this file.
1 #include <utl/ErrorLogger.h>
2 
3 #include <fdet/Channel.h>
4 
5 #include <fevt/PixelSimData.h>
6 
7 using namespace std;
8 using namespace utl;
9 using namespace fevt;
10 
11 
12 PixelSimData::PixelSimData() :
13  fNumSamples(0),
14  fMean(0),
15  fRMS(0),
16  fThreshold(0),
17  fMeanBgPhotonFlux(0),
18  fBoxcarsumMax(0),
19  fBoxcarsumMean(0),
20  fBoxcarsumRms(0),
21  fFltTime(0),
22  fFltDuration(0)
23 {}
24 
26 {
27 }
28 
29 
30 void
31 PixelSimData::MakePhotonTrace(unsigned int size, double binning,
32  const FdConstants::LightSource source)
33 {
34  if (HasPhotonTrace(source)) {
35  ERROR("Source already exists");
36  }
37  else
38  fPhotonTrace->AddTrace(size, binning, source);
39 }
40 
41 void
43  const FdConstants::LightSource source)
44 {
45  if (HasPhotonTrace(source)) {
46  ERROR("Source already exists");
47  }
48  else
49  fPhotonTrace->AddTrace(t, source);
50 }
51 
52 
53 void
54 PixelSimData::MakePhotonWeightSquareTrace(unsigned int size, double binning,
55  const FdConstants::LightSource source)
56 {
57  if (HasPhotonWeightSquareTrace(source)) {
58  ERROR("Source already exists");
59  }
60  else
61  fPhotonWeightSquareTrace->AddTrace(size, binning, source);
62 }
63 
64 
65 void
67  const FdConstants::LightSource source)
68 {
69  if (HasPhotonWeightSquareTrace(source)) {
70  ERROR("Source already exists");
71  }
72  else
73  fPhotonWeightSquareTrace->AddTrace(t, source);
74 }
75 
76 
77 
78 // Configure (x)emacs for this file ...
79 // Local Variables:
80 // mode: c++
81 // End:
bool HasPhotonWeightSquareTrace(const FdConstants::LightSource source) const
Check that trace of sums of squares of weights of simulated photons for source /par source is present...
Definition: PixelSimData.h:91
void MakePhotonWeightSquareTrace(unsigned int size, double binning, const FdConstants::LightSource source=FdConstants::eTotal)
Definition: PixelSimData.cc:54
bool HasPhotonTrace(const FdConstants::LightSource source) const
Check that trace for source /par source is present.
Definition: PixelSimData.h:51
LightSource
Possible light sources.
Definition: FdConstants.h:9
utl::InitializedShadowPtr< utl::MultiTraceD > fPhotonTrace
Definition: PixelSimData.h:160
utl::InitializedShadowPtr< utl::MultiTraceD > fPhotonWeightSquareTrace
Definition: PixelSimData.h:161
#define ERROR(message)
Macro for logging error messages.
Definition: ErrorLogger.h:165
void MakePhotonTrace(unsigned int size, double binning, const FdConstants::LightSource source=FdConstants::eTotal)
Definition: PixelSimData.cc:31

, generated on Tue Sep 26 2023.