ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
ISF
ISF_FastCaloSim
ISF_FastCaloSimEvent
ISF_FastCaloSimEvent
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
8
#include "
ISF_FastCaloSimEvent/TFCSLateralShapeParametrizationHitBase.h
"
9
10
#include "TH2.h"
11
12
class
TFCSLateralShapeParametrizationHitNumberFromE
13
:
public
TFCSLateralShapeParametrizationHitBase
{
14
public
:
27
TFCSLateralShapeParametrizationHitNumberFromE
(
const
char
*name =
nullptr
,
28
const
char
*title =
nullptr
,
29
double
stochastic = 0.1,
30
double
constant = 0);
31
32
TFCSLateralShapeParametrizationHitNumberFromE
(
const
char
*name,
33
const
char
*title,
34
double
stochastic,
35
double
stochastic_hadron,
36
double
constant);
37
40
double
41
get_sigma2_fluctuation
(
TFCSSimulationState
&simulstate,
42
const
TFCSTruthState
*truth,
43
const
TFCSExtrapolationState
*extrapol)
const override
;
44
45
int
get_number_of_hits
(
TFCSSimulationState
&simulstate,
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
53
protected
:
54
bool
compare
(
const
TFCSParametrizationBase
&
ref
)
const
;
55
56
private
:
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
61
double
m_stochastic
;
62
double
m_stochastic_hadron
;
63
double
m_constant
;
64
65
ClassDefOverride(
TFCSLateralShapeParametrizationHitNumberFromE
,
66
2)
// TFCSLateralShapeParametrizationHitNumberFromE
67
};
68
69
#endif
ref
const std::regex ref(r_ef)
TFCSLateralShapeParametrizationHitBase.h
TFCSExtrapolationState
Definition
TFCSExtrapolationState.h:13
TFCSLateralShapeParametrizationHitBase::TFCSLateralShapeParametrizationHitBase
TFCSLateralShapeParametrizationHitBase(const char *name=nullptr, const char *title=nullptr)
Definition
TFCSLateralShapeParametrizationHitBase.cxx:15
TFCSLateralShapeParametrizationHitNumberFromE::m_constant
double m_constant
Definition
TFCSLateralShapeParametrizationHitNumberFromE.h:63
TFCSLateralShapeParametrizationHitNumberFromE::operator==
virtual bool operator==(const TFCSParametrizationBase &ref) const override
The == operator compares the content of instances.
Definition
TFCSLateralShapeParametrizationHitNumberFromE.cxx:86
TFCSLateralShapeParametrizationHitNumberFromE::get_number_of_hits
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...
Definition
TFCSLateralShapeParametrizationHitNumberFromE.cxx:71
TFCSLateralShapeParametrizationHitNumberFromE::get_sigma2_fluctuation
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.
Definition
TFCSLateralShapeParametrizationHitNumberFromE.cxx:39
TFCSLateralShapeParametrizationHitNumberFromE::Print
void Print(Option_t *option="") const override
Definition
TFCSLateralShapeParametrizationHitNumberFromE.cxx:123
TFCSLateralShapeParametrizationHitNumberFromE::m_stochastic
double m_stochastic
Definition
TFCSLateralShapeParametrizationHitNumberFromE.h:61
TFCSLateralShapeParametrizationHitNumberFromE::TFCSLateralShapeParametrizationHitNumberFromE
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....
Definition
TFCSLateralShapeParametrizationHitNumberFromE.cxx:18
TFCSLateralShapeParametrizationHitNumberFromE::m_stochastic_hadron
double m_stochastic_hadron
Definition
TFCSLateralShapeParametrizationHitNumberFromE.h:62
TFCSLateralShapeParametrizationHitNumberFromE::compare
bool compare(const TFCSParametrizationBase &ref) const
Definition
TFCSLateralShapeParametrizationHitNumberFromE.cxx:99
TFCSParametrizationBase
Definition
TFCSParametrizationBase.h:46
TFCSSimulationState
Definition
TFCSSimulationState.h:32
TFCSTruthState
Definition
TFCSTruthState.h:13
Generated on
for ATLAS Offline Software by
1.17.0