Fork me on GitHub

Changeset f8a2939 in git


Ignore:
Timestamp:
Jun 26, 2017, 10:18:22 PM (7 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
dad68bd
Parents:
affe5c7
Message:

fixed bad initialization

Location:
modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/DenseTrackFilter.cc

    raffe5c7 rf8a2939  
    138138  TLorentzVector position, momentum;
    139139  Short_t etaBin, phiBin, flags;
    140   Int_t number;
     140  Int_t number, towerTrackHits;
    141141  Long64_t towerHit, towerEtaPhi, hitEtaPhi;
    142142
     
    189189  fTower = 0;
    190190  ptmax = 0.0;
     191  towerTrackHits = 0;
    191192
    192193  for(itTowerHits = fTowerHits.begin(); itTowerHits != fTowerHits.end(); ++itTowerHits)
     
    196197    number = (towerHit) & 0x0000000000FFFFFFLL;
    197198    hitEtaPhi = towerHit >> 32;
    198 
    199199    if(towerEtaPhi != hitEtaPhi)
    200200    {
     
    203203     
    204204      // saving track with highest pT that hit the tower
    205       if(fTowerTrackHits > 0)
     205      if(towerTrackHits > 0)
    206206      {
    207207         mother = bestTrack;
     
    218218
    219219      ptmax = 0.0;
    220       fTowerTrackHits = 0;
     220      towerTrackHits = 0;
    221221      bestTrack = 0;
    222222    }
     
    225225    if(flags & 1)
    226226    {
    227       ++fTowerTrackHits;
     227      ++towerTrackHits;
    228228      track = static_cast<Candidate*>(fTrackInputArray->At(number));
    229229      momentum = track->Momentum;
  • modules/DenseTrackFilter.h

    raffe5c7 rf8a2939  
    5454
    5555  Candidate *fTower;
    56   Int_t fTowerTrackHits;
    5756
    5857  Double_t fEtaPhiRes;
Note: See TracChangeset for help on using the changeset viewer.