/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Simulation/BOOST/PhySim/PhySim-00-00-10/src/BgsGenocide.cc

Go to the documentation of this file.
00001 #include "BaBar.hh"
00002 #include "BgsGenocide.hh"
00003 
00004 //
00005 // Constructor
00006 //
00007 BgsGenocide::BgsGenocide( const G4String &name, G4ProcessType type )
00008         : G4VProcess( name, type )
00009 {;}
00010 
00011 
00012 //
00013 // Destructor
00014 //
00015 BgsGenocide::~BgsGenocide() {;}
00016 
00017 
00018 //
00019 // Kill Kill Kill!!!
00020 //
00021 G4double BgsGenocide::PostStepGetPhysicalInteractionLength( 
00022                                const G4Track& track,
00023                                G4double   previousStepSize,
00024                                G4ForceCondition* condition )
00025 {
00026         *condition = NotForced;
00027         return 0;
00028 }
00029 
00030 
00031 //
00032 // Our victims vanish without a trace
00033 //
00034 G4VParticleChange *BgsGenocide::PostStepDoIt( const G4Track &track,
00035                                               const G4Step &step ) 
00036 {
00037         pParticleChange->Initialize(track);
00038 
00039         pParticleChange->ProposeTrackStatus( fStopAndKill );
00040         pParticleChange->SetNumberOfSecondaries( 0 );
00041         pParticleChange->ProposeLocalEnergyDeposit( 0 );
00042         ClearNumberOfInteractionLengthLeft();
00043 
00044         return pParticleChange;
00045 }

Generated on Tue Nov 29 23:14:29 2016 for BOSS_7.0.2 by  doxygen 1.4.7