- Timestamp:
- Dec 22, 2010, 3:52:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/high_energy/include/G4HEVector.hh
r1340 r1347 25 25 // 26 26 // 27 // $Id: G4HEVector.hh,v 1.1 2 2006/06/29 20:29:48 gunterExp $28 // GEANT4 tag $Name: geant4-09-0 3-ref-09$27 // $Id: G4HEVector.hh,v 1.15 2010/11/29 05:45:06 dennis Exp $ 28 // GEANT4 tag $Name: geant4-09-04-ref-00 $ 29 29 // 30 30 // … … 91 91 baryon = 0; 92 92 strangeness = 0; 93 for (G4int i = 0; i < NumberOfQuarkFlavor; i++) { 94 theQuarkContent[i] = 0; 95 theAntiQuarkContent[i] = 0; 96 } 93 97 } 94 98 … … 150 154 const G4ParticleMomentum getMomentum() const ; 151 155 152 G4double getTotalMomentum() ;156 G4double getTotalMomentum() const; 153 157 154 158 void setMomentum( G4double x, G4double y, G4double z); … … 172 176 void setKineticEnergyAndUpdate(G4double ekin); 173 177 174 G4double getEnergy() ;175 176 G4double getKineticEnergy() ;178 G4double getEnergy() const; 179 180 G4double getKineticEnergy() const; 177 181 178 182 void setMass( G4double m ); … … 180 184 void setMassAndUpdate( G4double m ); 181 185 182 G4double getMass() ;186 G4double getMass() const; 183 187 184 188 void setCharge( G4double c ); 185 189 186 G4double getCharge() ;190 G4double getCharge() const; 187 191 188 192 void setTOF( G4double t ); … … 200 204 void setCode( G4int c ); 201 205 202 G4int getCode() ;203 204 G4String getName() ;205 206 G4int getBaryonNumber() ;207 208 G4int getStrangenessNumber() ;206 G4int getCode() const; 207 208 G4String getName() const; 209 210 G4int getBaryonNumber() const; 211 212 G4int getStrangenessNumber() const; 209 213 210 214 G4int getQuarkContent(G4int flavor); … … 214 218 void setZero(); 215 219 216 G4String getType() ;220 G4String getType() const; 217 221 218 222 void Add( const G4HEVector & p1, const G4HEVector & p2 ); … … 222 226 void Lor( const G4HEVector & p1, const G4HEVector & p2 ); 223 227 224 G4double CosAng( const G4HEVector & p );228 G4double CosAng(const G4HEVector& p) const; 225 229 226 230 G4double Ang(const G4HEVector & p ); … … 244 248 void Norz( const G4HEVector & p ); 245 249 246 G4double Length() ;250 G4double Length() const; 247 251 248 252 void Exch( G4HEVector & p1); … … 260 264 G4int FillQuarkContent(); 261 265 262 void Print( G4int L);266 void Print(G4int L) const; 263 267 }; 264 268 265 269 #endif 266 270 267
Note: See TracChangeset
for help on using the changeset viewer.