#include <LowEnergyFastSimModel.h>
Definition at line 13 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 25 of file LowEnergyFastSimModel.cc.
26 fastStep.KillPrimaryTrack();
27 fastStep.SetPrimaryTrackPathLength(0.0);
28 fastStep.SetTotalEnergyDeposited(fastTrack.GetPrimaryTrack()->GetKineticEnergy());
30 const G4double
energy = fastTrack.GetPrimaryTrack()->GetKineticEnergy();
31 const G4ThreeVector&
pos = fastTrack.GetPrimaryTrack()->GetPosition();
35 const G4ThreeVector& momDir = fastTrack.GetPrimaryTrack()->GetMomentumDirection();
36 const G4ThreeVector& ortho = momDir.orthogonal();
37 const G4ThreeVector&
cross = momDir.
cross(ortho);
40 GFlashEnergySpot spot;
41 spot.SetEnergy(inPointEnergy);
42 spot.SetPosition(
pos);
46 G4double etail =
energy - inPointEnergy;
47 const G4int nspots =
int(etail) + 1;
48 for (G4int
i = 0;
i < nspots; ++
i) {
52 const G4double
phi = CLHEP::twopi * G4UniformRand();
55 const G4double tailEnergy = etail / nspots;
57 spot.SetEnergy(tailEnergy);
58 spot.SetPosition(tailPos);
References funct::cos(), Basic3DVector< T >::cross(), cross(), HCALHighEnergyHPDFilter_cfi::energy, fHitMaker, LowEnergyFastSimParam::GetInPointEnergyFraction(), LowEnergyFastSimParam::GetRadius(), LowEnergyFastSimParam::GetZ(), mps_fire::i, createfilelist::int, param, phi, CosmicsPD_Skims::radius, funct::sin(), and z.
◆ IsApplicable()
G4bool LowEnergyFastSimModel::IsApplicable |
( |
const G4ParticleDefinition & |
particle | ) |
|
|
override |
◆ ModelTrigger()
G4bool LowEnergyFastSimModel::ModelTrigger |
( |
const G4FastTrack & |
fastTrack | ) |
|
|
override |
◆ fEmax
const G4double LowEnergyFastSimModel::fEmax |
|
private |
◆ fHitMaker
GFlashHitMaker LowEnergyFastSimModel::fHitMaker |
|
private |
◆ fRegion
const G4Envelope* const LowEnergyFastSimModel::fRegion |
|
private |
◆ param
Basic3DVector cross(const Basic3DVector &v) const
Vector product, or "cross" product, with a vector of same type.