TFCSLateralShapeParametrizationHitBase class

Base classes

class TFCSLateralShapeParametrization

Derived classes

class TFCS2DFunctionLateralShapeParametrization
class TFCSCenterPositionCalculation
class TFCSFlatLateralShapeParametrization
class TFCSHistoLateralShapeParametrization
class TFCSHistoLateralShapeWeight
class TFCSHitCellMapping
class TFCSLateralShapeParametrizationHitNumberFromE
class TFCSLateralShapeTuning
class TFCSPredictExtrapWeights

Public types

class Hit

Constructors, destructors, conversion operators

TFCSLateralShapeParametrizationHitBase(const char* name = nullptr, const char* title = nullptr)

Public functions

auto get_sigma2_fluctuation(TFCSSimulationState& simulstate, const TFCSTruthState* truth, const TFCSExtrapolationState* extrapol) const -> double virtual
auto get_number_of_hits(TFCSSimulationState& simulstate, const TFCSTruthState* truth, const TFCSExtrapolationState* extrapol) const -> int virtual
auto get_E_hit(TFCSSimulationState& simulstate, const TFCSTruthState* truth, const TFCSExtrapolationState* extrapol) const -> float virtual
Get hit energy from layer energy and number of hits.
auto getMinWeight() const -> float virtual
Get minimum and maximum value of weight for hit energy reweighting.
auto getMaxWeight() const -> float virtual
auto simulate_hit(Hit& hit, TFCSSimulationState& simulstate, const TFCSTruthState* truth, const TFCSExtrapolationState* extrapol) -> FCSReturnCode virtual

Function documentation

double TFCSLateralShapeParametrizationHitBase::get_sigma2_fluctuation(TFCSSimulationState& simulstate, const TFCSTruthState* truth, const TFCSExtrapolationState* extrapol) const virtual

Give the effective size sigma^2 of the fluctuations that should be generated by the amount of generated hits. Return a value <0 if this instance can't determine

int TFCSLateralShapeParametrizationHitBase::get_number_of_hits(TFCSSimulationState& simulstate, const TFCSTruthState* truth, const TFCSExtrapolationState* extrapol) const virtual

Call get_number_of_hits() only once per shower simulation, as it could be calculated with random numbers and give different results each time. Return a value of -1 if this instance can't determine

FCSReturnCode TFCSLateralShapeParametrizationHitBase::simulate_hit(Hit& hit, TFCSSimulationState& simulstate, const TFCSTruthState* truth, const TFCSExtrapolationState* extrapol) virtual

simulated one hit position with some energy. As last step in TFCSLateralShapeParametrizationHitChain::simulate, the hit should be mapped into a cell and this cell recorded in simulstate. All hits/cells should be resacled such that their final sum is simulstate->E(sample)