Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/incl/src/G4AblaEvaporation.cc

    r962 r1340  
    2424// ********************************************************************
    2525//
    26 // $Id: G4AblaEvaporation.cc,v 1.4 2008/10/24 21:07:40 dennis Exp $
     26// $Id: G4AblaEvaporation.cc,v 1.6 2010/10/26 02:47:59 kaitanie Exp $
    2727//
    2828#include <numeric>
     
    8282  hazard->igraine[17] = 33759;
    8383  hazard->igraine[18] = 13227;
     84
     85  G4VarNtp *evaporationResult = new G4VarNtp();
     86  G4Volant *volant = new G4Volant();
     87
     88  // Initialize evaporation.
     89  abla = new G4Abla(hazard, volant, evaporationResult);
     90  abla->initEvapora();
    8491}
    8592
     
    108115}
    109116
    110 G4FragmentVector * G4AblaEvaporation::BreakItUp(const G4Fragment &theNucleus) {
    111  
    112 
    113   G4VarNtp *varntp = new G4VarNtp();
    114   G4Volant *volant = new G4Volant();
    115 
    116   G4Abla *abla = new G4Abla(hazard, volant, varntp);
    117   G4cout <<"Initializing evaporation..." << G4endl;
    118   abla->initEvapora();
    119   G4cout <<"Initialization complete!" << G4endl;
    120  
    121   G4double nucleusA = theNucleus.GetA();
    122   G4double nucleusZ = theNucleus.GetZ();
     117G4FragmentVector * G4AblaEvaporation::BreakItUp(const G4Fragment &theNucleus) { 
     118  G4int nucleusA = theNucleus.GetA_asInt();
     119  G4int nucleusZ = theNucleus.GetZ_asInt();
    123120  G4double nucleusMass = G4NucleiProperties::GetNuclearMass(nucleusA, nucleusZ);
    124121  G4double excitationEnergy = theNucleus.GetExcitationEnergy();
     
    137134
    138135  varntp->ntrack = -1;
    139   varntp->massini = theNucleus.GetA();
    140   varntp->mzini = theNucleus.GetZ();
     136  varntp->massini = theNucleus.GetA_asInt();
     137  varntp->mzini = theNucleus.GetZ_asInt();
    141138
    142139  std::vector<G4DynamicParticle*> cascadeParticles;
Note: See TracChangeset for help on using the changeset viewer.