TFCS2DFunctionLateralShapeParametrization class

Base classes

class TFCSLateralShapeParametrizationHitBase

Public types

enum FCSStatusBits { k_phi_symmetric = BIT(15) }
Status bit for FCS needs.

Constructors, destructors, conversion operators

TFCS2DFunctionLateralShapeParametrization(const char* name = nullptr, const char* title = nullptr)
~TFCS2DFunctionLateralShapeParametrization()

Public functions

auto is_phi_symmetric() const -> bool
void set_phi_symmetric() virtual
void reset_phi_symmetric() virtual
void set_number_of_hits(float nhits)
set the desired number of hits
auto get_number_of_expected_hits() const -> float
auto get_sigma2_fluctuation(TFCSSimulationState& simulstate, const TFCSTruthState* truth, const TFCSExtrapolationState* extrapol) const -> double override
auto get_number_of_hits(TFCSSimulationState& simulstate, const TFCSTruthState* truth, const TFCSExtrapolationState* extrapol) const -> int override
default for this class is to simulate get_number_of_expected_hits() hits
auto simulate_hit(Hit& hit, TFCSSimulationState& simulstate, const TFCSTruthState* truth, const TFCSExtrapolationState* extrapol) -> FCSReturnCode override
auto Initialize(TFCS2DFunction* func, float nhits = -1) -> bool
Init from function.
auto function() -> TFCS2DFunction*
auto function() const -> const TFCS2DFunction*
void Print(Option_t* option = "") const override

Protected variables

TFCS2DFunction* m_function
Histogram to be used for the shape simulation.
float m_nhits

Enum documentation

enum TFCS2DFunctionLateralShapeParametrization::FCSStatusBits

Status bit for FCS needs.

Enumerators
k_phi_symmetric

Set this bit to simulate phi symmetric histograms.

Function documentation

double TFCS2DFunctionLateralShapeParametrization::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 sigma^2=1/get_number_of_expected_hits()

FCSReturnCode TFCS2DFunctionLateralShapeParametrization::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 weights should be resacled such that their final sum is simulstate->E(sample) someone also needs to map all hits into cells