G4ProcessTable.icc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 //  History:
00030 //   Use STL vector instead of RW vector    1. Mar 00 H.Kurashige
00031 //
00032 #include "G4ParticleTable.hh"
00033 
00035 inline 
00036  void  G4ProcessTable::SetVerboseLevel(G4int value)
00037 {
00038   verboseLevel = value;
00039 }
00040 
00042 inline 
00043  G4int G4ProcessTable::GetVerboseLevel() const
00044 {
00045   return verboseLevel;
00046 }
00047 
00049 inline 
00050  G4int  G4ProcessTable::Length() const
00051 {
00052   return fProcTblVector->size();
00053 }
00054 
00056 inline 
00057  G4ProcessTable::G4ProcNameVector*  G4ProcessTable::GetNameList()
00058 {
00059    return  fProcNameVector;
00060 }
00061 
00063 inline 
00064  G4ProcessTable::G4ProcTableVector* G4ProcessTable::GetProcTableVector() 
00065 { 
00066   return fProcTblVector; 
00067 }
00068 
00069 
00071 inline
00072  G4VProcess* G4ProcessTable::FindProcess(const G4String& processName, 
00073                                          const G4ParticleDefinition* particle)
00074                                          const
00075 {
00076   if ( particle == 0 ) return 0; 
00077   else return FindProcess(processName, particle->GetProcessManager());
00078 }
00079 
00081 inline  
00082  G4VProcess* G4ProcessTable::FindProcess(const G4String& processName, 
00083                                          const G4String& particleName) const
00084 {
00085   return FindProcess(processName,
00086           G4ParticleTable::GetParticleTable()->FindParticle(particleName));
00087 }
00088 
00089 
00091 inline 
00092  void G4ProcessTable::SetProcessActivation(
00093                                 const G4String&       processName,      
00094                                 G4ParticleDefinition* particle, 
00095                                 G4bool                fActive)
00096 {       
00097   if ( particle != 0 ) { 
00098     SetProcessActivation(processName, particle->GetProcessManager(), fActive);  
00099   }     
00100 }       
00102 inline
00103  void  G4ProcessTable::SetProcessActivation( 
00104                                 const G4String& processName, 
00105                                 const G4String& particleName, 
00106                                 G4bool          fActive )
00107 {
00108   if (particleName == "ALL" ) {
00109     SetProcessActivation( processName , fActive); 
00110   } else {
00111     SetProcessActivation(
00112         processName, 
00113         G4ParticleTable::GetParticleTable()->FindParticle(particleName),
00114         fActive );
00115   }
00116 }
00117 
00119 inline 
00120  void G4ProcessTable::SetProcessActivation(  
00121                                 G4ProcessType   processType,
00122                                 G4ParticleDefinition* particle, 
00123                                 G4bool          fActive)
00124 {       
00125   if ( particle != 0 ) { 
00126     SetProcessActivation( processType, particle->GetProcessManager(), fActive); 
00127   }     
00128 }       
00129 
00131 inline
00132  void  G4ProcessTable::SetProcessActivation( 
00133                                 G4ProcessType   processType,
00134                                 const G4String& particleName , 
00135                                 G4bool          fActive)
00136 {
00137   if ((particleName == "ALL" )||(particleName == "all" )) {
00138     SetProcessActivation( processType, fActive ); 
00139   } else {
00140     SetProcessActivation( 
00141         processType,    
00142         G4ParticleTable::GetParticleTable()->FindParticle(particleName),
00143         fActive );
00144   }
00145 }
00146 

Generated on Mon May 27 17:49:26 2013 for Geant4 by  doxygen 1.4.7