- Timestamp:
- Apr 6, 2009, 12:30:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/stopping/src/G4AntiNeutronAnnihilationAtRest.cc
r819 r962 31 31 #include "G4DynamicParticle.hh" 32 32 #include "G4ParticleTypes.hh" 33 #include "G4HadronicProcessStore.hh" 33 34 #include "Randomize.hh" 34 35 #include <string.h> … … 41 42 42 43 G4AntiNeutronAnnihilationAtRest::G4AntiNeutronAnnihilationAtRest(const G4String& processName, 43 G4ProcessType aType) :44 G4ProcessType aType) : 44 45 G4VRestProcess (processName, aType), // initialization 45 46 massPionMinus(G4PionMinus::PionMinus()->GetPDGMass()/GeV), … … 63 64 G4cout << GetProcessName() << " is created "<< G4endl; 64 65 } 65 66 SetProcessSubType(fHadronAtRest); 66 67 pv = new G4GHEKinematicsVector [MAX_SECONDARIES+1]; 67 68 eve = new G4GHEKinematicsVector [MAX_SECONDARIES]; 68 69 gkin = new G4GHEKinematicsVector [MAX_SECONDARIES]; 69 70 71 G4HadronicProcessStore::Instance()->RegisterExtraProcess(this); 70 72 } 71 73 … … 74 76 G4AntiNeutronAnnihilationAtRest::~G4AntiNeutronAnnihilationAtRest() 75 77 { 78 G4HadronicProcessStore::Instance()->DeRegisterExtraProcess(this); 76 79 delete [] pv; 77 80 delete [] eve; … … 79 82 } 80 83 84 void G4AntiNeutronAnnihilationAtRest::PreparePhysicsTable(const G4ParticleDefinition& p) 85 { 86 G4HadronicProcessStore::Instance()->RegisterParticleForExtraProcess(this, &p); 87 } 88 89 void G4AntiNeutronAnnihilationAtRest::BuildPhysicsTable(const G4ParticleDefinition& p) 90 { 91 G4HadronicProcessStore::Instance()->PrintInfo(&p); 92 } 81 93 82 94 // methods............................................................................. … … 89 101 90 102 } 91 103 92 104 // Warning - this method may be optimized away if made "inline" 93 105 G4int G4AntiNeutronAnnihilationAtRest::GetNumberOfSecondaries()
Note: See TracChangeset
for help on using the changeset viewer.