Changeset 1315 for trunk/source/processes/hadronic/management/include
- Timestamp:
- Jun 18, 2010, 11:42:07 AM (15 years ago)
- Location:
- trunk/source/processes/hadronic/management/include
- Files:
-
- 2 edited
-
G4HadronicProcess.hh (modified) (5 diffs)
-
G4HadronicProcessStore.hh (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/management/include/G4HadronicProcess.hh
r962 r1315 57 57 class G4ParticleChange; 58 58 59 59 60 class G4HadronicProcess : public G4VDiscreteProcess 60 61 { 61 62 public: 62 63 63 G4HadronicProcess( const G4String &processName = "Hadronic",64 G4ProcessType aType = fHadronic);64 G4HadronicProcess(const G4String& processName = "Hadronic", 65 G4ProcessType aType = fHadronic); 65 66 66 67 virtual ~G4HadronicProcess(); 67 68 68 69 // register generator of secondaries 69 void RegisterMe( G4HadronicInteraction *a);70 void RegisterMe(G4HadronicInteraction* a); 70 71 71 72 // get cross section per element … … 133 134 134 135 void BiasCrossSectionByFactor(G4double aScale); 135 136 137 // Energy-momentum non-conservation limits and reporting 138 inline void SetEpReportLevel(G4int level) 139 { epReportLevel = level; } 140 141 inline void SetEnergyMomentumCheckLevels(G4double relativeLevel, G4double absoluteLevel) 142 { epCheckLevels.first = relativeLevel; 143 epCheckLevels.second = absoluteLevel; 144 levelsSetByProcess = true; 145 } 146 147 inline std::pair<G4double, G4double> GetEnergyMomentumCheckLevels() const 148 { return epCheckLevels; } 149 136 150 protected: 137 151 … … 157 171 158 172 private: 173 174 void DumpState(const G4Track&, const G4String&); 159 175 160 176 void FillTotalResult(G4HadFinalState * aR, const G4Track & aT); … … 178 194 G4double XBiasSurvivalProbability(); 179 195 G4double XBiasSecondaryWeight(); 196 197 void CheckEnergyMomentumConservation(const G4Track&, const G4Nucleus&); 180 198 181 199 private: … … 192 210 193 211 bool G4HadronicProcess_debug_flag; 212 213 // Energy-momentum checking 214 G4int epReportLevel; 215 std::pair<G4double, G4double> epCheckLevels; 216 G4bool levelsSetByProcess; 194 217 195 218 // swiches for isotope production -
trunk/source/processes/hadronic/management/include/G4HadronicProcessStore.hh
r1228 r1315 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4HadronicProcessStore.hh,v 1. 5 2009/02/15 16:50:15 vnivanchExp $27 // GEANT4 tag $Name: geant4-09-0 3$26 // $Id: G4HadronicProcessStore.hh,v 1.6 2010/04/21 17:55:13 dennis Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 28 28 // 29 29 // … … 62 62 63 63 class G4Element; 64 class G4HadronicEPTestMessenger; 65 64 66 65 67 class G4HadronicProcessStore … … 178 180 G4HadronicProcess* FindProcess(const G4ParticleDefinition*, 179 181 G4HadronicProcessType subType); 182 183 // Energy-momentum non-conservation limits and reporting 184 void SetEpReportLevel(G4int level); 185 186 void SetProcessAbsLevel(G4double absoluteLevel); 187 188 void SetProcessRelLevel(G4double relativeLevel); 180 189 181 190 private: … … 222 231 G4DynamicParticle localDP; 223 232 233 G4HadronicEPTestMessenger* theEPTestMessenger; 224 234 }; 225 235
Note:
See TracChangeset
for help on using the changeset viewer.
