|
||||
File indexing completed on 2025-01-18 09:58:58
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // G4ProcessTable inline methods implementation 0027 // 0028 // Author: H.Kurashige, 4 August 1998 0029 // -------------------------------------------------------------------- 0030 0031 // -------------------------------------------------------------------- 0032 // 0033 inline 0034 void G4ProcessTable::SetVerboseLevel(G4int value) 0035 { 0036 verboseLevel = value; 0037 } 0038 0039 // -------------------------------------------------------------------- 0040 // 0041 inline 0042 G4int G4ProcessTable::GetVerboseLevel() const 0043 { 0044 return verboseLevel; 0045 } 0046 0047 // -------------------------------------------------------------------- 0048 // 0049 inline 0050 G4int G4ProcessTable::Length() const 0051 { 0052 return G4int(fProcTblVector->size()); 0053 } 0054 0055 // -------------------------------------------------------------------- 0056 // 0057 inline 0058 G4ProcessTable::G4ProcNameVector* G4ProcessTable::GetNameList() 0059 { 0060 return fProcNameVector; 0061 } 0062 0063 // -------------------------------------------------------------------- 0064 // 0065 inline 0066 G4ProcessTable::G4ProcTableVector* G4ProcessTable::GetProcTableVector() 0067 { 0068 return fProcTblVector; 0069 } 0070 0071 // -------------------------------------------------------------------- 0072 // 0073 inline 0074 G4VProcess* 0075 G4ProcessTable::FindProcess(const G4String& processName, 0076 const G4ParticleDefinition* particle) const 0077 { 0078 return (particle) ? 0079 FindProcess(processName, particle->GetProcessManager()) : nullptr; 0080 } 0081 0082 // -------------------------------------------------------------------- 0083 // 0084 inline 0085 void G4ProcessTable::SetProcessActivation(const G4String& processName, 0086 const G4ParticleDefinition* particle, 0087 G4bool fActive) 0088 { 0089 if ( particle != nullptr ) 0090 { 0091 SetProcessActivation(processName, particle->GetProcessManager(), fActive); 0092 } 0093 } 0094 0095 // -------------------------------------------------------------------- 0096 // 0097 inline 0098 void G4ProcessTable::SetProcessActivation(G4ProcessType processType, 0099 const G4ParticleDefinition* particle, 0100 G4bool fActive) 0101 { 0102 if ( particle != nullptr ) 0103 { 0104 SetProcessActivation(processType, particle->GetProcessManager(), fActive); 0105 } 0106 } 0107 0108 // -------------------------------------------------------------------- 0109 // 0110 inline 0111 G4ProcessVector* G4ProcessTable::FindProcesses() 0112 { 0113 return ExtractProcesses(fProcTblVector); 0114 } 0115 0116 // -------------------------------------------------------------------- 0117 // 0118 inline 0119 G4ProcessVector* 0120 G4ProcessTable::FindProcesses( const G4ProcessManager* pManager ) 0121 { 0122 G4ProcessVector* procList = pManager->GetProcessList(); 0123 return new G4ProcessVector(*procList); 0124 } 0125 0126 // -------------------------------------------------------------------- 0127 // 0128 inline 0129 G4ProcessVector* G4ProcessTable::FindProcesses( const G4String& processName ) 0130 { 0131 G4ProcTableVector* pTblVector = Find(processName); 0132 return ExtractProcesses(pTblVector); 0133 } 0134 0135 // -------------------------------------------------------------------- 0136 // 0137 inline 0138 G4ProcessVector* G4ProcessTable::FindProcesses( G4ProcessType processType) 0139 { 0140 G4ProcTableVector* pTblVector = Find(processType); 0141 return ExtractProcesses(pTblVector); 0142 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |