5#ifndef ISF_FASTCALOSIMEVENT_TFCSEnergyInterpolationHistogram_h
6#define ISF_FASTCALOSIMEVENT_TFCSEnergyInterpolationHistogram_h
14 const char *title =
nullptr);
44 void Print(Option_t *option =
"")
const override;
49 TH1F *
hist =
nullptr);
58#if defined(__ROOTCLING__) && defined(__FastCaloSimStandAlone__)
59#pragma link C++ class TFCSEnergyInterpolationHistogram + ;
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
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...
void reset_OnlyScaleEnergy()
virtual bool is_match_calosample(int) const override
const TH1F & hist() const
TFCSEnergyInterpolationHistogram(const char *name=nullptr, const char *title=nullptr)
void InitFromHist(const TH1F &hist)
Initialize interpolation from histogram x values should be Ekin, y values should <E(reco)/Ekin(true)>
virtual bool is_match_Ekin_bin(int) const override
bool OnlyScaleEnergy() const
static void unit_test(TFCSSimulationState *simulstate=nullptr, TFCSTruthState *truth=nullptr, const TFCSExtrapolationState *extrapol=nullptr, TH1F *hist=nullptr)
void set_OnlyScaleEnergy()
FCSEnergyInitializationStatusBits
@ kOnlyScaleEnergy
Set this bit in the TObject bit field the simulated energy.
void Print(Option_t *option="") const override
TFCSParametrization(const char *name=nullptr, const char *title=nullptr)