ATLAS Offline Software
Loading...
Searching...
No Matches
TFCSLateralShapeParametrizationHitNumberFromE.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 TFCSLateralShapeParametrizationHitNumberFromE_h
6#define TFCSLateralShapeParametrizationHitNumberFromE_h
7
9
10#include "TH2.h"
11
14public:
27 TFCSLateralShapeParametrizationHitNumberFromE(const char *name = nullptr,
28 const char *title = nullptr,
29 double stochastic = 0.1,
30 double constant = 0);
31
33 const char *title,
34 double stochastic,
35 double stochastic_hadron,
36 double constant);
37
40 double
42 const TFCSTruthState *truth,
43 const TFCSExtrapolationState *extrapol) const override;
44
46 const TFCSTruthState *truth,
47 const TFCSExtrapolationState *extrapol) const override;
48
49 virtual bool operator==(const TFCSParametrizationBase &ref) const override;
50
51 void Print(Option_t *option = "") const override;
52
53protected:
54 bool compare(const TFCSParametrizationBase &ref) const;
55
56private:
57 // Information for the fluctuation terms
58 // The variation is calculated as:
59 // sigma^2=[m_stochastic/sqrt(E/GeV)]^2 + [m_constant +
60 // m_stochastic_hadron/sqrt(E/GeV)]^2
63 double m_constant;
64
66 2) // TFCSLateralShapeParametrizationHitNumberFromE
67};
68
69#endif
const boost::regex ref(r_ef)
TFCSLateralShapeParametrizationHitBase(const char *name=nullptr, const char *title=nullptr)
virtual bool operator==(const TFCSParametrizationBase &ref) const override
The == operator compares the content of instances.
int get_number_of_hits(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const override
Call get_number_of_hits() only once per shower simulation, as it could be calculated with random numb...
double get_sigma2_fluctuation(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const override
Give the effective size sigma^2 of the fluctuations from the stochastic and constant term.
TFCSLateralShapeParametrizationHitNumberFromE(const char *name=nullptr, const char *title=nullptr, double stochastic=0.1, double constant=0)
LAr: 10.1%/sqrt(E) stochastic=0.101; constant=0.002; HadEC: 21.4%/sqrt(E) stochastic=0....