Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer << 3 // * DISCLAIMER * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th << 5 // * The following disclaimer summarizes all the specific disclaimers * 6 // * the Geant4 Collaboration. It is provided << 6 // * of contributors to this software. The specific disclaimers,which * 7 // * conditions of the Geant4 Software License << 7 // * govern, are listed with their locations in: * 8 // * LICENSE and available at http://cern.ch/ << 8 // * http://cern.ch/geant4/license * 9 // * include a list of copyright holders. << 10 // * 9 // * * 11 // * Neither the authors of this software syst 10 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 11 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 12 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 13 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file << 14 // * use. * 16 // * for the full disclaimer and the limitatio << 17 // * 15 // * * 18 // * This code implementation is the result << 16 // * This code implementation is the intellectual property of the * 19 // * technical work of the GEANT4 collaboratio << 17 // * GEANT4 collaboration. * 20 // * By using, copying, modifying or distri << 18 // * By copying, distributing or modifying the Program (or any work * 21 // * any work based on the software) you ag << 19 // * based on the Program) you indicate your acceptance of this * 22 // * use in resulting scientific publicati << 20 // * statement, and all its terms. * 23 // * acceptance of all terms of the Geant4 Sof << 24 // ******************************************* 21 // ******************************************************************** 25 // 22 // 26 // G4UserLimits inline methods implementation << 27 // 23 // 28 // Author: Paul Kent, August 1996 << 24 // $Id: G4UserLimits.icc,v 1.7 2005/03/15 19:11:35 gcosmo Exp $ 29 // Revisions: << 25 // GEANT4 tag $Name: geant4-07-01-patch-01 $ 30 // - 01-11-1997, H.Kurashige: changed GetMaxAl << 26 // 31 // - 08-04-1998: M.Maire: new data members << 27 // 32 // ------------------------------------------- << 28 // 33 << 29 // class G4UserLimits inline implementation 34 inline G4UserLimits::G4UserLimits(G4double ust << 30 // 35 G4double uti << 31 // 01-11-97: change GetMaxAllowedStep(), Hisaya Kurashige 36 G4double ura << 32 // 08-04-98: new data members, mma 37 : fMaxStep(ustepMax) << 33 // 38 , fMaxTrack(utrakMax) << 39 , fMaxTime(utimeMax) << 40 , fMinEkine(uekinMin) << 41 , fMinRange(urangMin) << 42 , fType("base") << 43 {} << 44 34 45 // ------------------------------------------- << 35 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... >> 36 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 46 37 47 inline G4UserLimits::G4UserLimits(const G4Stri << 38 inline G4UserLimits::G4UserLimits(G4double ustepMax, 48 G4double utr << 39 G4double utrakMax, 49 G4double uek << 40 G4double utimeMax, 50 : fMaxStep(ustepMax) << 41 G4double uekinMin, 51 , fMaxTrack(utrakMax) << 42 G4double urangMin) 52 , fMaxTime(utimeMax) << 43 :fMaxStep (ustepMax),fMaxTrack(utrakMax),fMaxTime(utimeMax), 53 , fMinEkine(uekinMin) << 44 fMinEkine(uekinMin),fMinRange(urangMin),fType("base") 54 , fMinRange(urangMin) << 55 , fType(type) << 56 {} 45 {} 57 46 58 // ------------------------------------------- << 47 inline G4UserLimits::G4UserLimits(const G4String& type, 59 << 48 G4double ustepMax, 60 inline const G4String& G4UserLimits::GetType() << 49 G4double utrakMax, 61 << 50 G4double utimeMax, 62 // ------------------------------------------- << 51 G4double uekinMin, 63 << 52 G4double urangMin) 64 inline void G4UserLimits::SetType(const G4Stri << 53 :fMaxStep (ustepMax),fMaxTrack(utrakMax),fMaxTime(utimeMax), >> 54 fMinEkine(uekinMin),fMinRange(urangMin),fType(type) >> 55 {} 65 56 66 // ------------------------------------------- << 57 inline const G4String& G4UserLimits::GetType() const >> 58 { >> 59 return fType; >> 60 } 67 61 68 inline G4UserLimits::~G4UserLimits() {} << 62 inline void G4UserLimits::SetType(const G4String& type) >> 63 { >> 64 fType = type; >> 65 } >> 66 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 69 67 70 // ------------------------------------------- << 68 inline G4UserLimits::~G4UserLimits(){} 71 69 >> 70 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... >> 71 72 inline G4double G4UserLimits::GetMaxAllowedSte 72 inline G4double G4UserLimits::GetMaxAllowedStep(const G4Track&) 73 { 73 { 74 return fMaxStep; 74 return fMaxStep; 75 } 75 } 76 76 77 // ------------------------------------------- << 77 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 78 78 79 inline G4double G4UserLimits::GetUserMaxTrackL 79 inline G4double G4UserLimits::GetUserMaxTrackLength(const G4Track&) 80 { 80 { 81 return fMaxTrack; 81 return fMaxTrack; 82 } 82 } 83 83 84 // ------------------------------------------- << 84 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 85 85 86 inline G4double G4UserLimits::GetUserMaxTime(c 86 inline G4double G4UserLimits::GetUserMaxTime(const G4Track&) 87 { 87 { 88 return fMaxTime; 88 return fMaxTime; 89 } 89 } 90 90 91 // ------------------------------------------- << 91 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 92 92 93 inline G4double G4UserLimits::GetUserMinEkine( 93 inline G4double G4UserLimits::GetUserMinEkine(const G4Track&) 94 { 94 { 95 return fMinEkine; 95 return fMinEkine; 96 } 96 } 97 97 98 // ------------------------------------------- << 98 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 99 99 100 inline G4double G4UserLimits::GetUserMinRange( 100 inline G4double G4UserLimits::GetUserMinRange(const G4Track&) 101 { 101 { 102 return fMinRange; 102 return fMinRange; 103 } 103 } 104 104 105 // ------------------------------------------- << 105 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 106 106 107 inline void G4UserLimits::SetMaxAllowedStep(G4 107 inline void G4UserLimits::SetMaxAllowedStep(G4double ustepMax) 108 { 108 { 109 fMaxStep = ustepMax; << 109 fMaxStep=ustepMax; 110 } 110 } 111 111 112 // ------------------------------------------- << 112 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 113 113 114 inline void G4UserLimits::SetUserMaxTrackLengt 114 inline void G4UserLimits::SetUserMaxTrackLength(G4double utrakMax) 115 { 115 { 116 fMaxTrack = utrakMax; << 116 fMaxTrack=utrakMax; 117 } 117 } 118 118 119 // ------------------------------------------- << 119 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 120 120 121 inline void G4UserLimits::SetUserMaxTime(G4dou 121 inline void G4UserLimits::SetUserMaxTime(G4double utimeMax) 122 { 122 { 123 fMaxTime = utimeMax; << 123 fMaxTime=utimeMax; 124 } 124 } 125 125 126 // ------------------------------------------- << 126 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 127 127 128 inline void G4UserLimits::SetUserMinEkine(G4do 128 inline void G4UserLimits::SetUserMinEkine(G4double uekinMin) 129 { 129 { 130 fMinEkine = uekinMin; << 130 fMinEkine=uekinMin; 131 } 131 } 132 132 133 // ------------------------------------------- << 133 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 134 134 135 inline void G4UserLimits::SetUserMinRange(G4do 135 inline void G4UserLimits::SetUserMinRange(G4double urangMin) 136 { 136 { 137 fMinRange = urangMin; << 137 fMinRange=urangMin; 138 } 138 } >> 139 >> 140 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 139 141