3 #include "G4SystemOfUnits.hh" 5 #include "G4ParticleDefinition.hh" 6 #include "G4VParticleChange.hh" 20 G4Track* mytr =
const_cast<G4Track*
>(&
track);
22 if (mytr->GetGlobalTime() / ns > 4990)
24 <<
"going to loose the particle because the GlobalTime is getting close to 5000" << std::endl;
31 G4DynamicParticle* replacementParticle =
50 G4double previousStepSize,
51 G4ForceCondition* condition) {
52 *condition = NotForced;
55 G4Track* mytr =
const_cast<G4Track*
>(&
track);
56 if (
sqrt(
pow(mytr->GetPosition().rho(), 2)) >
68 posini = aTrack->GetPosition();
virtual ~CMSSQLoopProcessDiscr()
CMSSQLoopProcessDiscr(double mass, const G4String &name="SQLooper", G4ProcessType type=fUserDefined)
virtual void StartTracking(G4Track *aTrack)
virtual G4double GetMeanFreePath(const G4Track &, G4double, G4ForceCondition *)
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
const double intLength[kNumberCalorimeter]
static CMSAntiSQ * AntiSQ(double mass)
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
G4ParticleChange * fParticleChange
Power< A, B >::type pow(const A &a, const B &b)