5#ifndef ISF_FASTCALOSIMEVENT_TFCSEnergyInterpolationSpline_h
6#define ISF_FASTCALOSIMEVENT_TFCSEnergyInterpolationSpline_h
16 const char *title =
nullptr);
44 const char *opt =
nullptr, Double_t valbeg = 0,
51 const char *opt =
nullptr, Double_t valbeg = 0,
62 void Print(Option_t *option =
"")
const override;
67 TGraph *grspline =
nullptr);
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
void InitFromSpline(const TSpline3 &spline)
Initialize interpolation from spline x values should be log(Ekin), y values should <E(reco)/Ekin(true...
void set_OnlyScaleEnergy()
virtual FCSReturnCode simulate(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const override
Initialize simulstate with the mean reconstructed energy in the calorimater expeted from the true kin...
static void unit_test(TFCSSimulationState *simulstate=nullptr, TFCSTruthState *truth=nullptr, const TFCSExtrapolationState *extrapol=nullptr, TGraph *grspline=nullptr)
void InitFromArrayInEkin(Int_t np, Double_t Ekin[], Double_t response[], const char *opt=nullptr, Double_t valbeg=0, Double_t valend=0)
Initialize spline interpolation from arrays in Ekin and response=<E(reco)/Ekin(true)> opt,...
void reset_OnlyScaleEnergy()
FCSEnergyInitializationStatusBits
Status bit for energy initialization.
@ kOnlyScaleEnergy
Set this bit in the TObject bit field the simulated energy.
bool OnlyScaleEnergy() const
virtual bool is_match_Ekin_bin(int) const override
void Print(Option_t *option="") const override
void InitFromArrayInLogEkin(Int_t np, Double_t logEkin[], Double_t response[], const char *opt=nullptr, Double_t valbeg=0, Double_t valend=0)
Initialize spline interpolation from arrays in log(Ekin) and response=<E(reco)/Ekin(true)> opt,...
TFCSEnergyInterpolationSpline(const char *name=nullptr, const char *title=nullptr)
const TSpline3 & spline() const
virtual bool is_match_calosample(int) const override
TFCSParametrization(const char *name=nullptr, const char *title=nullptr)