TFCSHistoLateralShapeWeight class

Base classes

class TFCSLateralShapeParametrizationHitBase

Derived classes

class TFCSHistoLateralShapeGausLogWeight
class TFCSHistoLateralShapeGausLogWeightHitAndMiss
class TFCSHistoLateralShapeWeightHitAndMiss

Constructors, destructors, conversion operators

TFCSHistoLateralShapeWeight(const char* name = nullptr, const char* title = nullptr)
~TFCSHistoLateralShapeWeight() virtual

Public functions

auto simulate_hit(Hit& hit, TFCSSimulationState& simulstate, const TFCSTruthState* truth, const TFCSExtrapolationState* extrapol) -> FCSReturnCode override
weight the energy of one hit in order to generate fluctuations
auto Initialize(TH1* hist) -> bool
auto getHistogram() const -> TH1*
void Print(Option_t* option = "") const override
void setMinWeight(float minWeight) virtual
void setMaxWeight(float maxWeight) virtual
auto getMinWeight() const -> float override
Get minimum and maximum value of weight for hit energy reweighting.
auto getMaxWeight() const -> float override

Protected variables

TH1* m_hist
float m_minWeight
float m_maxWeight

Function documentation

bool TFCSHistoLateralShapeWeight::Initialize(TH1* hist)

Init from histogram. The integral of the histogram is used as number of expected hits to be generated

Variable documentation

TH1* TFCSHistoLateralShapeWeight::m_hist protected

Histogram to be used for the shape simulation The histogram x-axis should be in dR^2=deta^2+dphi^2