#include <LowEnergyFastSimModel.h>
Definition at line 17 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 46 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, funct::sin(), HLT_2022v11_cff::track, twomass, and z.
47 fastStep.KillPrimaryTrack();
48 fastStep.SetPrimaryTrackPathLength(0.0);
49 auto track = fastTrack.GetPrimaryTrack();
52 const G4ThreeVector&
pos =
track->GetPosition();
60 const G4ThreeVector& momDir =
track->GetMomentumDirection();
63 GFlashEnergySpot spot;
64 spot.SetEnergy(inPointEnergy);
65 spot.SetPosition(
pos);
69 G4double etail =
energy - inPointEnergy;
70 const G4int nspots = (G4int)(etail) + 1;
71 const G4double tailEnergy = etail / (G4double)nspots;
72 for (G4int
i = 0;
i < nspots; ++
i) {
76 const G4double
phi = CLHEP::twopi * G4UniformRand();
81 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)
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 |
◆ fParam
◆ fPositron
const G4ParticleDefinition* LowEnergyFastSimModel::fPositron |
|
private |
◆ fRegion
const G4Envelope* LowEnergyFastSimModel::fRegion |
|
private |
◆ fTailPos
G4ThreeVector LowEnergyFastSimModel::fTailPos |
|
private |
◆ fTrackingAction