|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TFCSHistoLateralShapeParametrization_h
6 #define TFCSHistoLateralShapeParametrization_h
23 const char *
title =
nullptr);
82 void Print(Option_t *option =
"")
const override;
88 void set_d_HistFunc(
FH2D *hf_ptr) { m_d_HistFunc = hf_ptr; };
89 const FH2D *d_HistFunc() {
return m_d_HistFunc; };
103 FH2D *m_d_HistFunc =
nullptr;
virtual void reset_phi_symmetric()
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
FCSStatusBits
Status bit for FCS needs.
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...
TFCSHistoLateralShapeParametrization(const char *name=nullptr, const char *title=nullptr)
virtual int get_number_of_hits(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const override
default for this class is to simulate get_number_of_expected_hits() hits
bool Initialize(TH2 *hist)
Init from histogram.
~TFCSHistoLateralShapeParametrization()
void set_r_scale(float r_scale)
set an scale factor for r on the simulated histogram
virtual void set_geometry(ICaloGeometry *geo) override
will actually not store the geometry information, but rather used to check the validity of the 2D sha...
void set_r_offset(float r_offset)
set an offset in r on the simulated histogram
virtual void set_phi_symmetric()
bool is_phi_symmetric() const
float get_number_of_expected_hits() const
@ k_phi_symmetric
Set this bit to simulate phi symmetric histograms.
TFCS2DFunctionHistogram m_hist
Histogram to be used for the shape simulation.
virtual double get_sigma2_fluctuation(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const override
default for this class is to simulate get_number_of_expected_hits() hits, which gives fluctuations si...
TFCS2DFunctionHistogram & histogram()
void Print(Option_t *option="") const override
const TFCS2DFunctionHistogram & histogram() const
void set_number_of_hits(float nhits)
set the integral of the histogram to the desired number of hits