Ignore:
Timestamp:
Dec 22, 2010, 3:52:27 PM (13 years ago)
Author:
garnier
Message:

geant4 tag 9.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/high_energy/include/G4HEVector.hh

    r1340 r1347  
    2525//
    2626//
    27 // $Id: G4HEVector.hh,v 1.12 2006/06/29 20:29:48 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-03-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 $
    2929//
    3030//
     
    9191     baryon           = 0;
    9292     strangeness      = 0;
     93     for (G4int i = 0; i < NumberOfQuarkFlavor; i++) {
     94       theQuarkContent[i] = 0;
     95       theAntiQuarkContent[i] = 0;
     96     }
    9397   }
    9498
     
    150154   const G4ParticleMomentum getMomentum() const ;
    151155
    152    G4double getTotalMomentum();
     156   G4double getTotalMomentum() const;
    153157
    154158   void setMomentum( G4double x, G4double y, G4double z);
     
    172176   void setKineticEnergyAndUpdate(G4double ekin);
    173177
    174    G4double getEnergy();
    175 
    176    G4double getKineticEnergy();
     178   G4double getEnergy() const;
     179
     180   G4double getKineticEnergy() const;
    177181
    178182   void setMass( G4double m );
     
    180184   void setMassAndUpdate( G4double m );
    181185
    182    G4double getMass();
     186   G4double getMass() const;
    183187
    184188   void setCharge( G4double c );
    185189
    186    G4double getCharge();
     190   G4double getCharge() const;
    187191
    188192   void setTOF( G4double t );
     
    200204   void setCode( G4int c );
    201205
    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;
    209213
    210214   G4int getQuarkContent(G4int flavor);
     
    214218   void setZero();
    215219
    216    G4String getType();
     220   G4String getType() const;
    217221
    218222   void Add( const G4HEVector & p1, const G4HEVector & p2 );
     
    222226   void Lor( const G4HEVector & p1, const G4HEVector & p2 );
    223227
    224    G4double CosAng( const G4HEVector & p );
     228   G4double CosAng(const G4HEVector& p) const;
    225229
    226230   G4double Ang(const G4HEVector & p );
     
    244248   void Norz( const G4HEVector & p );
    245249
    246    G4double Length();
     250   G4double Length() const;
    247251
    248252   void Exch( G4HEVector & p1);
     
    260264   G4int FillQuarkContent();
    261265
    262    void Print( G4int L);
     266   void Print(G4int L) const;
    263267};
    264268
    265269#endif
    266270
    267 
Note: See TracChangeset for help on using the changeset viewer.