Ignore:
Timestamp:
Apr 6, 2009, 12:21:12 PM (17 years ago)
Author:
garnier
Message:

update processes

Location:
trunk/source/processes/cuts/src
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/cuts/src/G4MCCIndexConversionTable.cc

    r819 r961  
    2525//
    2626// $Id: G4MCCIndexConversionTable.cc,v 1.3 2006/06/29 19:30:08 gunter Exp $
    27 // GEANT4 tag $Name: $
     27// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2828//
    2929//
  • trunk/source/processes/cuts/src/G4MaterialCutsCouple.cc

    r819 r961  
    2626//
    2727// $Id: G4MaterialCutsCouple.cc,v 1.3 2006/06/29 19:30:10 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
  • trunk/source/processes/cuts/src/G4PhysicsTableHelper.cc

    r819 r961  
    2525//
    2626// $Id: G4PhysicsTableHelper.cc,v 1.5 2006/06/29 19:30:12 gunter Exp $
    27 // GEANT4 tag $Name: $
     27// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2828//
    2929//
  • trunk/source/processes/cuts/src/G4ProductionCuts.cc

    r819 r961  
    2626//
    2727// $Id: G4ProductionCuts.cc,v 1.5 2006/06/29 19:30:14 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
  • trunk/source/processes/cuts/src/G4ProductionCutsTable.cc

    r819 r961  
    2525//
    2626//
    27 // $Id: G4ProductionCutsTable.cc,v 1.17 2007/05/30 08:22:20 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-01-patch-02 $
     27// $Id: G4ProductionCutsTable.cc,v 1.18 2008/03/02 10:52:55 kurasige Exp $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
     
    3232//      GEANT 4 class implementation file/  History:
    3333//    06/Oct. 2002, M.Asai : First implementation
     34//    02/Mar. 2008, H.Kurashige : Add messenger
    3435// --------------------------------------------------------------
    3536
     
    3738#include "G4ProductionCuts.hh"
    3839#include "G4MCCIndexConversionTable.hh"
     40#include "G4ProductionCutsTableMessenger.hh"
    3941#include "G4ParticleDefinition.hh"
    4042#include "G4ParticleTable.hh"
     
    6668
    6769G4ProductionCutsTable::G4ProductionCutsTable()
    68   : firstUse(true),verboseLevel(1)
     70  : firstUse(true),verboseLevel(1),fMessenger(0)
    6971{
    7072  for(size_t i=0;i< NumberOfG4CutIndex;i++)
     
    7880  fG4RegionStore = G4RegionStore::GetInstance();
    7981  defaultProductionCuts = new G4ProductionCuts();
     82
     83  // add messenger for UI
     84  fMessenger = new G4ProductionCutsTableMessenger(this);
    8085}
    8186
     
    103108  }
    104109  fG4ProductionCutsTable =0;
     110
     111  if (fMessenger !=0) delete fMessenger;
     112  fMessenger = 0;
    105113}
    106114
     
    108116{
    109117  if(firstUse){
    110     if(G4ParticleTable::GetParticleTable()->FindParticle("gamma"))
    111     { converters[0] = new G4RToEConvForGamma(); }
    112     if(G4ParticleTable::GetParticleTable()->FindParticle("e-"))
    113     { converters[1] = new G4RToEConvForElectron(); }
    114     if(G4ParticleTable::GetParticleTable()->FindParticle("e+"))
    115     { converters[2] = new G4RToEConvForPositron(); }
     118    if(G4ParticleTable::GetParticleTable()->FindParticle("gamma")){
     119      converters[0] = new G4RToEConvForGamma();
     120      converters[0]->SetVerboseLevel(GetVerboseLevel());
     121    }
     122    if(G4ParticleTable::GetParticleTable()->FindParticle("e-")){
     123      converters[1] = new G4RToEConvForElectron();
     124      converters[1]->SetVerboseLevel(GetVerboseLevel());
     125        }
     126    if(G4ParticleTable::GetParticleTable()->FindParticle("e+")){
     127      converters[2] = new G4RToEConvForPositron();
     128      converters[2]->SetVerboseLevel(GetVerboseLevel());
     129    }
    116130    firstUse = false;
    117131  }
     
    376390 
    377391#ifdef G4VERBOSE 
    378   if (verboseLevel >1) {
     392  if (verboseLevel >2) {
    379393    G4cout << "G4ProductionCutsTable::StoreCutsTable " ;
    380394    G4cout << " Material/Cuts information have been succesfully stored ";
     
    396410  if (!RetrieveCutsInfo(dir, ascii)) return false;
    397411#ifdef G4VERBOSE 
    398   if (verboseLevel >1) {
     412  if (verboseLevel >2) {
    399413    G4cout << "G4ProductionCutsTable::RetrieveCutsTable " ;
    400414    G4cout << " Material/Cuts information have been succesfully retreived ";
     
    420434  //  isNeedForRestoreCoupleInfo = false;
    421435  if (!CheckMaterialInfo(directory, ascii)) return false;
    422   if (verboseLevel >1) {
     436  if (verboseLevel >2) {
    423437      G4cerr << "G4ProductionCutsTable::CheckMaterialInfo  passed !!"<< G4endl;
    424438  }
    425439  if (!CheckMaterialCutsCoupleInfo(directory, ascii)) return false;
    426   if (verboseLevel >1) {
     440  if (verboseLevel >2) {
    427441    G4cerr << "G4ProductionCutsTable::CheckMaterialCutsCoupleInfo  passed !!"<< G4endl;
    428442  }
     
    10801094  return true;
    10811095}
     1096
     1097// Set Verbose Level
     1098//   set same verbosity to all registered RangeToEnergyConverters 
     1099 void G4ProductionCutsTable::SetVerboseLevel(G4int value)
     1100{
     1101  verboseLevel = value;
     1102  for (int ip=0; ip< NumberOfG4CutIndex; ip++) {
     1103    if (converters[ip] !=0 ){
     1104      converters[ip]->SetVerboseLevel(value);
     1105    }
     1106  }
     1107}
     1108
  • trunk/source/processes/cuts/src/G4RToEConvForAntiNeutron.cc

    r819 r961  
    2626//
    2727// $Id: G4RToEConvForAntiNeutron.cc,v 1.3 2006/06/29 19:30:18 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
  • trunk/source/processes/cuts/src/G4RToEConvForAntiProton.cc

    r819 r961  
    2626//
    2727// $Id: G4RToEConvForAntiProton.cc,v 1.3 2006/06/29 19:30:20 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
  • trunk/source/processes/cuts/src/G4RToEConvForElectron.cc

    r819 r961  
    2626//
    2727// $Id: G4RToEConvForElectron.cc,v 1.5 2006/06/29 19:30:22 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
  • trunk/source/processes/cuts/src/G4RToEConvForGamma.cc

    r819 r961  
    2626//
    2727// $Id: G4RToEConvForGamma.cc,v 1.4 2006/06/29 19:30:24 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
  • trunk/source/processes/cuts/src/G4RToEConvForNeutron.cc

    r819 r961  
    2626//
    2727// $Id: G4RToEConvForNeutron.cc,v 1.3 2006/06/29 19:30:26 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
  • trunk/source/processes/cuts/src/G4RToEConvForPositron.cc

    r819 r961  
    2626//
    2727// $Id: G4RToEConvForPositron.cc,v 1.5 2006/06/29 19:30:28 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
  • trunk/source/processes/cuts/src/G4RToEConvForProton.cc

    r819 r961  
    2626//
    2727// $Id: G4RToEConvForProton.cc,v 1.3 2006/06/29 19:30:30 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
  • trunk/source/processes/cuts/src/G4VRangeToEnergyConverter.cc

    r819 r961  
    2525//
    2626//
    27 // $Id: G4VRangeToEnergyConverter.cc,v 1.8 2007/06/06 05:13:34 urban Exp $
    28 // GEANT4 tag $Name: geant4-09-01-patch-02 $
     27// $Id: G4VRangeToEnergyConverter.cc,v 1.9 2008/03/02 10:52:56 kurasige Exp $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
     
    274274    theLossTable->reserve(G4Element::GetNumberOfElements());
    275275#ifdef G4VERBOSE
    276     if (GetVerboseLevel()>2) {
     276    if (GetVerboseLevel()>3) {
    277277      G4cout << "G4VRangeToEnergyConverter::BuildLossTable() ";
    278278      G4cout << "Create theLossTable[" << theLossTable << "]";
     
    447447  if ( theCutInLength >= rmax )  {
    448448#ifdef G4VERBOSE
    449     if (GetVerboseLevel()>0) {
     449    if (GetVerboseLevel()>2) {
    450450      G4cout << "G4VRangeToEnergyConverter::ConvertCutToKineticEnergy ";
    451451      G4cout << "  for " << theParticle->GetParticleName() << G4endl;
Note: See TracChangeset for help on using the changeset viewer.