#include <LowEnergyFastSimModel.h>
Definition at line 16 of file LowEnergyFastSimModel.h.
LowEnergyFastSimModel::LowEnergyFastSimModel |
( |
const G4String & |
name, |
|
|
G4Region * |
region, |
|
|
const edm::ParameterSet & |
parSet |
|
) |
| |
void LowEnergyFastSimModel::DoIt |
( |
const G4FastTrack & |
fastTrack, |
|
|
G4FastStep & |
fastStep |
|
) |
| |
|
override |
Definition at line 43 of file LowEnergyFastSimModel.cc.
References funct::cos(), relval_parameters_module::energy, fHitMaker, fParam, fTailPos, LowEnergyFastSimParam::GetInPointEnergyFraction(), LowEnergyFastSimParam::GetRadius(), LowEnergyFastSimParam::GetZ(), mps_fire::i, phi, alignCSCRings::r, funct::sin(), twomass, and z.
44 fastStep.KillPrimaryTrack();
45 fastStep.SetPrimaryTrackPathLength(0.0);
46 G4double
energy = fastTrack.GetPrimaryTrack()->GetKineticEnergy();
48 const G4ThreeVector& pos = fastTrack.GetPrimaryTrack()->GetPosition();
53 if (-11 == fastTrack.GetPrimaryTrack()->GetDefinition()->GetPDGEncoding())
56 const G4ThreeVector& momDir = fastTrack.GetPrimaryTrack()->GetMomentumDirection();
59 GFlashEnergySpot spot;
60 spot.SetEnergy(inPointEnergy);
61 spot.SetPosition(pos);
65 G4double etail = energy - inPointEnergy;
66 const G4int nspots = (G4int)(etail) + 1;
67 const G4double tailEnergy = etail / (G4double)nspots;
68 for (G4int
i = 0;
i < nspots; ++
i) {
72 const G4double
phi = CLHEP::twopi * G4UniformRand();
77 spot.SetEnergy(tailEnergy);
G4double GetRadius(G4double energy) const
constexpr G4double twomass
Sin< T >::type sin(const T &t)
LowEnergyFastSimParam fParam
Cos< T >::type cos(const T &t)
G4double GetInPointEnergyFraction(G4double energy) const
G4bool LowEnergyFastSimModel::IsApplicable |
( |
const G4ParticleDefinition & |
particle | ) |
|
|
override |
G4bool LowEnergyFastSimModel::ModelTrigger |
( |
const G4FastTrack & |
fastTrack | ) |
|
|
override |
G4bool LowEnergyFastSimModel::fCheck |
|
private |
G4double LowEnergyFastSimModel::fEmax |
|
private |
GFlashHitMaker LowEnergyFastSimModel::fHitMaker |
|
private |
const G4Envelope* LowEnergyFastSimModel::fRegion |
|
private |
G4ThreeVector LowEnergyFastSimModel::fTailPos |
|
private |