BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
BgsGenocide.cc
Go to the documentation of this file.
1#include "PhySim/BgsGenocide.hh"
2#include "PhySim/BaBar.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// Kill Kill Kill!!!
19//
21 G4double previousStepSize,
22 G4ForceCondition* condition ) {
23 *condition = NotForced;
24 return 0;
25}
26
27//
28// Our victims vanish without a trace
29//
30G4VParticleChange* BgsGenocide::PostStepDoIt( const G4Track& track, const G4Step& step ) {
31 pParticleChange->Initialize( track );
32
33 pParticleChange->ProposeTrackStatus( fStopAndKill );
34 pParticleChange->SetNumberOfSecondaries( 0 );
35 pParticleChange->ProposeLocalEnergyDeposit( 0 );
36 ClearNumberOfInteractionLengthLeft();
37
38 return pParticleChange;
39}
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