Fork me on GitHub

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


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TauTagging.cc

    r8ab9694 r215ee01  
    6161{
    6262  Candidate *tau = static_cast<Candidate *>(object);
    63   Candidate *daughter1 = 0;
    64   Candidate *daughter2 = 0;
    6563 
    6664  const TLorentzVector &momentum = tau->Momentum;
    67   Int_t pdgCode, i, j;
    68 
    69   pdgCode = TMath::Abs(tau->PID);
     65
     66  Int_t pdgCode = TMath::Abs(tau->PID);
    7067  if(pdgCode != 15) return -1;
    7168
     
    8279  }
    8380
    84   for(i = tau->D1; i <= tau->D2; ++i)
    85   {
    86     daughter1 = static_cast<Candidate *>(fParticleInputArray->At(i));
     81  for(Int_t i = tau->D1; i <= tau->D2; ++i)
     82  {
     83    Candidate *daughter1 = static_cast<Candidate *>(fParticleInputArray->At(i));
    8784    pdgCode = TMath::Abs(daughter1->PID);
    8885    if(pdgCode == 11 || pdgCode == 13 || pdgCode == 15) return -1;
     
    9087    {
    9188     if(daughter1->D1 < 0) return -1;
    92      for(j = daughter1->D1; j <= daughter1->D2; ++j)
     89     for(Int_t j = daughter1->D1; j <= daughter1->D2; ++j)
    9390     {
    94        daughter2 = static_cast<Candidate*>(fParticleInputArray->At(j));
     91       Candidate *daughter2 = static_cast<Candidate*>(fParticleInputArray->At(j));
    9592       pdgCode = TMath::Abs(daughter2->PID);
    9693       if(pdgCode == 11 || pdgCode == 13) return -1;
Note: See TracChangeset for help on using the changeset viewer.