Ignore:
Timestamp:
Apr 6, 2009, 12:30:29 PM (15 years ago)
Author:
garnier
Message:

update processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/cascade/cascade/src/G4PreCompoundCascadeInterface.cc

    r819 r962  
    130130  G4LorentzRotation toLabFrame = toZ.inverse();
    131131
    132   std::vector<G4double> momentumBullet(4);
     132  G4CascadeMomentum momentumBullet;
    133133  momentumBullet[0] =0.;
    134134  momentumBullet[1] =0;
     
    153153  G4DynamicParticle* cascadeParticle = 0;
    154154
    155   std::vector<G4double> targetMomentum(4, 0.0);
     155  G4CascadeMomentum targetMomentum;
    156156
    157157  G4double theNucleusA = theNucleus.GetN();
     
    163163    target->setEnergy();
    164164
    165     std::vector<G4double> bmom = bullet->getMomentum();
     165    const G4CascadeMomentum& bmom = bullet->getMomentum();
    166166    eInit = std::sqrt(bmom[0] * bmom[0]);
    167     std::vector<G4double> tmom = target->getMomentum();
     167    const G4CascadeMomentum& tmom = target->getMomentum();
    168168    eInit += std::sqrt(tmom[0] * tmom[0]);
    169169
     
    240240    sumBaryon += 1;
    241241
    242     std::vector<G4double> bmom = bullet->getMomentum();
     242    const G4CascadeMomentum& bmom = bullet->getMomentum();
    243243    eInit = std::sqrt(bmom[0] * bmom[0]);
    244     std::vector<G4double> tmom = targetH->getMomentum();
     244    const G4CascadeMomentum& tmom = targetH->getMomentum();
    245245    eInit += std::sqrt(tmom[0] * tmom[0]);
    246246
     
    290290    for (ipart = particles.begin(); ipart != particles.end(); ipart++) {
    291291      outgoingParticle = ipart->type();
    292       std::vector<G4double> mom = ipart->getMomentum();
     292      const G4CascadeMomentum& mom = ipart->getMomentum();
    293293      eTot   += std::sqrt(mom[0] * mom[0]);
    294294
     
    421421      {
    422422        G4double eKin = ifrag->getKineticEnergy() * GeV;
    423         std::vector<G4double> mom = ifrag->getMomentum();
     423        const G4CascadeMomentum& mom = ifrag->getMomentum();
    424424        eTot   += std::sqrt(mom[0] * mom[0]);
    425425
Note: See TracChangeset for help on using the changeset viewer.