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/G4PionMinusAbsorptionAtRest.cc

    r819 r962  
    3232#include "G4ParticleTypes.hh"
    3333#include "Randomize.hh"
     34#include "G4HadronicProcessStore.hh"
    3435#include <string.h>
    3536#include <cmath>
     
    5657    G4cout << GetProcessName() << " is created "<< G4endl;
    5758  }
    58 
     59  SetProcessSubType(fHadronAtRest);
    5960  pv   = new G4GHEKinematicsVector [MAX_SECONDARIES+1];
    6061  eve  = new G4GHEKinematicsVector [MAX_SECONDARIES];
    6162  gkin = new G4GHEKinematicsVector [MAX_SECONDARIES];
    6263
     64  G4HadronicProcessStore::Instance()->RegisterExtraProcess(this);
    6365}
    6466 
     
    6769G4PionMinusAbsorptionAtRest::~G4PionMinusAbsorptionAtRest()
    6870{
     71  G4HadronicProcessStore::Instance()->DeRegisterExtraProcess(this);
    6972  delete [] pv;
    7073  delete [] eve;
     
    7275}
    7376 
     77void G4PionMinusAbsorptionAtRest::PreparePhysicsTable(const G4ParticleDefinition& p)
     78{
     79  G4HadronicProcessStore::Instance()->RegisterParticleForExtraProcess(this, &p);
     80}
     81
     82void G4PionMinusAbsorptionAtRest::BuildPhysicsTable(const G4ParticleDefinition& p)
     83{
     84  G4HadronicProcessStore::Instance()->PrintInfo(&p);
     85}
    7486 
    7587// methods.............................................................................
Note: See TracChangeset for help on using the changeset viewer.