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/G4HadronQElasticPhysics.cc

    r1228 r1315  
    2424// ********************************************************************
    2525//
    26 // $Id: G4HadronQElasticPhysics.cc,v 1.7 2008/05/19 10:21:34 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-03 $
     26// $Id: G4HadronQElasticPhysics.cc,v 1.9 2010/06/03 14:28:32 vnivanch Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2828//
    2929//---------------------------------------------------------------------------
     
    3434//
    3535// Modified:
     36// 03.06.2010 V.Ivanchenko cleanup constructors and ConstructProcess method
    3637//
    3738//----------------------------------------------------------------------------
    3839//
     40// CHIPS x-sections and generator (G4QElastic) for n and p
     41// LHEP x-section and generator for the rest
    3942
    4043#include "G4HadronQElasticPhysics.hh"
     
    5457#include "G4IonConstructor.hh"
    5558
    56 G4HadronQElasticPhysics::G4HadronQElasticPhysics(
    57     const G4String& name,  G4int ver)
    58   : G4VPhysicsConstructor(name), verbose(ver), wasActivated(false)
     59G4HadronQElasticPhysics::G4HadronQElasticPhysics(G4int ver)
     60  : G4VPhysicsConstructor("hElasticCHIPS_LHEP"), verbose(ver),
     61    wasActivated(false)
    5962{
    60   if(verbose > 1) G4cout << "### HadronQElasticPhysics" << G4endl;
     63  if(verbose > 1) {
     64    G4cout << "### G4HadronQElasticPhysics: " << GetPhysicsName()
     65           << G4endl;
     66  }
     67  model = 0;
     68}
     69
     70G4HadronQElasticPhysics::G4HadronQElasticPhysics(const G4String&,  G4int ver)
     71  : G4VPhysicsConstructor("hElasticCHIPS_UELAST"), verbose(ver),
     72    wasActivated(false)
     73{
     74  if(verbose > 1) {
     75    G4cout << "### G4HadronQElasticPhysics: " << GetPhysicsName()
     76           << G4endl;
     77  }
    6178  model = 0;
    6279}
     
    8299void G4HadronQElasticPhysics::ConstructProcess()
    83100{
    84   if(wasActivated) return;
     101  if(wasActivated) { return; }
    85102  wasActivated = true;
    86103
    87104  G4double elimit = DBL_MAX;
    88105
    89   if(verbose > 1)
     106  if(verbose > 1) {
    90107    G4cout << "### HadronQElasticPhysics: use HE limit " << elimit << " MeV"
    91108           << G4endl;
    92 
     109  }
    93110  process = new G4QElastic();
    94111
Note: See TracChangeset for help on using the changeset viewer.