ATLAS Offline Software
Loading...
Searching...
No Matches
TFCSEnergyInterpolationLinear.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ISF_FASTCALOSIMEVENT_TFCSEnergyInterpolationLinear_h
6#define ISF_FASTCALOSIMEVENT_TFCSEnergyInterpolationLinear_h
7
9
11public:
12 TFCSEnergyInterpolationLinear(const char *name = nullptr,
13 const char *title = nullptr);
14
15 virtual bool is_match_Ekin_bin(int /*Ekin_bin*/) const override {
16 return true;
17 };
18 virtual bool is_match_calosample(int /*calosample*/) const override {
19 return true;
20 };
21
22 void set_slope(float slope) { m_slope = slope; };
23 void set_offset(float offset) { m_offset = offset; };
24
25 // Initialize simulstate with the mean reconstructed energy in the calorimater
26 // expeted from the true kinetic energy
27 virtual FCSReturnCode
28 simulate(TFCSSimulationState &simulstate, const TFCSTruthState *truth,
29 const TFCSExtrapolationState *extrapol) const override;
30
31 void Print(Option_t *option = "") const override;
32
33 static void unit_test(TFCSSimulationState *simulstate = nullptr,
34 TFCSTruthState *truth = nullptr,
35 const TFCSExtrapolationState *extrapol = nullptr);
36
37private:
38 float m_slope;
39 float m_offset;
40
41 ClassDefOverride(TFCSEnergyInterpolationLinear,
42 1) // TFCSEnergyInterpolationLinear
43};
44
45#endif
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
virtual bool is_match_calosample(int) const override
TFCSEnergyInterpolationLinear(const char *name=nullptr, const char *title=nullptr)
static void unit_test(TFCSSimulationState *simulstate=nullptr, TFCSTruthState *truth=nullptr, const TFCSExtrapolationState *extrapol=nullptr)
virtual bool is_match_Ekin_bin(int) const override
void Print(Option_t *option="") const override
virtual FCSReturnCode simulate(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const override
Method in all derived classes to do some simulation.
TFCSParametrization(const char *name=nullptr, const char *title=nullptr)