Fork me on GitHub

Changeset 215ee01 in git


Ignore:
Timestamp:
Feb 27, 2015, 10:36:23 PM (10 years ago)
Author:
Sho Iwamoto <sho@…>
Parents:
8ab9694 (diff), 20dc57b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge 20dc57b6880472585a8520390f3f894a8ae1dca3 into 8ab969494a0fa92452f3bbe1154a63340c3634a4

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.