CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
BgsGenocide.cc
Go to the documentation of this file.
1#include "BaBar.hh"
2#include "BgsGenocide.hh"
3
4//
5// Constructor
6//
7BgsGenocide::BgsGenocide( const G4String &name, G4ProcessType type )
8 : G4VProcess( name, type )
9{;}
10
11
12//
13// Destructor
14//
16
17
18//
19// Kill Kill Kill!!!
20//
22 const G4Track& track,
23 G4double previousStepSize,
24 G4ForceCondition* condition )
25{
26 *condition = NotForced;
27 return 0;
28}
29
30
31//
32// Our victims vanish without a trace
33//
34G4VParticleChange *BgsGenocide::PostStepDoIt( const G4Track &track,
35 const G4Step &step )
36{
37 pParticleChange->Initialize(track);
38
39 pParticleChange->ProposeTrackStatus( fStopAndKill );
40 pParticleChange->SetNumberOfSecondaries( 0 );
41 pParticleChange->ProposeLocalEnergyDeposit( 0 );
42 ClearNumberOfInteractionLengthLeft();
43
44 return pParticleChange;
45}
virtual G4VParticleChange * PostStepDoIt(const G4Track &track, const G4Step &step)
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
virtual ~BgsGenocide()
BgsGenocide(const G4String &name="BgsGenocide", G4ProcessType type=fUserDefined)
Definition BgsGenocide.cc:7