ATLAS Offline Software
Loading...
Searching...
No Matches
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
12class TH2;
13
16public:
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
52protected:
54 float m_dR{};
55 float m_nhits{};
56 float m_scale{};
57
58private:
60 1) // TFCSFlatLateralShapeParametrization
61};
62
63inline float
67
68inline float TFCSFlatLateralShapeParametrization::dR() const { return m_dR; }
69
71 return m_scale;
72}
73
74#endif
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
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...
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
void set_dR(float _dR)
set the radius in which hits should be generated
void set_number_of_hits(float nhits)
set the integral of the histogram to the desired number of hits
TFCSFlatLateralShapeParametrization(const char *name=nullptr, const char *title=nullptr)
virtual void Print(Option_t *option="") const override
void set_scale(float _scale)
set the radius in which hits should be generated
TFCSLateralShapeParametrizationHitBase(const char *name=nullptr, const char *title=nullptr)