- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/xrays/include/G4Scintillation.hh
r1228 r1315 25 25 // 26 26 // 27 // $Id: G4Scintillation.hh,v 1.1 6 2009/07/29 23:45:20gum Exp $28 // GEANT4 tag $Name: geant4-09-0 3$27 // $Id: G4Scintillation.hh,v 1.17 2010/05/27 20:48:35 gum Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // … … 146 146 // have been tracked, the tracking of the primary resumes. 147 147 148 void SetFiniteRiseTime(const G4bool state); 149 // If set, the G4Scintillation process expects the user to have 150 // set the constant material property FAST/SLOWSCINTILLATIONRISETIME. 151 148 152 G4bool GetTrackSecondariesFirst() const; 149 153 // Returns the boolean flag for tracking secondaries first. 154 155 G4bool GetFiniteRiseTime() const; 156 // Returns the boolean flag for a finite scintillation rise time. 150 157 151 158 void SetScintillationYieldFactor(const G4double yieldfactor); … … 198 205 199 206 G4bool fTrackSecondariesFirst; 207 G4bool fFiniteRiseTime; 200 208 201 209 G4double YieldFactor; … … 204 212 205 213 private: 214 215 G4double single_exp(G4double t, G4double tau2); 216 G4double bi_exp(G4double t, G4double tau1, G4double tau2); 217 218 // emission time distribution when there is a finite rise time 219 G4double sample_time(G4double tau1, G4double tau2); 206 220 207 221 G4EmSaturation* emSaturation; … … 229 243 230 244 inline 245 void G4Scintillation::SetFiniteRiseTime(const G4bool state) 246 { 247 fFiniteRiseTime = state; 248 } 249 250 inline 231 251 G4bool G4Scintillation::GetTrackSecondariesFirst() const 232 252 { 233 253 return fTrackSecondariesFirst; 254 } 255 256 inline 257 G4bool G4Scintillation::GetFiniteRiseTime() const 258 { 259 return fFiniteRiseTime; 234 260 } 235 261 … … 296 322 } 297 323 324 inline 325 G4double G4Scintillation::single_exp(G4double t, G4double tau2) 326 { 327 return exp(-1.0*t/tau2)/tau2; 328 } 329 330 inline 331 G4double G4Scintillation::bi_exp(G4double t, G4double tau1, G4double tau2) 332 { 333 return exp(-1.0*t/tau2)*(1-exp(-1.0*t/tau1))/tau2/tau2*(tau1+tau2); 334 } 335 298 336 #endif /* G4Scintillation_h */
Note: See TracChangeset
for help on using the changeset viewer.