#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 76 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_2022v15_cff::track, twomass, and z.
77 fastStep.KillPrimaryTrack();
78 fastStep.SetPrimaryTrackPathLength(0.0);
79 auto track = fastTrack.GetPrimaryTrack();
82 const G4ThreeVector&
pos =
track->GetPosition();
90 const G4ThreeVector& momDir =
track->GetMomentumDirection();
93 GFlashEnergySpot spot;
94 spot.SetEnergy(inPointEnergy);
95 spot.SetPosition(
pos);
99 const G4double etail =
energy - inPointEnergy;
100 const G4int nspots = etail;
101 const G4double tailEnergy = etail / (nspots + 1);
110 for (G4int
i = 0;
i <= nspots; ++
i) {
114 const G4double
phi = CLHEP::twopi * G4UniformRand();
119 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