Fork me on GitHub

Changes in / [3b3071a:64294db] in git


Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/TauTagging.cc

    r3b3071a r64294db  
    8383    daughter1 = static_cast<Candidate *>(fParticleInputArray->At(i));
    8484    pdgCode = TMath::Abs(daughter1->PID);
    85     //if(pdgCode == 11 || pdgCode == 13 || pdgCode == 15)
    86     //  return -1;
    87     if(pdgCode == 24)
     85    if(pdgCode == 11 || pdgCode == 13 || pdgCode == 15)
     86      return -1;
     87    else if(pdgCode == 24)
    8888    {
    8989      if(daughter1->D1 < 0) return -1;
     
    9696    }
    9797  }
     98
    9899  return 0;
    99100}
     
    189190void TauTagging::Process()
    190191{
    191   Candidate *jet, *tau, *daughter, *part;
     192  Candidate *jet, *tau, *daughter;
    192193  TLorentzVector tauMomentum;
    193194  Double_t pt, eta, phi, e, eff;
     
    203204  // loop over all input jets
    204205  fItJetInputArray->Reset();
    205 
    206206  while((jet = static_cast<Candidate *>(fItJetInputArray->Next())))
    207207  {
    208 
    209208    const TLorentzVector &jetMomentum = jet->Momentum;
    210209    pdgCode = 0;
     
    244243      }
    245244    }
    246    
    247     // fake electrons and muons
    248    
    249     if (pdgCode == 0)
    250     {
    251      
    252       Double_t drMin = fDeltaR;   
    253       fItPartonInputArray->Reset();
    254       while((part = static_cast<Candidate *>(fItPartonInputArray->Next())))
    255       {
    256         if(TMath::Abs(part->PID) == 11 || TMath::Abs(part->PID) == 13)
    257         {
    258             tauMomentum = part->Momentum;
    259             if (tauMomentum.Pt() < fClassifier->fPTMin) continue;
    260             if (TMath::Abs(tauMomentum.Eta()) > fClassifier->fEtaMax) continue;
    261 
    262             Double_t dr = jetMomentum.DeltaR(tauMomentum);
    263             if( dr < drMin)
    264             {
    265                drMin = dr;
    266                pdgCode = TMath::Abs(part->PID);
    267                charge = part->Charge;
    268             } 
    269         }
    270       }
    271     }
    272 
    273245    // find an efficency formula
    274246    itEfficiencyMap = fEfficiencyMap.find(pdgCode);
  • readers/DelphesCMSFWLite.cpp

    r3b3071a r64294db  
    217217      // Prevent duplicated particle.
    218218      if(!isMiniAOD) stableParticleOutputArray->Add(candidate);
    219       if (pdgCode == 11 || pdgCode == 13) partonOutputArray->Add(candidate);
    220     }
    221     //else if(pdgCode <= 5 || pdgCode == 21 || pdgCode == 15)
    222     else if(pdgCode <= 5 || pdgCode == 21 || pdgCode == 11 || pdgCode == 13 || pdgCode == 15)
     219    }
     220    else if(pdgCode <= 5 || pdgCode == 21 || pdgCode == 15)
    223221    {
    224222      partonOutputArray->Add(candidate);
Note: See TracChangeset for help on using the changeset viewer.