- Timestamp:
- Apr 6, 2009, 12:21:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/xrays/include/G4Cerenkov.hh
r819 r961 25 25 // 26 26 // 27 // $Id: G4Cerenkov.hh,v 1. 9 2007/09/30 22:17:04gum Exp $28 // GEANT4 tag $Name: $27 // $Id: G4Cerenkov.hh,v 1.10 2008/10/22 01:17:36 gum Exp $ 28 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 29 29 // 30 30 // … … 60 60 #include "G4ParticleMomentum.hh" 61 61 #include "G4Step.hh" 62 #include "G4V DiscreteProcess.hh"62 #include "G4VProcess.hh" 63 63 #include "G4OpticalPhoton.hh" 64 64 #include "G4DynamicParticle.hh" … … 77 77 ///////////////////// 78 78 79 class G4Cerenkov : public G4V DiscreteProcess79 class G4Cerenkov : public G4VProcess 80 80 { 81 81 … … 116 116 // condition for the DoIt to be invoked at every step. 117 117 118 G4double PostStepGetPhysicalInteractionLength(const G4Track& aTrack, 119 G4double , 120 G4ForceCondition* ); 121 // Returns the discrete step limit and sets the 'StronglyForced' 122 // condition for the DoIt to be invoked at every step. 123 118 124 G4VParticleChange* PostStepDoIt(const G4Track& aTrack, 119 125 const G4Step& aStep); 120 126 // This is the method implementing the Cerenkov process. 127 128 // no operation in AtRestDoIt and AlongStepDoIt 129 virtual G4double AlongStepGetPhysicalInteractionLength( 130 const G4Track&, 131 G4double , 132 G4double , 133 G4double& , 134 G4GPILSelection* 135 ) { return -1.0; }; 136 137 virtual G4double AtRestGetPhysicalInteractionLength( 138 const G4Track& , 139 G4ForceCondition* 140 ) { return -1.0; }; 141 142 // no operation in AtRestDoIt and AlongStepDoIt 143 virtual G4VParticleChange* AtRestDoIt( 144 const G4Track& , 145 const G4Step& 146 ) {return 0;}; 147 148 virtual G4VParticleChange* AlongStepDoIt( 149 const G4Track& , 150 const G4Step& 151 ) {return 0;}; 121 152 122 153 void SetTrackSecondariesFirst(const G4bool state); … … 125 156 // been tracked, the tracking of the primary resumes. 126 157 158 void SetMaxBetaChangePerStep(const G4double d); 159 // Set the maximum allowed change in beta = v/c in % (perCent) 160 // per step. 161 127 162 void SetMaxNumPhotonsPerStep(const G4int NumPhotons); 128 163 // Set the maximum number of Cerenkov photons allowed to be … … 166 201 167 202 G4bool fTrackSecondariesFirst; 168 G4int fMaxPhotons; 203 G4double fMaxBetaChange; 204 G4int fMaxPhotons; 169 205 }; 170 206 … … 190 226 191 227 inline 228 void G4Cerenkov::SetMaxBetaChangePerStep(const G4double value) 229 { 230 fMaxBetaChange = value*perCent; 231 } 232 233 inline 192 234 void G4Cerenkov::SetMaxNumPhotonsPerStep(const G4int NumPhotons) 193 235 { … … 208 250 } 209 251 210 inline G4PhysicsTable* G4Cerenkov::GetPhysicsTable() const 252 inline 253 G4PhysicsTable* G4Cerenkov::GetPhysicsTable() const 211 254 { 212 255 return thePhysicsTable;
Note: See TracChangeset
for help on using the changeset viewer.