Ignore:
Timestamp:
Apr 6, 2009, 12:30:29 PM (15 years ago)
Author:
garnier
Message:

update processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/stopping/src/G4AntiProtonAnnihilationAtRest.cc

    r819 r962  
    3232#include "G4ParticleTypes.hh"
    3333#include "Randomize.hh"
     34#include "G4HadronicProcessStore.hh"
    3435#include <string.h>
    3536#include <cmath>
     
    6364    G4cout << GetProcessName() << " is created "<< G4endl;
    6465  }
    65 
     66  SetProcessSubType(fHadronAtRest);
    6667  pv   = new G4GHEKinematicsVector [MAX_SECONDARIES+1];
    6768  eve  = new G4GHEKinematicsVector [MAX_SECONDARIES];
    6869  gkin = new G4GHEKinematicsVector [MAX_SECONDARIES];
    6970
     71  G4HadronicProcessStore::Instance()->RegisterExtraProcess(this);
    7072}
    7173 
     
    7476G4AntiProtonAnnihilationAtRest::~G4AntiProtonAnnihilationAtRest()
    7577{
     78  G4HadronicProcessStore::Instance()->DeRegisterExtraProcess(this);
    7679  delete [] pv;
    7780  delete [] eve;
     
    7982}
    8083 
     84void G4AntiProtonAnnihilationAtRest::PreparePhysicsTable(const G4ParticleDefinition& p)
     85{
     86  G4HadronicProcessStore::Instance()->RegisterParticleForExtraProcess(this, &p);
     87}
     88
     89void G4AntiProtonAnnihilationAtRest::BuildPhysicsTable(const G4ParticleDefinition& p)
     90{
     91  G4HadronicProcessStore::Instance()->PrintInfo(&p);
     92}
    8193 
    8294// methods.............................................................................
Note: See TracChangeset for help on using the changeset viewer.