Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/cascade/cascade/include/G4LorentzConvertor.hh

    r1337 r1340  
    2323// * acceptance of all terms of the Geant4 Software license.          *
    2424// ********************************************************************
    25 //
    26 // $Id: G4LorentzConvertor.hh,v 1.15.2.1 2010/06/25 09:43:36 gunter Exp $
    27 // Geant4 tag: $Name: geant4-09-04-beta-01 $
     25// $Id: G4LorentzConvertor.hh,v 1.17 2010/09/15 20:16:16 mkelsey Exp $
     26// Geant4 tag: $Name: hadr-casc-V09-03-85 $
    2827//
    2928// 20100108  Michael Kelsey -- Use G4LorentzVector internally
     
    3130// 20100126  M. Kelsey -- Remove G4CascadeMomentum, use G4LorentzVector directly
    3231// 20100519  M. Kelsey -- Add interfaces to pass G4InuclParticles directly
     32// 20100616  M. Kelsey -- Report bullet and target four-momenta when set
     33// 20100915  M. Kelsey -- Move constructors to .cc file, add initializers
    3334
    3435#ifndef G4LORENTZ_CONVERTOR_HH
     
    4243
    4344class G4LorentzConvertor {
    44 
    4545public:
    46 
    4746  G4LorentzConvertor();
    4847
    4948  G4LorentzConvertor(const G4LorentzVector& bmom, G4double bmass,
    50                      const G4LorentzVector& tmom, G4double tmass) {
    51     setBullet(bmom, bmass);
    52     setTarget(tmom, tmass);
    53   }
     49                     const G4LorentzVector& tmom, G4double tmass);
    5450
    5551  G4LorentzConvertor(const G4InuclParticle* bullet,
    56                      const G4InuclParticle* target) {
    57     setBullet(bullet);
    58     setTarget(target);
    59   }
     52                     const G4InuclParticle* target);
    6053
    6154  void setVerbose(G4int vb=0) { verboseLevel = vb; }
     
    6861
    6962  // Use correct four-vectors as input
    70   void setBullet(const G4LorentzVector& bmom) { bullet_mom = bmom; }
    71   void setTarget(const G4LorentzVector& bmom) { target_mom = bmom; }
     63  void setBullet(const G4LorentzVector& bmom) {
     64    bullet_mom = bmom;
     65    if (verboseLevel > 3) printBullet();
     66  }
    7267
    73   // NOTE:  These functions "repair" input 4-vectors using specified mass
     68  void setTarget(const G4LorentzVector& bmom) {
     69    target_mom = bmom;
     70    if (verboseLevel > 3) printTarget();
     71  }
     72
     73  // These functions "repair" input 4-vectors using specified mass
    7474  void setBullet(const G4LorentzVector& bmom, G4double bmass) {
    7575    bullet_mom.setVectM(bmom.vect(), bmass);
    76 
    77     //  G4cout << " bullet: e " << bullet_mom.e() << " mass "
    78     //         << bullet_mom.m() << G4endl;
    79   };
    80 
     76    if (verboseLevel > 3) printBullet();
     77  }
     78 
    8179  void setTarget(const G4LorentzVector& tmom, G4double tmass) {
    8280    target_mom.setVectM(tmom.vect(), tmass);
    83 
    84     //  G4cout << " target: e " << target_mom.e() << " mass "
    85     //         << target_mom.m() << G4endl;
    86   };
     81    if (verboseLevel > 3) printTarget();
     82  }
    8783
    8884  void toTheCenterOfMass();
     
    109105  G4bool trivial() const { return degenerated; }
    110106
     107  // Reporting functions for diagnostics
     108  void printBullet() const;
     109  void printTarget() const;
     110
    111111private:
    112112  static const G4double small;
Note: See TracChangeset for help on using the changeset viewer.