|
ATLAS Offline Software
|
Go to the documentation of this file.
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...
bool OnlyScaleEnergy() const
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,...
static void unit_test(TFCSSimulationState *simulstate=nullptr, TFCSTruthState *truth=nullptr, const TFCSExtrapolationState *extrapol=nullptr, TGraph *grspline=nullptr)
void Print(Option_t *option="") const override
FCSEnergyInitializationStatusBits
Status bit for energy initialization.
virtual bool is_match_Ekin_bin(int) const override
const TSpline3 & spline() const
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...
TFCSEnergyInterpolationSpline(const char *name=nullptr, const char *title=nullptr)
virtual bool is_match_calosample(int) const override
void set_OnlyScaleEnergy()
@ kOnlyScaleEnergy
Set this bit in the TObject bit field the simulated energy should only be scaled by the spline.
void reset_OnlyScaleEnergy()
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,...