18 #include <evt/Event.h>
20 #include <fevt/FEvent.h>
22 #include <fevt/Telescope.h>
23 #include <fevt/EyeRecData.h>
24 #include <fevt/TelescopeRecData.h>
25 #include <fevt/TelescopeSimData.h>
26 #include <fevt/FdConstants.h>
28 #include <utl/AugerException.h>
29 #include <utl/ErrorLogger.h>
31 #include <det/Detector.h>
32 #include <fdet/FDetector.h>
34 #include <fdet/Telescope.h>
36 using namespace FdLightCollectionEfficiencyKG;
47 const unsigned int telId,
48 const int verbosity) :
49 fTelSimData(telSimData),
50 fOutputApTrace(outputApTrace),
63 msg <<
"Calculating time-corrected aperture light trace for telescope "
76 for (
unsigned int i = 0; i < rtPhotTrace.
GetSize(); ++i)
86 double sumOutOfBounds = 0.;
87 double sumInBounds = 0.;
96 const int bin = int(time/traceBinWidth);
98 if (bin < 0 || bin >=
int(telTraceNBins)) {
101 err <<
"Bin out of range. bin=" << bin
110 const double photonWeight = p.
GetWeight();
117 msg <<
" For this ray-tracing iteration: Total sum of photon weights in range: " << sumInBounds
118 <<
" out of range: " << sumOutOfBounds << endl;
void SetStop(const SizeType stop)
Set valid data stop bin.
int fVerbosity
global verbosity flag
SizeType GetStop() const
Get valid data stop bin.
CorrectedApLightCalculator(const fevt::TelescopeSimData &telSimData, utl::TraceD &outputApTrace, const unsigned int telId, const int verbosity)
double GetBinning() const
size of one slot
utl::TraceI & GetRayTracedPhotonTrace()
Number of photons that were actually ray-traced (per time bin)
#define INFO(message)
Macro for logging informational messages.
double GetWeight() const
weight assigned to the photon
const fevt::TelescopeSimData & fTelSimData
PhotonIterator PhotonsEnd()
utl::TraceD & fOutputApTrace
Description of simulated data for one Telescope.
void SetStart(const SizeType start)
Set valid data start bin.
#define WARNING(message)
Macro for logging warning messages.
double GetInterval() const
Get the time interval as a double (in Auger base units)
std::list< utl::Photon >::const_iterator ConstPhotonIterator
void SetBinning(const double binning)
PhotonIterator PhotonsBegin()
SizeType GetStart() const
Get valid data start bin.
void PushBack(const T &value)
Insert a single value at the end.
utl::TimeInterval GetTime() const