Changeset 921 for trunk/source/global/management/include
- Timestamp:
- Feb 16, 2009, 10:14:30 AM (15 years ago)
- Location:
- trunk/source/global/management/include
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/global/management/include/G4LPhysicsFreeVector.hh
r850 r921 25 25 // 26 26 // 27 // $Id: G4LPhysicsFreeVector.hh,v 1.1 0 2008/04/07 14:18:57gcosmo Exp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4LPhysicsFreeVector.hh,v 1.11 2008/09/22 08:26:33 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 29 // 30 30 // … … 62 62 ~G4LPhysicsFreeVector(); 63 63 64 G4LPhysicsFreeVector(const G4LPhysicsFreeVector&); 65 G4LPhysicsFreeVector& operator=(const G4LPhysicsFreeVector&); 66 // Copy constructor and assignment operator. 67 64 68 void PutValues(size_t binNumber, G4double binValue, G4double dataValue); 65 69 // G4PhysicsVector has PutValue() but it is inconvenient. -
trunk/source/global/management/include/G4LPhysicsFreeVector.icc
r850 r921 25 25 // 26 26 // 27 // $Id: G4LPhysicsFreeVector.icc,v 1.1 1 2008/09/06 19:52:16 vnivanchExp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4LPhysicsFreeVector.icc,v 1.13 2008/09/22 08:26:33 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 29 // 30 30 // … … 40 40 // 41 41 // F.W. Jones, TRIUMF, 04-JUN-96 42 // 05 Sep. 2008, V.Ivanchenko : added protections for zero-length vector43 42 // -------------------------------------------------------------------------- 44 43 … … 49 48 // Want to simultaneously fill the bin and data vectors. 50 49 { 51 if(binNumber <= numberOfBin) {52 binVector[binNumber] = binValue;53 dataVector[binNumber]= dataValue;54 if(0 == binNumber) edgeMin = binValue;55 else if( numberOfBin - 1 == binNumber) edgeMax = binValue;56 }50 binVector[binNumber] = binValue; 51 dataVector[binNumber] = dataValue; 52 if(binNumber == 0) 53 { edgeMin = binValue; } 54 else if( numberOfBin - 1 == binNumber) 55 { edgeMax = binValue; } 57 56 } 58 57 -
trunk/source/global/management/include/G4PhysicsFreeVector.hh
r850 r921 25 25 // 26 26 // 27 // $Id: G4PhysicsFreeVector.hh,v 1.1 0 2006/06/29 19:02:18 gunterExp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4PhysicsFreeVector.hh,v 1.12 2008/09/22 14:49:57 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 29 // 30 30 // -
trunk/source/global/management/include/G4PhysicsLinearVector.hh
r850 r921 25 25 // 26 26 // 27 // $Id: G4PhysicsLinearVector.hh,v 1.1 0 2006/06/29 19:02:21 gunterExp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4PhysicsLinearVector.hh,v 1.11 2008/09/22 11:37:09 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 29 // 30 30 // … … 73 73 // Destructor 74 74 75 G4PhysicsLinearVector(const G4PhysicsLinearVector&); 76 G4PhysicsLinearVector& operator=(const G4PhysicsLinearVector&); 77 // Copy constructor and assignment operator. 78 75 79 G4bool Retrieve(std::ifstream& fIn, G4bool ascii); 76 80 -
trunk/source/global/management/include/G4PhysicsLnVector.hh
r850 r921 25 25 // 26 26 // 27 // $Id: G4PhysicsLnVector.hh,v 1.1 2 2006/06/29 19:02:23 gunterExp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4PhysicsLnVector.hh,v 1.13 2008/09/22 11:37:09 vnivanch Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 29 // 30 30 // … … 70 70 // Destructor. 71 71 72 G4PhysicsLnVector(const G4PhysicsLnVector&); 73 G4PhysicsLnVector& operator=(const G4PhysicsLnVector&); 74 // Copy constructor and assignment operator. 75 72 76 G4bool Retrieve(std::ifstream& fIn, G4bool ascii); 73 77 // To retrieve persistent data from file stream. -
trunk/source/global/management/include/G4PhysicsLogVector.hh
r850 r921 25 25 // 26 26 // 27 // $Id: G4PhysicsLogVector.hh,v 1.1 1 2006/06/29 19:02:25 gunterExp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4PhysicsLogVector.hh,v 1.13 2008/09/22 08:26:33 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 29 // 30 30 // … … 75 75 // Destructor 76 76 77 G4PhysicsLogVector(const G4PhysicsLogVector&); 78 G4PhysicsLogVector& operator=(const G4PhysicsLogVector&); 79 // Copy constructor and assignment operator. 80 77 81 G4bool Retrieve(std::ifstream& fIn, G4bool ascii); 78 82 // To retrieve persistent data from file stream. 79 83 80 84 protected: 81 85 -
trunk/source/global/management/include/G4PhysicsOrderedFreeVector.hh
r850 r921 25 25 // 26 26 // 27 // $Id: G4PhysicsOrderedFreeVector.hh,v 1. 9 2006/06/29 19:02:28 gunterExp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4PhysicsOrderedFreeVector.hh,v 1.11 2008/09/22 14:49:57 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 29 // 30 30 //////////////////////////////////////////////////////////////////////// -
trunk/source/global/management/include/G4PhysicsVector.hh
r850 r921 25 25 // 26 26 // 27 // $Id: G4PhysicsVector.hh,v 1.1 7 2008/04/07 14:18:57gcosmo Exp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4PhysicsVector.hh,v 1.18 2008/09/22 08:26:33 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 29 // 30 30 // … … 144 144 // Find the bin# in which theEnergy belongs - pure virtual function 145 145 146 void DeleteData(); 147 void CopyData(const G4PhysicsVector& vec); 148 // Internal methods for allowing copy of objects 149 150 protected: 151 146 152 typedef std::vector<G4double> G4PVDataVector; 147 153 -
trunk/source/global/management/include/G4PhysicsVector.icc
r850 r921 25 25 // 26 26 // 27 // $Id: G4PhysicsVector.icc,v 1.1 4 2008/09/05 18:04:45 vnivanchExp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4PhysicsVector.icc,v 1.17 2008/09/22 08:26:33 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 29 // 30 30 // … … 41 41 // energy scale, for example like 'log', 'linear', 'free', etc. 42 42 // 43 // Modified:44 // 05 Sep. 2008, V.Ivanchenko : added protections for zero-length vector45 43 //--------------------------------------------------------------- 46 44 … … 127 125 if( theEnergy == lastEnergy ) { 128 126 129 } else if( theEnergy <= edgeMin ) {130 lastBin = 0;131 lastEnergy = theEnergy;132 lastValue = dataVector[0];133 134 127 } else if(theEnergy < lastEnergy && theEnergy >= binVector[lastBin]) { 135 128 lastEnergy = theEnergy; 136 129 Interpolation(); 130 131 } else if( theEnergy <= edgeMin ) { 132 lastBin = 0; 133 lastEnergy = edgeMin; 134 lastValue = dataVector[0]; 137 135 138 136 } else if(theEnergy < lastEnergy && theEnergy >= binVector[lastBin-1]) { … … 168 166 void G4PhysicsVector::PutValue(size_t binNumber, G4double theValue) 169 167 { 170 if(binNumber < numberOfBin) { 171 dataVector[binNumber] = theValue; 172 173 // Fill the bin which is hidden to user with theValue. This is to 174 // handle correctly when Energy=theEmax in getValue. 175 176 if(binNumber==numberOfBin-1) { dataVector[binNumber+1] = theValue; } 177 } 168 dataVector[binNumber] = theValue; 169 170 // Fill the bin which is hidden to user with theValue. This is to 171 // handle correctly when Energy=theEmax in getValue. 172 173 if(binNumber==numberOfBin-1) { dataVector[binNumber+1] = theValue; } 178 174 } 179 175 -
trunk/source/global/management/include/G4Version.hh
r850 r921 25 25 // 26 26 // 27 // $Id: G4Version.hh,v 1.1 6 2008/06/26 06:38:51gcosmo Exp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4Version.hh,v 1.17 2008/12/02 09:15:58 gcosmo Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 29 // 30 30 // Version information … … 51 51 52 52 #ifndef G4VERSION_TAG 53 #define G4VERSION_TAG "$Name: HEAD$"53 #define G4VERSION_TAG "$Name: geant4-09-02-cand-01 $" 54 54 #endif 55 55 … … 58 58 #include "G4String.hh" 59 59 60 static const G4String G4Version = "$Name: HEAD$";61 static const G4String G4Date = "( 4-July-2008)";60 static const G4String G4Version = "$Name: geant4-09-02-cand-01 $"; 61 static const G4String G4Date = "(19-December-2008)"; 62 62 63 63 #endif
Note: See TracChangeset
for help on using the changeset viewer.