Changeset 1315 for trunk/source/processes/hadronic/models/management
- Timestamp:
- Jun 18, 2010, 11:42:07 AM (15 years ago)
- Location:
- trunk/source/processes/hadronic/models/management
- Files:
-
- 4 edited
-
History (modified) (1 diff)
-
include/G4HadronicInteraction.hh (modified) (4 diffs)
-
src/G4HadronicInteraction.cc (modified) (2 diffs)
-
src/G4HadronicInteractionRegistry.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/management/History
r1228 r1315 14 14 * Please list in reverse chronological order (last date on top) 15 15 --------------------------------------------------------------- 16 17 02 April 2010 - Dennis Wright (hadr-modman-V09-03-01) 18 ----------------------------------------------------- 19 - G4HadronicInteraction - add two methods, GetEnergyMomentumCheckLevels 20 and SetEnergyMomentumCheckLevels in order to implement checking 21 of energy/momentum conservation 22 23 25 March 2010 - V.Ivanchenko (hadr-modman-V09-03-00) 24 ------------------------------------------------------ 25 - G4HadronicInteractionRegistry - do not pop_back vector of pointers 26 when DeRegister cross section data set - big fixed for Windows 16 27 17 28 2 December 2009 - V.Ivanchenko (hadr-modman-V09-02-08) -
trunk/source/processes/hadronic/models/management/include/G4HadronicInteraction.hh
r1228 r1315 25 25 // 26 26 // 27 // $Id: G4HadronicInteraction.hh,v 1.1 3 2009/10/02 17:18:33 vnivanchExp $28 // GEANT4 tag $Name: geant4-09-0 3$27 // $Id: G4HadronicInteraction.hh,v 1.14 2010/04/03 00:40:45 dennis Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // Hadronic Interaction abstract base class … … 139 139 140 140 G4bool IsBlocked( const G4Material *aMaterial ) const; 141 142 141 G4bool IsBlocked( const G4Element *anElement) const; 143 142 … … 153 152 inline G4bool operator!=(const G4HadronicInteraction &right ) const 154 153 { return ( this != (G4HadronicInteraction *) &right ); } 154 155 156 inline std::pair<G4double, G4double> GetEnergyMomentumCheckLevels() const 157 { return epCheckLevels; } 158 159 inline void SetEnergyMomentumCheckLevels(G4double relativeLevel, G4double absoluteLevel) 160 { epCheckLevels.first = relativeLevel; 161 epCheckLevels.second = absoluteLevel; } 155 162 156 163 private: 157 164 158 165 G4HadronicInteraction(const G4HadronicInteraction &right ); 159 160 166 const G4HadronicInteraction& operator=(const G4HadronicInteraction &right); 161 167 … … 191 197 192 198 G4String theModelName; 193 199 200 std::pair<G4double, G4double> epCheckLevels; 201 194 202 std::vector<std::pair<G4double, const G4Material *> > theMinEnergyList; 195 203 std::vector<std::pair<G4double, const G4Material *> > theMaxEnergyList; -
trunk/source/processes/hadronic/models/management/src/G4HadronicInteraction.cc
r1228 r1315 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4HadronicInteraction.cc,v 1. 6 2009/08/30 16:12:34 vnivanchExp $27 // GEANT4 tag $Name: geant4-09-0 3$26 // $Id: G4HadronicInteraction.cc,v 1.7 2010/04/03 00:40:57 dennis Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 28 28 // 29 29 // Hadronic Interaction base class … … 40 40 G4HadronicInteraction::G4HadronicInteraction(const G4String& modelName) : 41 41 verboseLevel(0), theMinEnergy(0.0), theMaxEnergy(25.0*GeV), 42 isBlocked(false), recoilEnergyThreshold(0.0), theModelName(modelName) 42 isBlocked(false), recoilEnergyThreshold(0.0), theModelName(modelName), 43 epCheckLevels(DBL_MAX, DBL_MAX) 43 44 { 44 45 G4HadronicInteractionRegistry::Instance()->RegisterMe(this); 45 46 } 46 47 48 47 49 G4HadronicInteraction::~G4HadronicInteraction() 48 50 { 49 51 G4HadronicInteractionRegistry::Instance()->RemoveMe(this); 50 52 } 53 51 54 52 55 G4double -
trunk/source/processes/hadronic/models/management/src/G4HadronicInteractionRegistry.cc
r1228 r1315 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4HadronicInteractionRegistry.cc,v 1. 9 2009/12/02 15:57:57vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-0 3$26 // $Id: G4HadronicInteractionRegistry.cc,v 1.10 2010/03/25 15:31:42 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 28 28 // 29 29 // 23-Jan-2009 V.Ivanchenko make the class to be a singleton … … 96 96 //<< "> " << i << G4endl; 97 97 allModels[i] = 0; 98 if(i == nModels-1) allModels.pop_back();99 98 return; 100 99 }
Note:
See TracChangeset
for help on using the changeset viewer.
