- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- File:
-
- 1 edited
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
Note: See TracChangeset
for help on using the changeset viewer.