Fork me on GitHub

Changeset 64a4950 in git for modules/Hector.cc


Ignore:
Timestamp:
Apr 16, 2014, 3:57:35 PM (11 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
a0431dc
Parents:
3c40083
Message:

add Particle reference to HectorHit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/Hector.cc

    r3c40083 r64a4950  
    112112    pz = candidateMomentum.Pz();
    113113
    114     if(candidateMomentum.Eta() <= fEtaMin || fDirection*pz <= 0.0) continue;
     114    if(TMath::Abs(candidateMomentum.Eta()) <= fEtaMin || TMath::Sign(pz, Double_t(fDirection)) != pz) continue;
    115115
    116116    x = 1.0E3 * candidatePosition.X();
     
    129129
    130130    H_BeamParticle particle(candidate->Mass, candidate->Charge);
    131     particle.set4Momentum(candidateMomentum);
     131//    particle.set4Momentum(candidateMomentum);
     132    particle.set4Momentum(candidateMomentum.Px(), candidateMomentum.Py(),
     133                          candidateMomentum.Pz(), candidateMomentum.E());
    132134    particle.setPosition(x, y, tx, ty, z);
    133135
Note: See TracChangeset for help on using the changeset viewer.