Ignore:
Timestamp:
Dec 22, 2010, 3:52:27 PM (14 years ago)
Author:
garnier
Message:

geant4 tag 9.4

Location:
trunk/source/processes/hadronic/models/de_excitation/handler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/de_excitation/handler/include/G4ExcitationHandler.hh

    r1340 r1347  
    2424// ********************************************************************
    2525//
    26 // $Id: G4ExcitationHandler.hh,v 1.12 2010/04/27 14:00:23 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-03-ref-09 $
     26// $Id: G4ExcitationHandler.hh,v 1.13 2010/11/17 16:20:31 vnivanch Exp $
     27// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2828//
    2929// Hadronic Process: Nuclear De-excitations
     
    5959#include "G4ReactionProductVector.hh"
    6060#include "G4ReactionProduct.hh"
    61 #include "G4ParticleTypes.hh"
    62 #include "G4ParticleTable.hh"
    6361// needed for default models
    6462#include "G4Evaporation.hh"
     
    6664#include "G4FermiBreakUp.hh"
    6765#include "G4PhotonEvaporation.hh"
    68 #include "G4IonConstructor.hh"
     66
     67class G4IonTable;
    6968
    7069class G4ExcitationHandler
     
    141140  G4double minExcitation;
    142141
    143   G4ParticleTable *theTableOfParticles;
     142  G4IonTable* theTableOfIons;
    144143
    145144  G4bool MyOwnEvaporationClass;
  • trunk/source/processes/hadronic/models/de_excitation/handler/src/G4ExcitationHandler.cc

    r1340 r1347  
    2424// ********************************************************************
    2525//
    26 // $Id: G4ExcitationHandler.cc,v 1.39 2010/05/18 15:46:11 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-03-ref-09 $
     26// $Id: G4ExcitationHandler.cc,v 1.40 2010/11/17 16:20:38 vnivanch Exp $
     27// GEANT4 tag $Name: geant4-09-04-ref-00 $
    2828//
    2929// Hadronic Process: Nuclear De-excitations
     
    6262#include "G4LorentzVector.hh"
    6363#include "G4NistManager.hh"
     64#include "G4ParticleTable.hh"
     65#include "G4IonTable.hh"
     66#include "G4IonConstructor.hh"
     67#include "G4ParticleTypes.hh"
     68
    6469#include <list>
    6570
     
    7075  maxZForFermiBreakUp(9),maxAForFermiBreakUp(17),minEForMultiFrag(4.0*GeV),
    7176  //  maxZForFermiBreakUp(9),maxAForFermiBreakUp(17),minEForMultiFrag(3.0*MeV),
    72   //maxZForFermiBreakUp(1),maxAForFermiBreakUp(1),minEForMultiFrag(4.0*GeV),
    7377  minExcitation(CLHEP::keV),
    7478  MyOwnEvaporationClass(true), MyOwnMultiFragmentationClass(true),MyOwnFermiBreakUpClass(true),
    7579  MyOwnPhotonEvaporationClass(true),OPTxs(3),useSICB(false)
    7680{                                                                         
    77   theTableOfParticles = G4ParticleTable::GetParticleTable();
     81  theTableOfIons = G4ParticleTable::GetParticleTable()->GetIonTable();
    7882 
    7983  theEvaporation = new G4Evaporation;
     
    335339        theKindOfFragment = G4Alpha::AlphaDefinition();;
    336340      } else {
    337         theKindOfFragment = theTableOfParticles->FindIon(theFragmentZ,theFragmentA,0,theFragmentZ);
     341        theKindOfFragment =
     342          theTableOfIons->GetIon(theFragmentZ,theFragmentA,0.0);
    338343      }
    339344      if (theKindOfFragment != 0)
     
    350355  return theReactionProductVector;
    351356}
    352 
    353 
    354357
    355358G4ReactionProductVector *
     
    399402      theKindOfFragment = theAlpha;
    400403    } else {
    401       theKindOfFragment = theTableOfParticles->FindIon(theFragmentZ,theFragmentA,0,theFragmentZ);
     404      theKindOfFragment =
     405        theTableOfIons->GetIon(theFragmentZ,theFragmentA,0.0);
    402406    }
    403407    if (theKindOfFragment != 0)
     
    407411        theNew->SetTotalEnergy(theFragmentMomentum.e());
    408412        theNew->SetFormationTime((*i)->GetCreationTime());
    409 #ifdef PRECOMPOUND_TEST
    410         theNew->SetCreatorModel((*i)->GetCreatorModel());
    411 #endif
    412413        theReactionProductVector->push_back(theNew);
    413414      }
     
    458459    ProductsEnergy += tmp.e();
    459460    ProductsMomentum += tmp.vect();
    460     ProductsA += static_cast<G4int>((*h)->GetA());
    461     ProductsZ += static_cast<G4int>((*h)->GetZ());
     461    ProductsA += (*h)->GetA_asInt();
     462    ProductsZ += (*h)->GetZ_asInt();
    462463  }
    463464 
    464   if (ProductsA != theInitialState.GetA()) {
     465  if (ProductsA != theInitialState.GetA_asInt()) {
    465466    G4cout << "!!!!!!!!!! Baryonic Number Conservation Violation !!!!!!!!!!" << G4endl;
    466467    G4cout << "G4ExcitationHandler.cc: Barionic Number Conservation test for deexcitation fragments"
    467468           << G4endl;
    468     G4cout << "Initial A = " << theInitialState.GetA()
     469    G4cout << "Initial A = " << theInitialState.GetA_asInt()
    469470           << "   Fragments A = " << ProductsA << "   Diference --> "
    470471           << theInitialState.GetA() - ProductsA << G4endl;
    471472  }
    472   if (ProductsZ != theInitialState.GetZ()) {
     473  if (ProductsZ != theInitialState.GetZ_asInt()) {
    473474    G4cout << "!!!!!!!!!! Charge Conservation Violation !!!!!!!!!!" << G4endl;
    474475    G4cout << "G4ExcitationHandler.cc: Charge Conservation test for deexcitation fragments"
Note: See TracChangeset for help on using the changeset viewer.