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 8 of file LowEnergyFastSimParam.h.

Member Function Documentation

◆ GetInPointEnergyFraction()

G4double LowEnergyFastSimParam::GetInPointEnergyFraction ( G4double  energy) const
inline

Definition at line 10 of file LowEnergyFastSimParam.h.

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

Referenced by LowEnergyFastSimModel::DoIt().

10  {
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  }

◆ GetRadius()

G4double LowEnergyFastSimParam::GetRadius ( G4double  energy) const
inline

Definition at line 16 of file LowEnergyFastSimParam.h.

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

Referenced by LowEnergyFastSimModel::DoIt().

16  {
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  }
T sqrt(T t)
Definition: SSEVec.h:19

◆ GetZ()

G4double LowEnergyFastSimParam::GetZ ( void  ) const
inline

Definition at line 23 of file LowEnergyFastSimParam.h.

References alpha, and submitPVValidationJobs::t.

Referenced by LowEnergyFastSimModel::DoIt().

23  {
24  constexpr const G4double alpha = 0.02211515;
25  constexpr const G4double t = 0.66968625;
26  return -G4Log(G4UniformRand()) / alpha + t;
27  }
float alpha
Definition: AMPTWrapper.h:105