CMS 3D CMS Logo

List of all members | Public Member Functions
LowEnergyFastSimParam Class Reference

#include <LowEnergyFastSimParam.h>

Public Member Functions

G4double GetInPointEnergyFraction (G4double energy) const
 
G4double GetRadius (G4double energy) const
 
G4double GetZ () const
 

Detailed Description

Definition at line 7 of file LowEnergyFastSimParam.h.

Member Function Documentation

◆ GetInPointEnergyFraction()

G4double LowEnergyFastSimParam::GetInPointEnergyFraction ( G4double  energy) const
inline

Definition at line 9 of file LowEnergyFastSimParam.h.

9  {
10  const G4double e2 = energy * energy;
11  const G4double e3 = e2 * energy;
12  return -6.42310317e-07 * e3 + 1.96988997e-04 * e2 - 2.14064635e-02 * energy + 1.02186764e+00;
13  }

References SiPixelPhase1Clusters_cfi::e3, and HCALHighEnergyHPDFilter_cfi::energy.

Referenced by LowEnergyFastSimModel::DoIt().

◆ GetRadius()

G4double LowEnergyFastSimParam::GetRadius ( G4double  energy) const
inline

Definition at line 15 of file LowEnergyFastSimParam.h.

15  {
16  constexpr const G4double r1 = 156.52094133;
17  constexpr const G4double r2 = -1.02220543;
18  const G4double r0 = r1 + r2 * energy;
19  const G4double erand = G4UniformRand();
20 
21  return sqrt(r0 / erand - r0);
22  }

References HCALHighEnergyHPDFilter_cfi::energy, diffTwoXMLs::r1, diffTwoXMLs::r2, and mathSSE::sqrt().

Referenced by LowEnergyFastSimModel::DoIt().

◆ GetZ()

G4double LowEnergyFastSimParam::GetZ ( void  ) const
inline

Definition at line 24 of file LowEnergyFastSimParam.h.

24  {
25  constexpr const G4double alpha = 0.02211515;
26  constexpr const G4double t = 0.66968625;
27  const G4double erand = G4UniformRand();
28 
29  return -log(erand) / alpha + t;
30  }

References zMuMuMuonUserData::alpha, dqm-mbProfile::log, and submitPVValidationJobs::t.

Referenced by LowEnergyFastSimModel::DoIt().

zMuMuMuonUserData.alpha
alpha
zGenParticlesMatch = cms.InputTag(""),
Definition: zMuMuMuonUserData.py:9
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
diffTwoXMLs.r2
r2
Definition: diffTwoXMLs.py:73
SiPixelPhase1Clusters_cfi.e3
e3
Definition: SiPixelPhase1Clusters_cfi.py:9
diffTwoXMLs.r1
r1
Definition: diffTwoXMLs.py:53
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644