3 #include <fwk/CentralConfig.h>
6 #include <evt/ShowerRecData.h>
7 #include <evt/ShowerRRecData.h>
8 #include <evt/ShowerSRecData.h>
10 #include <revt/REvent.h>
12 #include <utl/config.h>
13 #include <utl/ErrorLogger.h>
14 #include <utl/Reader.h>
26 fEnergyFitParameter(0),
42 INFO(
"RdAirShowerReconstruction::Init()");
84 const std::vector<TF1>& fitResult = showerrrec.GetRdLDF();
89 WARNING(
"Fit with EnergyFitId does not exist!");
94 WARNING(
"Fit with XmaxFitId does not exist!");
101 WARNING(
"EnergyFitParameter does not exist!");
106 WARNING(
"XmaxFitParamter does not exist!");
117 double energy_err = 0;
124 if (std::isnan(energy) || std::isnan(energy_err)) {
125 WARNING(
"Can not reconstruct energy!");
129 if (std::isnan(Xmax) || std::isnan(Xmax_err)) {
130 WARNING(
"Can not reconstruct Xmax!");
135 showerrrec.
SetParameter(eReconstructedEnergyTunkaRex, energy);
136 showerrrec.
SetParameter(eReconstructedXmaxTunkaRex, Xmax);
145 RdAirShowerReconstruction::CalculateEnergy(
const double E0,
const double E0_err,
double& energy_err)
153 RdAirShowerReconstruction::CalculateXmax(
const double eta,
const double eta_err,
double& Xmax_err)
162 RdAirShowerReconstruction::Finish()
164 INFO(
"RdAirShowerReconstruction::Finish()");
unsigned int fXmaxFitParameter
xml settings: index of parameter eta (slope) used for Xmax recontruction
Branch GetTopBranch() const
unsigned int fEnergyFitId
xml settings: index of parametrization used for energy reconstruction
void SetParameter(Parameter i, double value, bool lock=true)
double CalculateXmax(const double eta, const double eta_err, double &Xmax_err)
return reconstructed Xmax
Report success to RunController.
double fXmaxParamB
xml settings: paramenter B used for Xmax reconstruction
double fXmaxBbar
xml settings: constant bbar used for Xmax reconstruction
bool HasRecShower() const
double fXmaxGroundDepth
xml settings: depth of the detector (in g/cm^2)
ShowerRecData & GetRecShower()
Interface class to access to the RD Reconstruction of a Shower.
double fEnergyKappa
xml settings: constant kappa used for energy reconstruction
#define INFO(message)
Macro for logging informational messages.
void Init()
Initialise the registry.
Branch GetChild(const std::string &childName) const
Get child of this Branch by child name.
double pow(const double x, const unsigned int i)
double fZenith
zenith angle theta of arrival direction of air-shower
int fInfoLevel
xml settings: info level (0 - 5)
Class representing a document branch.
double GetZenith() const
returns the zenith angle (from the wave fit)
bool HasRRecShower() const
unsigned int fXmaxFitId
xml settings: index of parametrization used for Xmax reconstruction
double fXmaxParamA
xml settings: parameter A used for Xmax reconstruction
unsigned int fEnergyFitParameter
xml settings: index of parameter E0 used for energy reconstruction
#define WARNING(message)
Macro for logging warning messages.
void GetData(bool &b) const
Overloads of the GetData member template function.
double fEnergyB
xml settings: constant b used for energy reconstruction
ResultFlag
Flag returned by module methods to the RunController.
void SetParameterError(Parameter i, double value, bool lock=true)
double CalculateEnergy(const double E0, const double E0_err, double &energy_err)
return reconstructed energy