#include <LowEnergyFastSimModel.h>
Definition at line 18 of file LowEnergyFastSimModel.h.
◆ LowEnergyFastSimModel()
LowEnergyFastSimModel::LowEnergyFastSimModel |
( |
const G4String & |
name, |
|
|
G4Region * |
region, |
|
|
const edm::ParameterSet & |
parSet |
|
) |
| |
◆ DoIt()
void LowEnergyFastSimModel::DoIt |
( |
const G4FastTrack & |
fastTrack, |
|
|
G4FastStep & |
fastStep |
|
) |
| |
|
override |
Definition at line 73 of file LowEnergyFastSimModel.cc.
References funct::cos(), HCALHighEnergyHPDFilter_cfi::energy, fHitMaker, fParam, fPositron, fTailPos, LowEnergyFastSimParam::GetInPointEnergyFraction(), LowEnergyFastSimParam::GetRadius(), LowEnergyFastSimParam::GetZ(), mps_fire::i, phi, alignCSCRings::r, scaleFactor, funct::sin(), HLT_2023v12_cff::track, twomass, and z.
74 fastStep.KillPrimaryTrack();
75 fastStep.SetPrimaryTrackPathLength(0.0);
76 auto track = fastTrack.GetPrimaryTrack();
79 const G4ThreeVector&
pos =
track->GetPosition();
87 const G4ThreeVector& momDir =
track->GetMomentumDirection();
90 GFlashEnergySpot spot;
91 spot.SetEnergy(inPointEnergy);
92 spot.SetPosition(
pos);
96 const G4double etail =
energy - inPointEnergy;
97 const G4int nspots = etail;
98 const G4double tailEnergy = etail / (nspots + 1);
107 for (G4int
i = 0;
i <= nspots; ++
i) {
111 const G4double
phi = CLHEP::twopi * G4UniformRand();
116 spot.SetEnergy(tailEnergy);
const G4ParticleDefinition * fPositron
constexpr G4double twomass
Sin< T >::type sin(const T &t)
LowEnergyFastSimParam fParam
G4double GetInPointEnergyFraction(G4double energy) const
Cos< T >::type cos(const T &t)
constexpr G4double scaleFactor
G4double GetRadius(G4double energy) const
◆ IsApplicable()
G4bool LowEnergyFastSimModel::IsApplicable |
( |
const G4ParticleDefinition & |
particle | ) |
|
|
override |
◆ ModelTrigger()
G4bool LowEnergyFastSimModel::ModelTrigger |
( |
const G4FastTrack & |
fastTrack | ) |
|
|
override |
◆ fCheck
G4bool LowEnergyFastSimModel::fCheck |
|
private |
◆ fEmax
G4double LowEnergyFastSimModel::fEmax |
|
private |
◆ fHitMaker
GFlashHitMaker LowEnergyFastSimModel::fHitMaker |
|
private |
◆ fMaterial
const G4Material* LowEnergyFastSimModel::fMaterial |
|
private |
◆ fParam
◆ fPositron
const G4ParticleDefinition* LowEnergyFastSimModel::fPositron |
|
private |
◆ fRegion
const G4Envelope* LowEnergyFastSimModel::fRegion |
|
private |
◆ fTailPos
G4ThreeVector LowEnergyFastSimModel::fTailPos |
|
private |
◆ fTrackingAction