src
SimG4Core
Application
interface
LowEnergyFastSimParam.h
Go to the documentation of this file.
1
#ifndef LowEnergyFastSimParam_h
2
#define LowEnergyFastSimParam_h
3
4
#include "G4Types.hh"
5
#include "Randomize.hh"
6
#include "G4Log.hh"
7
8
class
LowEnergyFastSimParam
{
9
public
:
10
G4double
GetInPointEnergyFraction
(G4double
energy
)
const
{
11
const
G4double e2 =
energy
*
energy
;
12
const
G4double
e3
= e2 *
energy
;
13
return
-6.42310317e-07 *
e3
+ 1.96988997e-04 * e2 - 2.14064635e-02 *
energy
+ 1.02186764e+00;
14
}
15
16
G4double
GetRadius
(G4double
energy
)
const
{
17
constexpr
const
G4double
r1
= 156.52094133;
18
constexpr
const
G4double
r2
= -1.02220543;
19
const
G4double r0 =
r1
+
r2
*
energy
;
20
return
std::sqrt
(r0 / G4UniformRand() - r0);
21
}
22
23
G4double
GetZ
()
const
{
24
constexpr
const
G4double
alpha
= 0.02211515;
25
constexpr
const
G4double
t
= 0.66968625;
26
return
-G4Log(G4UniformRand()) /
alpha
+
t
;
27
}
28
};
29
30
#endif
alpha
float alpha
Definition:
AMPTWrapper.h:105
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:651
diffTwoXMLs.r2
r2
Definition:
diffTwoXMLs.py:73
LowEnergyFastSimParam::GetInPointEnergyFraction
G4double GetInPointEnergyFraction(G4double energy) const
Definition:
LowEnergyFastSimParam.h:10
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:19
LowEnergyFastSimParam::GetZ
G4double GetZ() const
Definition:
LowEnergyFastSimParam.h:23
SiPixelPhase1Clusters_cfi.e3
e3
Definition:
SiPixelPhase1Clusters_cfi.py:9
LowEnergyFastSimParam
Definition:
LowEnergyFastSimParam.h:8
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition:
HCALHighEnergyHPDFilter_cfi.py:5
LowEnergyFastSimParam::GetRadius
G4double GetRadius(G4double energy) const
Definition:
LowEnergyFastSimParam.h:16
diffTwoXMLs.r1
r1
Definition:
diffTwoXMLs.py:53
Generated for CMSSW Reference Manual by
1.8.14