1 | // |
---|
2 | // ******************************************************************** |
---|
3 | // * License and Disclaimer * |
---|
4 | // * * |
---|
5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
7 | // * conditions of the Geant4 Software License, included in the file * |
---|
8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
9 | // * include a list of copyright holders. * |
---|
10 | // * * |
---|
11 | // * Neither the authors of this software system, nor their employing * |
---|
12 | // * institutes,nor the agencies providing financial support for this * |
---|
13 | // * work make any representation or warranty, express or implied, * |
---|
14 | // * regarding this software system or assume any liability for its * |
---|
15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
16 | // * for the full disclaimer and the limitation of liability. * |
---|
17 | // * * |
---|
18 | // * This code implementation is the result of the scientific and * |
---|
19 | // * technical work of the GEANT4 collaboration. * |
---|
20 | // * By using, copying, modifying or distributing the software (or * |
---|
21 | // * any work based on the software) you agree to acknowledge its * |
---|
22 | // * use in resulting scientific publications, and indicate your * |
---|
23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
24 | // ******************************************************************** |
---|
25 | // |
---|
26 | // |
---|
27 | // $Id: G4UserLimits.icc,v 1.8 2006/06/29 19:03:31 gunter Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-04-beta-01 $ |
---|
29 | // |
---|
30 | // |
---|
31 | // |
---|
32 | // class G4UserLimits inline implementation |
---|
33 | // |
---|
34 | // 01-11-97: change GetMaxAllowedStep(), Hisaya Kurashige |
---|
35 | // 08-04-98: new data members, mma |
---|
36 | // |
---|
37 | |
---|
38 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
39 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
40 | |
---|
41 | inline G4UserLimits::G4UserLimits(G4double ustepMax, |
---|
42 | G4double utrakMax, |
---|
43 | G4double utimeMax, |
---|
44 | G4double uekinMin, |
---|
45 | G4double urangMin) |
---|
46 | :fMaxStep (ustepMax),fMaxTrack(utrakMax),fMaxTime(utimeMax), |
---|
47 | fMinEkine(uekinMin),fMinRange(urangMin),fType("base") |
---|
48 | {} |
---|
49 | |
---|
50 | inline G4UserLimits::G4UserLimits(const G4String& type, |
---|
51 | G4double ustepMax, |
---|
52 | G4double utrakMax, |
---|
53 | G4double utimeMax, |
---|
54 | G4double uekinMin, |
---|
55 | G4double urangMin) |
---|
56 | :fMaxStep (ustepMax),fMaxTrack(utrakMax),fMaxTime(utimeMax), |
---|
57 | fMinEkine(uekinMin),fMinRange(urangMin),fType(type) |
---|
58 | {} |
---|
59 | |
---|
60 | inline const G4String& G4UserLimits::GetType() const |
---|
61 | { |
---|
62 | return fType; |
---|
63 | } |
---|
64 | |
---|
65 | inline void G4UserLimits::SetType(const G4String& type) |
---|
66 | { |
---|
67 | fType = type; |
---|
68 | } |
---|
69 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
70 | |
---|
71 | inline G4UserLimits::~G4UserLimits(){} |
---|
72 | |
---|
73 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
74 | |
---|
75 | inline G4double G4UserLimits::GetMaxAllowedStep(const G4Track&) |
---|
76 | { |
---|
77 | return fMaxStep; |
---|
78 | } |
---|
79 | |
---|
80 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
81 | |
---|
82 | inline G4double G4UserLimits::GetUserMaxTrackLength(const G4Track&) |
---|
83 | { |
---|
84 | return fMaxTrack; |
---|
85 | } |
---|
86 | |
---|
87 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
88 | |
---|
89 | inline G4double G4UserLimits::GetUserMaxTime(const G4Track&) |
---|
90 | { |
---|
91 | return fMaxTime; |
---|
92 | } |
---|
93 | |
---|
94 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
95 | |
---|
96 | inline G4double G4UserLimits::GetUserMinEkine(const G4Track&) |
---|
97 | { |
---|
98 | return fMinEkine; |
---|
99 | } |
---|
100 | |
---|
101 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
102 | |
---|
103 | inline G4double G4UserLimits::GetUserMinRange(const G4Track&) |
---|
104 | { |
---|
105 | return fMinRange; |
---|
106 | } |
---|
107 | |
---|
108 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
109 | |
---|
110 | inline void G4UserLimits::SetMaxAllowedStep(G4double ustepMax) |
---|
111 | { |
---|
112 | fMaxStep=ustepMax; |
---|
113 | } |
---|
114 | |
---|
115 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
116 | |
---|
117 | inline void G4UserLimits::SetUserMaxTrackLength(G4double utrakMax) |
---|
118 | { |
---|
119 | fMaxTrack=utrakMax; |
---|
120 | } |
---|
121 | |
---|
122 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
123 | |
---|
124 | inline void G4UserLimits::SetUserMaxTime(G4double utimeMax) |
---|
125 | { |
---|
126 | fMaxTime=utimeMax; |
---|
127 | } |
---|
128 | |
---|
129 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
130 | |
---|
131 | inline void G4UserLimits::SetUserMinEkine(G4double uekinMin) |
---|
132 | { |
---|
133 | fMinEkine=uekinMin; |
---|
134 | } |
---|
135 | |
---|
136 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
137 | |
---|
138 | inline void G4UserLimits::SetUserMinRange(G4double urangMin) |
---|
139 | { |
---|
140 | fMinRange=urangMin; |
---|
141 | } |
---|
142 | |
---|
143 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|