Ignore:
Timestamp:
Jun 18, 2010, 11:42:07 AM (14 years ago)
Author:
garnier
Message:

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File:
1 edited

Legend:

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

    r1228 r1315  
    2424// ********************************************************************
    2525//
    26 // $Id: G4HadronHElasticPhysics.cc,v 1.7 2009/11/28 17:35:01 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-03 $
     26// $Id: G4HadronHElasticPhysics.cc,v 1.9 2010/06/03 14:28:32 vnivanch Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2828//
    2929//---------------------------------------------------------------------------
     
    3636// 21.03.07 (V.Ivanchenko) Use G4BGGNucleonElasticXS and G4BGGPionElasticXS;
    3737//                         Reduce thresholds for HE and Q-models to zero
     38// 03.06.2010 V.Ivanchenko cleanup constructors and ConstructProcess method
    3839//
    3940//----------------------------------------------------------------------------
    4041//
     42// CHIPS for sampling scattering for p and n
     43// Glauber model for samplimg of high energy pi+- (E > 1GeV)
     44// LHEP sampling model for the other particle
     45// BBG cross sections for p, n and pi+-
     46// LHEP cross sections for other particles
    4147
    4248#include "G4HadronHElasticPhysics.hh"
     
    5460#include "G4CHIPSElastic.hh"
    5561#include "G4ElasticHadrNucleusHE.hh"
    56 #include "G4NeutronHPElastic.hh"
    57 #include "G4UElasticCrossSection.hh"
    5862#include "G4BGGNucleonElasticXS.hh"
    5963#include "G4BGGPionElasticXS.hh"
    6064#include "G4NeutronElasticXS.hh"
    6165
    62 G4HadronHElasticPhysics::G4HadronHElasticPhysics(G4int ver, G4bool hp,
    63                                                  const G4String& type)
    64   : G4VPhysicsConstructor("HElastic"), verbose(ver),
    65     hpFlag(hp), wasActivated(false), subtype(type)
     66G4HadronHElasticPhysics::G4HadronHElasticPhysics(G4int ver)
     67  : G4VPhysicsConstructor("hElasticWEL_CHIPS"), verbose(ver),
     68    wasActivated(false)
    6669{
    67   if(verbose > 1) G4cout << "### HadronHElasticPhysics" << G4endl;
     70  if(verbose > 1) {
     71    G4cout << "### G4HadronHElasticPhysics: " << GetPhysicsName()
     72           << G4endl;
     73  }
     74}
     75
     76G4HadronHElasticPhysics::G4HadronHElasticPhysics(G4int ver, G4bool,
     77                                                 const G4String&)
     78  : G4VPhysicsConstructor("hElasticWEL_CHIPS"), verbose(ver),
     79    wasActivated(false)
     80{
     81  if(verbose > 1) {
     82    G4cout << "### G4HadronHElasticPhysics: " << GetPhysicsName()
     83           << G4endl;
     84  }
    6885}
    6986
     
    87104void G4HadronHElasticPhysics::ConstructProcess()
    88105{
    89   if(wasActivated) return;
     106  if(wasActivated) { return; }
    90107  wasActivated = true;
    91108
     
    145162        hel->RegisterMe(he);
    146163      } else {
    147         //hel->AddDataSet(new G4UElasticCrossSection(particle));
    148164        hel->RegisterMe(plep0);
    149165      }
     
    159175      G4ProcessManager* pmanager = particle->GetProcessManager();
    160176      G4WHadronElasticProcess* hel = new G4WHadronElasticProcess();
    161       if(subtype == "QBBC_XGGSN") {
    162         hel->AddDataSet(new G4NeutronElasticXS());
    163       } else {
    164         hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
    165       }
     177      hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
    166178      hel->RegisterMe(chipsn);
    167179
    168       if(hpFlag) {
    169         chipsn->SetMinEnergy(19.5*MeV);
    170         G4NeutronHPElastic* hp = new G4NeutronHPElastic();
    171         hel->RegisterMe(hp);
    172         hel->AddDataSet(new G4NeutronHPElasticData());
    173       }
    174180      pmanager->AddDiscreteProcess(hel);
    175181
Note: See TracChangeset for help on using the changeset viewer.