Ignore:
Timestamp:
May 27, 2010, 10:22:31 AM (14 years ago)
Author:
garnier
Message:

cvs update phys-lists-V09-03-03

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/physics_lists/builders/src/G4QGSBuilder.cc

    r1228 r1273  
    2424// ********************************************************************
    2525//
    26 // $Id: G4QGSBuilder.cc,v 1.1 2009/10/04 16:29:54 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-03 $
     26// $Id: G4QGSBuilder.cc,v 1.2 2009/12/29 17:54:25 vnivanch Exp $
     27// GEANT4 tag $Name: phys-lists-V09-03-03 $
    2828//
    2929//---------------------------------------------------------------------------
     
    4848#include "G4ExcitedStringDecay.hh"
    4949#include "G4BinaryCascade.hh"
     50#include "G4PreCompoundModel.hh"
     51#include "G4ExcitationHandler.hh"
    5052
    5153
    52 G4QGSBuilder::G4QGSBuilder(const G4String& aName, G4bool quasiel, G4bool diff)
    53   : G4VHadronModelBuilder(aName), quasielFlag(quasiel), diffFlag(diff)
     54G4QGSBuilder::G4QGSBuilder(const G4String& aName, G4PreCompoundModel* p,
     55                           G4bool quasiel, G4bool diff)
     56  : G4VHadronModelBuilder(aName), thePreCompound(p),
     57    quasielFlag(quasiel), diffFlag(diff)
    5458{
    5559  theProjectileDiffraction = 0;
     
    8286  }
    8387
    84   if(GetName() == "QGSP") {
    85     theQGSModel->SetTransport(new G4GeneratorPrecompoundInterface());
    86   } else if(GetName() == "QGSC") {
     88  if(!thePreCompound) {
     89    thePreCompound = new G4PreCompoundModel(new G4ExcitationHandler());
     90  }
     91
     92  if(GetName() == "QGSC") {
    8793    theQGSModel->SetTransport(new G4QStringChipsParticleLevelInterface());
     94
    8895  } else if(GetName() == "QGSB") {
    89     theQGSModel->SetTransport(new G4BinaryCascade());
     96    G4BinaryCascade* bic = new G4BinaryCascade();
     97    bic->SetDeExcitation(thePreCompound);
     98    theQGSModel->SetTransport(bic);
     99
    90100  } else {
    91     theQGSModel->SetTransport(new G4GeneratorPrecompoundInterface());
     101    G4GeneratorPrecompoundInterface* pint = new G4GeneratorPrecompoundInterface();
     102    pint->SetDeExcitation(thePreCompound);
     103    theQGSModel->SetTransport(pint);
    92104  }
    93105
Note: See TracChangeset for help on using the changeset viewer.