Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesHepMC2Reader.cc

    rcc8716b rb4786d3  
    438438{
    439439  Candidate *candidate;
    440   Candidate *candidateDaughter;
    441440  map<int, pair<int, int> >::iterator itMotherMap;
    442441  map<int, pair<int, int> >::iterator itDaughterMap;
     
    447446    candidate = static_cast<Candidate *>(allParticleOutputArray->At(i));
    448447
    449 
    450448    if(candidate->M1 > 0)
    451449    {
     
    479477        candidate->D1 = -1;
    480478        candidate->D2 = -1;
    481         const TLorentzVector &decayPosition = candidate->Position;
    482         candidate->DecayPosition.SetXYZT(decayPosition.X(), decayPosition.Y(), decayPosition.Z(), decayPosition.T());// decay position
    483      }
     479      }
    484480      else
    485481      {
    486482        candidate->D1 = itDaughterMap->second.first;
    487483        candidate->D2 = itDaughterMap->second.second;
    488         candidateDaughter = static_cast<Candidate *>(allParticleOutputArray->At(candidate->D1));
    489         const TLorentzVector &decayPosition = candidateDaughter->Position;
    490         candidate->DecayPosition.SetXYZT(decayPosition.X(), decayPosition.Y(), decayPosition.Z(), decayPosition.T());// decay position
    491        
    492 
    493       }
    494     }
    495   }
    496 }
    497 
    498 //---------------------------------------------------------------------------
     484      }
     485    }
     486  }
     487}
     488
     489//---------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.