5#ifndef TFCSHistoLateralShapeParametrization_h
6#define TFCSHistoLateralShapeParametrization_h
23 const char *title =
nullptr);
77 bool Initialize(
const char *filepath,
const char *histname);
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; };
90 LoadGpuFuncHist *LdFH() {
return m_LdFH; };
103 FH2D *m_d_HistFunc =
nullptr;
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
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 Print(Option_t *option="") const override
bool is_phi_symmetric() const
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
float get_number_of_expected_hits() const
virtual void reset_phi_symmetric()
bool Initialize(TH2 *hist)
Init from histogram.
~TFCSHistoLateralShapeParametrization()
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...
void set_r_scale(float r_scale)
set an scale factor for r on the simulated histogram
virtual void set_phi_symmetric()
void set_r_offset(float r_offset)
set an offset in r on the simulated histogram
TFCS2DFunctionHistogram m_hist
Histogram to be used for the shape simulation.
TFCSHistoLateralShapeParametrization(const char *name=nullptr, const char *title=nullptr)
FCSStatusBits
Status bit for FCS needs.
@ k_phi_symmetric
Set this bit to simulate phi symmetric histograms.
TFCS2DFunctionHistogram & histogram()
void set_number_of_hits(float nhits)
set the integral of the histogram to the desired number of hits
const TFCS2DFunctionHistogram & histogram() const
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...
TFCSLateralShapeParametrizationHitBase(const char *name=nullptr, const char *title=nullptr)