Changes in / [3b3071a:64294db] in git
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TauTagging.cc
r3b3071a r64294db 83 83 daughter1 = static_cast<Candidate *>(fParticleInputArray->At(i)); 84 84 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) 88 88 { 89 89 if(daughter1->D1 < 0) return -1; … … 96 96 } 97 97 } 98 98 99 return 0; 99 100 } … … 189 190 void TauTagging::Process() 190 191 { 191 Candidate *jet, *tau, *daughter , *part;192 Candidate *jet, *tau, *daughter; 192 193 TLorentzVector tauMomentum; 193 194 Double_t pt, eta, phi, e, eff; … … 203 204 // loop over all input jets 204 205 fItJetInputArray->Reset(); 205 206 206 while((jet = static_cast<Candidate *>(fItJetInputArray->Next()))) 207 207 { 208 209 208 const TLorentzVector &jetMomentum = jet->Momentum; 210 209 pdgCode = 0; … … 244 243 } 245 244 } 246 247 // fake electrons and muons248 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 273 245 // find an efficency formula 274 246 itEfficiencyMap = fEfficiencyMap.find(pdgCode); -
readers/DelphesCMSFWLite.cpp
r3b3071a r64294db 217 217 // Prevent duplicated particle. 218 218 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) 223 221 { 224 222 partonOutputArray->Add(candidate);
Note:
See TracChangeset
for help on using the changeset viewer.