ATLAS Offline Software
TFCSFlatLateralShapeParametrization.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TFCSFlatLateralShapeParametrization_h
6 #define TFCSFlatLateralShapeParametrization_h
7 
11 
12 class TH2;
13 
16 public:
17  TFCSFlatLateralShapeParametrization(const char *name = nullptr,
18  const char *title = nullptr);
20 
22  void set_number_of_hits(float nhits);
23 
24  float get_number_of_expected_hits() const;
25 
27  virtual int
29  const TFCSTruthState *truth,
30  const TFCSExtrapolationState *extrapol) const override;
31 
33  void set_dR(float _dR);
34 
35  float dR() const;
36 
38  void set_scale(float _scale);
39 
40  float scale() const;
41 
45  virtual FCSReturnCode
46  simulate_hit(Hit &hit, TFCSSimulationState &simulstate,
47  const TFCSTruthState *truth,
48  const TFCSExtrapolationState *extrapol) override;
49 
50  virtual void Print(Option_t *option = "") const override;
51 
52 protected:
54  float m_dR{};
55  float m_nhits{};
56  float m_scale{};
57 
58 private:
59  ClassDefOverride(TFCSFlatLateralShapeParametrization,
60  1) // TFCSFlatLateralShapeParametrization
61 };
62 
63 inline float
65  return m_nhits;
66 }
67 
68 inline float TFCSFlatLateralShapeParametrization::dR() const { return m_dR; }
69 
71  return m_scale;
72 }
73 
74 #endif
FCSReturnCode
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
Definition: TFCSParametrizationBase.h:41
TFCSFlatLateralShapeParametrization::dR
float dR() const
Definition: TFCSFlatLateralShapeParametrization.h:68
TFCSFlatLateralShapeParametrization
Definition: TFCSFlatLateralShapeParametrization.h:15
TFCSFlatLateralShapeParametrization::set_scale
void set_scale(float _scale)
set the radius in which hits should be generated
Definition: TFCSFlatLateralShapeParametrization.cxx:44
TFCSFlatLateralShapeParametrization::scale
float scale() const
Definition: TFCSFlatLateralShapeParametrization.h:70
TFCSFlatLateralShapeParametrization::m_nhits
float m_nhits
Definition: TFCSFlatLateralShapeParametrization.h:55
TFCSExtrapolationState
Definition: TFCSExtrapolationState.h:13
TFCSLateralShapeParametrizationHitBase::Hit
Definition: TFCSLateralShapeParametrizationHitBase.h:42
RunActsMaterialValidation.extrapol
extrapol
Definition: RunActsMaterialValidation.py:90
TFCSFlatLateralShapeParametrization::get_number_of_hits
virtual int get_number_of_hits(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const override
default for this class is to simulate poisson(integral histogram) hits
Definition: TFCSFlatLateralShapeParametrization.cxx:28
python.utils.AtlRunQueryMemUtil._scale
dictionary _scale
Definition: AtlRunQueryMemUtil.py:7
TFCSLateralShapeParametrizationHitBase
Definition: TFCSLateralShapeParametrizationHitBase.h:13
TFCSFlatLateralShapeParametrization::m_scale
float m_scale
Definition: TFCSFlatLateralShapeParametrization.h:56
TFCSLateralShapeParametrizationHitBase.h
covarianceTool.title
title
Definition: covarianceTool.py:542
TFCSFlatLateralShapeParametrization::simulate_hit
virtual FCSReturnCode simulate_hit(Hit &hit, TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) override
simulated one hit position with weight that should be put into simulstate sometime later all hit weig...
Definition: TFCSFlatLateralShapeParametrization.cxx:48
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TFCSFlatLateralShapeParametrization::get_number_of_expected_hits
float get_number_of_expected_hits() const
Definition: TFCSFlatLateralShapeParametrization.h:64
TFCSFlatLateralShapeParametrization::~TFCSFlatLateralShapeParametrization
virtual ~TFCSFlatLateralShapeParametrization()
Definition: TFCSFlatLateralShapeParametrization.cxx:26
TFCSFlatLateralShapeParametrization::Print
virtual void Print(Option_t *option="") const override
Definition: TFCSFlatLateralShapeParametrization.cxx:85
TFCSTruthState.h
TFCSFlatLateralShapeParametrization::set_number_of_hits
void set_number_of_hits(float nhits)
set the integral of the histogram to the desired number of hits
Definition: TFCSFlatLateralShapeParametrization.cxx:38
TFCS2DFunctionHistogram.h
TFCSFlatLateralShapeParametrization::m_dR
float m_dR
Simulate hits flat in radius dR.
Definition: TFCSFlatLateralShapeParametrization.h:54
TFCSFlatLateralShapeParametrization::set_dR
void set_dR(float _dR)
set the radius in which hits should be generated
Definition: TFCSFlatLateralShapeParametrization.cxx:42
TFCSTruthState
Definition: TFCSTruthState.h:13
TFCSSimulationState
Definition: TFCSSimulationState.h:32
TFCSFlatLateralShapeParametrization::TFCSFlatLateralShapeParametrization
TFCSFlatLateralShapeParametrization(const char *name=nullptr, const char *title=nullptr)
Definition: TFCSFlatLateralShapeParametrization.cxx:21