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

update processes

Location:
trunk/source/processes/cuts
Files:
27 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/cuts/History

    r819 r961  
    1 $Id: History,v 1.21 2007/06/06 14:50:38 gcosmo Exp $
     1$Id: History,v 1.22 2008/03/02 10:52:55 kurasige Exp $
    22-------------------------------------------------------------------
    33
     
    1717     * Reverse chronological order (last date on top), please *
    1818     ----------------------------------------------------------
     19Mar. 2nd, 2008  -  H.Kurashige (procuts-V09-01-00)
     20- Add ProductionCutsMessenger
     21- Suppress 'too big cut value' messsage for higher verbosity
    1922
    2023June 6th, 2007 -  L.Urban (procuts-V08-03-01)
  • trunk/source/processes/cuts/include/G4MCCIndexConversionTable.hh

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

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

    r819 r961  
    2626//
    2727// $Id: G4PhysicsTableHelper.hh,v 1.3 2006/06/29 19:29:46 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
  • trunk/source/processes/cuts/include/G4ProductionCuts.hh

    r819 r961  
    2626//
    2727// $Id: G4ProductionCuts.hh,v 1.4 2006/06/29 19:29:48 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
  • trunk/source/processes/cuts/include/G4ProductionCutsTable.hh

    r819 r961  
    2525//
    2626//
    27 // $Id: G4ProductionCutsTable.hh,v 1.8 2007/03/15 04:06:40 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-01-patch-02 $
     27// $Id: G4ProductionCutsTable.hh,v 1.9 2008/03/02 10:52:55 kurasige Exp $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
     
    4646//    Modify RetrieveCutsTable to allow materials and
    4747//    couples can be different from one in file (i.e. at storing)
    48 //
     48//   Modified                      2 Mar. 2008 H.Kurashige
     49//    add messenger
    4950// ------------------------------------------------------------
    5051
     
    5758class G4VPhysicalVolume;
    5859class G4ProductionCuts;
     60
     61class G4ProductionCutsTableMessenger;
    5962
    6063#include "globals.hh"
     
    227230
    228231  private:
    229    G4int verboseLevel;
     232    G4int verboseLevel;
     233    G4ProductionCutsTableMessenger* fMessenger;
    230234
    231235};
     
    340344
    341345inline
    342  void G4ProductionCutsTable::SetVerboseLevel(G4int value)
    343 {
    344    verboseLevel = value;
    345 }
    346 
    347 inline
    348346 G4int G4ProductionCutsTable::GetVerboseLevel() const
    349347{
  • trunk/source/processes/cuts/include/G4RToEConvForAntiNeutron.hh

    r819 r961  
    2626//
    2727// $Id: G4RToEConvForAntiNeutron.hh,v 1.2 2006/06/29 19:29:52 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
  • trunk/source/processes/cuts/include/G4RToEConvForAntiProton.hh

    r819 r961  
    2626//
    2727// $Id: G4RToEConvForAntiProton.hh,v 1.2 2006/06/29 19:29:54 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
  • trunk/source/processes/cuts/include/G4RToEConvForElectron.hh

    r819 r961  
    2626//
    2727// $Id: G4RToEConvForElectron.hh,v 1.2 2006/06/29 19:29:56 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
  • trunk/source/processes/cuts/include/G4RToEConvForGamma.hh

    r819 r961  
    2626//
    2727// $Id: G4RToEConvForGamma.hh,v 1.2 2006/06/29 19:29:58 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
  • trunk/source/processes/cuts/include/G4RToEConvForNeutron.hh

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

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

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

    r819 r961  
    2626//
    2727// $Id: G4VRangeToEnergyConverter.hh,v 1.4 2006/06/29 19:30:06 gunter Exp $
    28 // GEANT4 tag $Name: $
     28// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2929//
    3030//
  • 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.