Fork me on GitHub

Changes in / [215ee01:8ab9694] in git


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TauTagging.cc

    r215ee01 r8ab9694  
    6161{
    6262  Candidate *tau = static_cast<Candidate *>(object);
     63  Candidate *daughter1 = 0;
     64  Candidate *daughter2 = 0;
    6365 
    6466  const TLorentzVector &momentum = tau->Momentum;
    65 
    66   Int_t pdgCode = TMath::Abs(tau->PID);
     67  Int_t pdgCode, i, j;
     68
     69  pdgCode = TMath::Abs(tau->PID);
    6770  if(pdgCode != 15) return -1;
    6871
     
    7982  }
    8083
    81   for(Int_t i = tau->D1; i <= tau->D2; ++i)
    82   {
    83     Candidate *daughter1 = static_cast<Candidate *>(fParticleInputArray->At(i));
     84  for(i = tau->D1; i <= tau->D2; ++i)
     85  {
     86    daughter1 = static_cast<Candidate *>(fParticleInputArray->At(i));
    8487    pdgCode = TMath::Abs(daughter1->PID);
    8588    if(pdgCode == 11 || pdgCode == 13 || pdgCode == 15) return -1;
     
    8790    {
    8891     if(daughter1->D1 < 0) return -1;
    89      for(Int_t j = daughter1->D1; j <= daughter1->D2; ++j)
     92     for(j = daughter1->D1; j <= daughter1->D2; ++j)
    9093     {
    91        Candidate *daughter2 = static_cast<Candidate*>(fParticleInputArray->At(j));
     94       daughter2 = static_cast<Candidate*>(fParticleInputArray->At(j));
    9295       pdgCode = TMath::Abs(daughter2->PID);
    9396       if(pdgCode == 11 || pdgCode == 13) return -1;
Note: See TracChangeset for help on using the changeset viewer.