|
||||
File indexing completed on 2025-01-18 09:59:17
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 // G4UserLimits inline methods implementation 0027 // 0028 // Author: Paul Kent, August 1996 0029 // Revisions: 0030 // - 01-11-1997, H.Kurashige: changed GetMaxAllowedStep() 0031 // - 08-04-1998: M.Maire: new data members 0032 // -------------------------------------------------------------------- 0033 0034 inline G4UserLimits::G4UserLimits(G4double ustepMax, G4double utrakMax, 0035 G4double utimeMax, G4double uekinMin, 0036 G4double urangMin) 0037 : fMaxStep(ustepMax) 0038 , fMaxTrack(utrakMax) 0039 , fMaxTime(utimeMax) 0040 , fMinEkine(uekinMin) 0041 , fMinRange(urangMin) 0042 , fType("base") 0043 {} 0044 0045 // -------------------------------------------------------------------- 0046 0047 inline G4UserLimits::G4UserLimits(const G4String& type, G4double ustepMax, 0048 G4double utrakMax, G4double utimeMax, 0049 G4double uekinMin, G4double urangMin) 0050 : fMaxStep(ustepMax) 0051 , fMaxTrack(utrakMax) 0052 , fMaxTime(utimeMax) 0053 , fMinEkine(uekinMin) 0054 , fMinRange(urangMin) 0055 , fType(type) 0056 {} 0057 0058 // -------------------------------------------------------------------- 0059 0060 inline const G4String& G4UserLimits::GetType() const { return fType; } 0061 0062 // -------------------------------------------------------------------- 0063 0064 inline void G4UserLimits::SetType(const G4String& type) { fType = type; } 0065 0066 // -------------------------------------------------------------------- 0067 0068 inline G4UserLimits::~G4UserLimits() {} 0069 0070 // -------------------------------------------------------------------- 0071 0072 inline G4double G4UserLimits::GetMaxAllowedStep(const G4Track&) 0073 { 0074 return fMaxStep; 0075 } 0076 0077 // -------------------------------------------------------------------- 0078 0079 inline G4double G4UserLimits::GetUserMaxTrackLength(const G4Track&) 0080 { 0081 return fMaxTrack; 0082 } 0083 0084 // -------------------------------------------------------------------- 0085 0086 inline G4double G4UserLimits::GetUserMaxTime(const G4Track&) 0087 { 0088 return fMaxTime; 0089 } 0090 0091 // -------------------------------------------------------------------- 0092 0093 inline G4double G4UserLimits::GetUserMinEkine(const G4Track&) 0094 { 0095 return fMinEkine; 0096 } 0097 0098 // -------------------------------------------------------------------- 0099 0100 inline G4double G4UserLimits::GetUserMinRange(const G4Track&) 0101 { 0102 return fMinRange; 0103 } 0104 0105 // -------------------------------------------------------------------- 0106 0107 inline void G4UserLimits::SetMaxAllowedStep(G4double ustepMax) 0108 { 0109 fMaxStep = ustepMax; 0110 } 0111 0112 // -------------------------------------------------------------------- 0113 0114 inline void G4UserLimits::SetUserMaxTrackLength(G4double utrakMax) 0115 { 0116 fMaxTrack = utrakMax; 0117 } 0118 0119 // -------------------------------------------------------------------- 0120 0121 inline void G4UserLimits::SetUserMaxTime(G4double utimeMax) 0122 { 0123 fMaxTime = utimeMax; 0124 } 0125 0126 // -------------------------------------------------------------------- 0127 0128 inline void G4UserLimits::SetUserMinEkine(G4double uekinMin) 0129 { 0130 fMinEkine = uekinMin; 0131 } 0132 0133 // -------------------------------------------------------------------- 0134 0135 inline void G4UserLimits::SetUserMinRange(G4double urangMin) 0136 { 0137 fMinRange = urangMin; 0138 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |