ATLAS Offline Software
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 
11 public:
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 
37 private:
38  float m_slope;
39  float m_offset;
40 
41  ClassDefOverride(TFCSEnergyInterpolationLinear,
42  1) // TFCSEnergyInterpolationLinear
43 };
44 
45 #endif
FCSReturnCode
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
Definition: TFCSParametrizationBase.h:41
TFCSEnergyInterpolationLinear::m_offset
float m_offset
Definition: TFCSEnergyInterpolationLinear.h:39
TFCSExtrapolationState
Definition: TFCSExtrapolationState.h:13
RunActsMaterialValidation.extrapol
extrapol
Definition: RunActsMaterialValidation.py:91
TFCSEnergyInterpolationLinear::Print
void Print(Option_t *option="") const override
Definition: TFCSEnergyInterpolationLinear.cxx:34
TFCSParametrization.h
covarianceTool.title
title
Definition: covarianceTool.py:542
TFCSEnergyInterpolationLinear::unit_test
static void unit_test(TFCSSimulationState *simulstate=nullptr, TFCSTruthState *truth=nullptr, const TFCSExtrapolationState *extrapol=nullptr)
Definition: TFCSEnergyInterpolationLinear.cxx:47
TFCSEnergyInterpolationLinear
Definition: TFCSEnergyInterpolationLinear.h:10
TFCSEnergyInterpolationLinear::is_match_Ekin_bin
virtual bool is_match_Ekin_bin(int) const override
Definition: TFCSEnergyInterpolationLinear.h:15
TFCSEnergyInterpolationLinear::is_match_calosample
virtual bool is_match_calosample(int) const override
Definition: TFCSEnergyInterpolationLinear.h:18
TFCSParametrization
Definition: TFCSParametrization.h:10
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
convertTimingResiduals.offset
offset
Definition: convertTimingResiduals.py:71
TFCSEnergyInterpolationLinear::set_slope
void set_slope(float slope)
Definition: TFCSEnergyInterpolationLinear.h:22
TFCSEnergyInterpolationLinear::m_slope
float m_slope
Definition: TFCSEnergyInterpolationLinear.h:38
TFCSEnergyInterpolationLinear::set_offset
void set_offset(float offset)
Definition: TFCSEnergyInterpolationLinear.h:23
TFCSEnergyInterpolationLinear::simulate
virtual FCSReturnCode simulate(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const override
Method in all derived classes to do some simulation.
Definition: TFCSEnergyInterpolationLinear.cxx:23
TFCSTruthState
Definition: TFCSTruthState.h:13
TFCSSimulationState
Definition: TFCSSimulationState.h:32
TFCSEnergyInterpolationLinear::TFCSEnergyInterpolationLinear
TFCSEnergyInterpolationLinear(const char *name=nullptr, const char *title=nullptr)
Definition: TFCSEnergyInterpolationLinear.cxx:18