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

cvs update phys-lists-V09-03-03

Location:
trunk/source/physics_lists/builders
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/physics_lists/builders/include/G4FTFBuilder.hh

    r1228 r1273  
    2424// ********************************************************************
    2525//
    26 // $Id: G4FTFBuilder.hh,v 1.1 2009/10/04 16:29:54 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-03 $
     26// $Id: G4FTFBuilder.hh,v 1.2 2009/12/29 17:54:25 vnivanch Exp $
     27// GEANT4 tag $Name: phys-lists-V09-03-03 $
    2828//
    2929//---------------------------------------------------------------------------
     
    4545class G4FTFModel;
    4646class G4ExcitedStringDecay;
     47class G4PreCompoundModel;
    4748
    4849class G4FTFBuilder : public G4VHadronModelBuilder
     
    5051public:
    5152
    52   G4FTFBuilder(const G4String& name ="");
     53  G4FTFBuilder(const G4String& name ="",
     54               G4PreCompoundModel* p = 0);
    5355
    5456  virtual ~G4FTFBuilder();
     
    6668  G4FTFModel*            theStringModel;
    6769  G4ExcitedStringDecay*  theStringDecay;
    68 
     70  G4PreCompoundModel*    thePreCompound;
    6971};
    7072
  • trunk/source/physics_lists/builders/include/G4QGSBuilder.hh

    r1228 r1273  
    2424// ********************************************************************
    2525//
    26 // $Id: G4QGSBuilder.hh,v 1.1 2009/10/04 16:29:54 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-03 $
     26// $Id: G4QGSBuilder.hh,v 1.2 2009/12/29 17:54:25 vnivanch Exp $
     27// GEANT4 tag $Name: phys-lists-V09-03-03 $
    2828//
    2929//---------------------------------------------------------------------------
     
    4747class G4ExcitedStringDecay;
    4848class G4QuasiElasticChannel;
     49class G4PreCompoundModel;
    4950class G4ProjectileDiffractiveChannel;
    5051
     
    5354public:
    5455
    55   G4QGSBuilder(const G4String& name ="",
     56  G4QGSBuilder(const G4String& name ="",
     57               G4PreCompoundModel* p = 0,
    5658               G4bool quasiElastic=true,
    5759               G4bool projectileDiffraction=false);
     
    7577
    7678  G4ProjectileDiffractiveChannel* theProjectileDiffraction;
     79  G4PreCompoundModel* thePreCompound;
    7780
    7881  G4bool quasielFlag;
  • trunk/source/physics_lists/builders/src/G4FTFBuilder.cc

    r1228 r1273  
    2424// ********************************************************************
    2525//
    26 // $Id: G4FTFBuilder.cc,v 1.2 2009/11/25 19:33:18 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-03 $
     26// $Id: G4FTFBuilder.cc,v 1.3 2009/12/29 17:54:25 vnivanch Exp $
     27// GEANT4 tag $Name: phys-lists-V09-03-03 $
    2828//
    2929//---------------------------------------------------------------------------
     
    4646#include "G4LundStringFragmentation.hh"
    4747#include "G4BinaryCascade.hh"
     48#include "G4PreCompoundModel.hh"
    4849
    4950
    50 G4FTFBuilder::G4FTFBuilder(const G4String& aName) : G4VHadronModelBuilder(aName)
     51G4FTFBuilder::G4FTFBuilder(const G4String& aName, G4PreCompoundModel* p)
     52  : G4VHadronModelBuilder(aName), thePreCompound(p)
    5153{}
    5254
     
    5456{
    5557  delete theStringDecay;
    56   //delete theStringModel; // is deleted by the model
    5758}                                     
    5859
     
    6566  theFTFModel->SetHighEnergyGenerator(theStringModel);
    6667
    67   if(GetName() == "FTFP") {
    68     theFTFModel->SetTransport(new G4GeneratorPrecompoundInterface());
    69   } else if(GetName() == "FTFC") {
     68  if(!thePreCompound) {
     69    thePreCompound = new G4PreCompoundModel(new G4ExcitationHandler());
     70  }
     71
     72  if(GetName() == "FTFC") {
    7073    theFTFModel->SetTransport(new G4QStringChipsParticleLevelInterface());
     74
    7175  } else if(GetName() == "FTFB") {
    72     theFTFModel->SetTransport(new G4BinaryCascade());
     76    G4BinaryCascade* bic = new G4BinaryCascade();
     77    bic->SetDeExcitation(thePreCompound);
     78    theFTFModel->SetTransport(bic);
     79
    7380  } else {
    74     theFTFModel->SetTransport(new G4GeneratorPrecompoundInterface());
     81    G4GeneratorPrecompoundInterface* pint = new G4GeneratorPrecompoundInterface();
     82    pint->SetDeExcitation(thePreCompound);
     83    theFTFModel->SetTransport(pint);
    7584  }
    7685
  • 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.