Fork me on GitHub

Changeset 1366 in svn


Ignore:
Timestamp:
04/16/14 15:57:35 (6 years ago)
Author:
pavel
Message:

add Particle reference to HectorHit?

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/classes/DelphesClasses.h

    r1361 r1366  
    404404  Float_t S; // distance to the interaction point [m]
    405405
     406  TRef Particle; // reference to generated particle
     407
    406408  static CompBase *fgCompare; //!
    407409  const CompBase *GetCompare() const { return fgCompare; }
  • trunk/modules/Hector.cc

    r1362 r1366  
    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
  • trunk/modules/TreeWriter.cc

    r1361 r1366  
    658658    entry->Y = position.Y();
    659659    entry->S = position.Z();
     660
     661    entry->Particle = candidate->GetCandidates()->At(0);
    660662  }
    661663}
Note: See TracChangeset for help on using the changeset viewer.