ATLAS Offline Software
Loading...
Searching...
No Matches
TFCSHistoLateralShapeWeight.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TFCSHistoLateralShapeWeight_h
6#define TFCSHistoLateralShapeWeight_h
7
9
10class TH1;
11
14public:
15 TFCSHistoLateralShapeWeight(const char *name = nullptr,
16 const char *title = nullptr);
18
20 virtual FCSReturnCode
21 simulate_hit(Hit &hit, TFCSSimulationState &simulstate,
22 const TFCSTruthState *truth,
23 const TFCSExtrapolationState *extrapol) override;
24
27 bool Initialize(TH1 *hist);
28
29 TH1 *getHistogram() const { return m_hist; };
30
31 virtual void Print(Option_t *option = "") const override;
32 virtual void setMinWeight(float minWeight) { m_minWeight = minWeight; }
33 virtual void setMaxWeight(float maxWeight) { m_maxWeight = maxWeight; }
34 virtual float getMinWeight() const override;
35 virtual float getMaxWeight() const override;
36
37protected:
40 TH1 *m_hist{nullptr};
41 float m_minWeight{-1.};
42 float m_maxWeight{-1.};
43
44 ClassDefOverride(TFCSHistoLateralShapeWeight,
45 2) // TFCSHistoLateralShapeWeight
46};
47
48#endif
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
virtual FCSReturnCode simulate_hit(Hit &hit, TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) override
weight the energy of one hit in order to generate fluctuations
virtual void setMaxWeight(float maxWeight)
virtual void Print(Option_t *option="") const override
bool Initialize(TH1 *hist)
Init from histogram.
TFCSHistoLateralShapeWeight(const char *name=nullptr, const char *title=nullptr)
virtual float getMinWeight() const override
Get minimum and maximum value of weight for hit energy reweighting.
TH1 * m_hist
Histogram to be used for the shape simulation The histogram x-axis should be in dR^2=deta^2+dphi^2.
virtual float getMaxWeight() const override
virtual void setMinWeight(float minWeight)
TFCSLateralShapeParametrizationHitBase(const char *name=nullptr, const char *title=nullptr)