- Timestamp:
- Oct 7, 2016, 10:54:51 AM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 386f526, cb159ed
- Parents:
- f3be533
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/Validation.cpp
rf3be533 r06a83b3 263 263 //if(Momentum.Px() == 0 && genMomentum.Py() == 0) continue; 264 264 265 266 265 267 // take the closest parton candidate 266 268 if(TMath::Abs(pdgID) == 5) … … 277 279 if( !(jet->BTag & (1 << 0)) ) continue; 278 280 } 279 280 281 282 if(TMath::Abs(pdgID) == 1) 281 283 { 282 284 Jet *jet = (Jet *)recoObj; 283 285 if( !(jet->BTag & (1 << 0)) ) continue; 284 286 } 285 287 … … 1349 1351 TClonesArray *branchPFJet = treeReaderJet->UseBranch("PFJet"); 1350 1352 TClonesArray *branchCaloJet = treeReaderJet->UseBranch("CaloJet"); 1351 1353 TClonesArray *branchJet = treeReaderJet->UseBranch("Jet"); 1354 1352 1355 TClonesArray *branchParticleBJet = treeReaderBJet->UseBranch("Particle"); 1353 1356 TClonesArray *branchPFBJet = treeReaderBJet->UseBranch("Jet"); … … 2557 2560 for (k = 0; k < etaVals.size()-1; k++) 2558 2561 { 2559 2560 h_recbjet_lmis_pt = GetEffPt<Jet>(branch PFJet, branchParticleJet, "Jet", 1, ptMin, ptMax, etaVals.at(k), etaVals.at(k+1), treeReaderJet);2562 2563 h_recbjet_lmis_pt = GetEffPt<Jet>(branchJet, branchParticleJet, "Jet", 1, ptMin, ptMax, etaVals.at(k), etaVals.at(k+1), treeReaderJet); 2561 2564 gr_recbjet_lmis_pt[k] = TGraphErrors(h_recbjet_lmis_pt); 2562 2565 … … 2574 2577 for (k = 0; k < ptVals.size(); k++) 2575 2578 { 2576 h_recbjet_lmis_eta = GetEffEta<Jet>(branch PFJet, branchParticleJet, "Jet", 1, 0.5*ptVals.at(k), 2.0*ptVals.at(k) ,etaMin, etaMax , treeReaderJet);2579 h_recbjet_lmis_eta = GetEffEta<Jet>(branchJet, branchParticleJet, "Jet", 1, 0.5*ptVals.at(k), 2.0*ptVals.at(k) ,etaMin, etaMax , treeReaderJet); 2577 2580 gr_recbjet_lmis_eta[k] = TGraphErrors(h_recbjet_lmis_eta); 2578 2581 … … 2687 2690 { 2688 2691 2689 h_rectaujet_mis_pt = GetTauEffPt<Jet>(branch PFJet, branchParticleJet, "TauJet", 1, ptMin, ptMax, etaVals.at(k), etaVals.at(k+1), treeReaderJet);2692 h_rectaujet_mis_pt = GetTauEffPt<Jet>(branchJet, branchParticleJet, "TauJet", 1, ptMin, ptMax, etaVals.at(k), etaVals.at(k+1), treeReaderJet); 2690 2693 gr_rectaujet_mis_pt[k] = TGraphErrors(h_rectaujet_mis_pt); 2691 2694 … … 2703 2706 for (k = 0; k < ptVals.size(); k++) 2704 2707 { 2705 h_rectaujet_mis_eta = GetTauEffEta<Jet>(branch PFJet, branchParticleJet, "TauJet", 1, 0.5*ptVals.at(k), 2.0*ptVals.at(k) ,etaMin, etaMax , treeReaderJet);2708 h_rectaujet_mis_eta = GetTauEffEta<Jet>(branchJet, branchParticleJet, "TauJet", 1, 0.5*ptVals.at(k), 2.0*ptVals.at(k) ,etaMin, etaMax , treeReaderJet); 2706 2709 gr_rectaujet_mis_eta[k] = TGraphErrors(h_rectaujet_mis_eta); 2707 2710
Note:
See TracChangeset
for help on using the changeset viewer.