Ignore:
Timestamp:
Sep 30, 2010, 2:47:17 PM (14 years ago)
Author:
garnier
Message:

tag geant4.9.4 beta 1 + modifs locales

Location:
trunk/examples/extended/electromagnetic/TestEm0/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/extended/electromagnetic/TestEm0/src/DetectorConstruction.cc

    r1230 r1337  
    2727//
    2828// $Id: DetectorConstruction.cc,v 1.10 2009/11/14 18:04:20 maire Exp $
    29 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     29// GEANT4 tag $Name: geant4-09-04-beta-01 $
    3030//
    3131//
  • trunk/examples/extended/electromagnetic/TestEm0/src/DetectorMessenger.cc

    r1230 r1337  
    2525//
    2626// $Id: DetectorMessenger.cc,v 1.2 2006/06/29 16:35:48 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm0/src/PhysListEmStandard.cc

    r1230 r1337  
    2626//
    2727// $Id: PhysListEmStandard.cc,v 1.3 2009/11/14 18:04:20 maire Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm0/src/PhysicsList.cc

    r1230 r1337  
    2525//
    2626//
    27 // $Id: PhysicsList.cc,v 1.8 2009/11/17 22:48:26 maire Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// $Id: PhysicsList.cc,v 1.9 2010/03/21 19:07:53 vnivanch Exp $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     
    3535 
    3636#include "PhysListEmStandard.hh"
     37#include "G4EmStandardPhysics.hh"
     38#include "G4EmStandardPhysics_option1.hh"
     39#include "G4EmStandardPhysics_option2.hh"
     40#include "G4EmStandardPhysics_option3.hh"
    3741#include "G4EmLivermorePhysics.hh"
    3842#include "G4EmPenelopePhysics.hh"
     
    5862
    5963  // EM physics
    60   emName = G4String("standard");
     64  emName = G4String("local");
    6165  emPhysicsList = new PhysListEmStandard(emName);
    6266
     
    189193  //physics tables
    190194  //
    191   emOptions.SetMinEnergy(100*eV);       //default   
    192   emOptions.SetMaxEnergy(100*TeV);      //default 
    193   emOptions.SetDEDXBinning(12*20);      //default=12*7 
    194   emOptions.SetLambdaBinning(12*20);    //default=12*7
     195  //emOptions.SetMinEnergy(100*eV);     //default   
     196  //emOptions.SetMaxEnergy(100*TeV);    //default 
     197  //emOptions.SetDEDXBinning(12*20);    //default=12*7 
     198  //emOptions.SetLambdaBinning(12*20);  //default=12*7
    195199
    196200  emOptions.SetBuildCSDARange(true);     
    197   emOptions.SetMaxEnergyForCSDARange(100*TeV);
    198   emOptions.SetDEDXBinningForCSDARange(12*20);
    199  
    200   emOptions.SetSplineFlag(true);        //default
     201  //emOptions.SetMaxEnergyForCSDARange(100*TeV);
     202  //emOptions.SetDEDXBinningForCSDARange(12*20);
     203 
     204  //emOptions.SetSplineFlag(true);      //default
    201205     
    202206  emOptions.SetVerbose(0); 
     
    213217  if (name == emName) return;
    214218
    215   if (name == "standard") {
     219  if (name == "local") {
    216220
    217221    emName = name;
     
    219223    emPhysicsList = new PhysListEmStandard(name);
    220224
    221   } else if (name == "penelope"){
     225  } else if (name == "emstandard_opt0"){
     226    emName = name;
     227    delete emPhysicsList;
     228    emPhysicsList = new G4EmStandardPhysics();
     229
     230  } else if (name == "emstandard_opt1"){
     231    emName = name;
     232    delete emPhysicsList;
     233    emPhysicsList = new G4EmStandardPhysics_option1();
     234
     235  } else if (name == "emstandard_opt2"){
     236    emName = name;
     237    delete emPhysicsList;
     238    emPhysicsList = new G4EmStandardPhysics_option2();
     239
     240  } else if (name == "emstandard_opt3"){
     241    emName = name;
     242    delete emPhysicsList;
     243    emPhysicsList = new G4EmStandardPhysics_option3();
     244
     245  } else if (name == "empenelope"){
    222246    emName = name;
    223247    delete emPhysicsList;
    224248    emPhysicsList = new G4EmPenelopePhysics();
    225249
    226   } else if (name == "livermore"){
     250  } else if (name == "emlivermore"){
    227251    emName = name;
    228252    delete emPhysicsList;
  • trunk/examples/extended/electromagnetic/TestEm0/src/PhysicsListMessenger.cc

    r1230 r1337  
    2525//
    2626// $Id: PhysicsListMessenger.cc,v 1.2 2006/06/29 16:35:55 gunter Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  • trunk/examples/extended/electromagnetic/TestEm0/src/PrimaryGeneratorAction.cc

    r1230 r1337  
    2626//
    2727// $Id: PrimaryGeneratorAction.cc,v 1.2 2006/06/29 16:35:58 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     28// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2929//
    3030//
  • trunk/examples/extended/electromagnetic/TestEm0/src/RunAction.cc

    r1230 r1337  
    2424// ********************************************************************
    2525//
    26 // $Id: RunAction.cc,v 1.10 2007/12/17 17:22:44 maire Exp $
    27 // GEANT4 tag $Name: geant4-09-03-cand-01 $
     26// $Id: RunAction.cc,v 1.15 2010/05/10 13:45:49 maire Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-01 $
    2828//
    2929//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     
    104104  G4double range = emCal.GetCSDARange(Tmax,G4Electron::Electron(),material);
    105105 
    106   G4cout << "\n Max_energy _transferable : " << G4BestUnit(Tmax,"Energy")
     106  G4cout << "\n  Max_energy _transferable : " << G4BestUnit(Tmax,"Energy")
    107107         << " (" << G4BestUnit(range,"Length") << ")" << G4endl;           
    108108  }
     
    148148    sigma0.push_back(sigtot);
    149149
    150     G4cout << "\n \n  cross section per atom   : ";
     150    G4cout << "\n \n  cross section per atom    : ";
    151151    for (size_t j=0; j<sigma0.size();j++) {         
    152152      G4cout << "\t" << std::setw(13) << G4BestUnit(sigma0[j], "Surface");
     
    156156   
    157157  //get cross section per volume
     158  std::vector<G4double> sigma0;
    158159  std::vector<G4double> sigma1;
    159   std::vector<G4double> sigma2; 
    160   G4double Sig, Sigtot = 0.;
     160  std::vector<G4double> sigma2;
     161  G4double Sig, SigtotComp = 0., Sigtot = 0.;
    161162
    162163  for (size_t j=0; j<emName.size();j++) {
    163     Sig = emCal.GetCrossSectionPerVolume(energy,particle,emName[j],material);
    164     if (Sig == 0.) Sig = emCal.ComputeCrossSectionPerVolume
    165                      (energy,particle,emName[j],material,enerCut[j]);
    166     Sigtot += Sig;                           
     164    Sig = emCal.ComputeCrossSectionPerVolume
     165      (energy,particle,emName[j],material,enerCut[j]); 
     166    SigtotComp += Sig;   
     167    sigma0.push_back(Sig);
     168    Sig = emCal.GetCrossSectionPerVolume(energy,particle,emName[j],material);     
     169    Sigtot += Sig;   
    167170    sigma1.push_back(Sig);
    168171    sigma2.push_back(Sig/density);                     
    169172  }
     173  sigma0.push_back(SigtotComp);
    170174  sigma1.push_back(Sigtot);
    171175  sigma2.push_back(Sigtot/density);       
    172176   
    173177  //print cross sections
    174   G4cout << "\n \n  cross section per volume : ";
     178  G4cout << "\n \n  compCrossSectionPerVolume : ";
     179  for (size_t j=0; j<sigma0.size();j++) {           
     180    G4cout << "\t" << std::setw(13) << sigma0[j]*cm << " cm^-1";
     181  }
     182  G4cout << "\n  cross section per volume : ";
    175183  for (size_t j=0; j<sigma1.size();j++) {           
    176184    G4cout << "\t" << std::setw(13) << sigma1[j]*cm << " cm^-1";
     
    179187  G4cout << "\n  cross section per mass   : ";
    180188  for (size_t j=0; j<sigma2.size();j++) {
    181     G4cout << "\t" << std::setw(13) << G4BestUnit(sigma2[j], "Surface/Mass");
     189    G4cout << "\t" << std::setw(13)
     190           << G4BestUnit(sigma2[j], "Surface/Mass");
    182191  }
    183192   
Note: See TracChangeset for help on using the changeset viewer.