Changeset 8 in huonglan
- Timestamp:
- Aug 22, 2011, 2:04:28 PM (13 years ago)
- Location:
- ANA2011
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ANA2011/InitHistos.h
r6 r8 26 26 TString Match[2] = {"_match_allevents","_match_chi2"}; 27 27 for (int i = 0; i < 2; i++) { 28 name = "category"; name += Match[i];28 name = "category"; name += Match[i]; 29 29 m_category[i] = new TH1F(name, "", 50, 0, 50); 30 30 fOutput->Add(m_category[i]); -
ANA2011/MyAdd.h
r6 r8 35 35 pair<unsigned int, vector<TLorentzVector> > matchQstat2Jets(std::vector<Particle>, std::vector<Particle>, bool); 36 36 void TruthAna(double,vector<Particle>,vector<Particle>,bool,Particle,int,int,vector<TLorentzVector>,vector<TLorentzVector>,vector<TLorentzVector>,TLorentzVector,TLorentzVector,double,double,double); 37 void FillFlavourChi2(vector<TLorentzVector>,vector<Particle>,TLorentzVector,TLorentzVector,TLorentzVector,TLorentzVector); 38 37 39 void TagTop172(vector<Particle>,vector<TLorentzVector>,vector<TLorentzVector>,bool); 38 40 bool emuOverlap(vector<int>); … … 239 241 b_LeadingJetsInChi2, 240 242 b_catAll, 241 b_catChi2; 243 b_catChi2, 244 b_flavjbqq, 245 b_flavjq1W, 246 b_flavjq2W, 247 b_flavjben, 248 b_NRealbChi2; 249 242 250 Double_t b_dsigmaGG, b_dsigmaQQ, b_dsigmatot, 243 251 b_chi2minmin, b_chi2second, b_chi2New, -
ANA2011/SetBranchTreeAna.h
r6 r8 123 123 124 124 tree_ana->Branch("catChi2", &b_catChi2, "catChi2/I"); 125 tree_ana->Branch("flavjbqq", &b_flavjbqq, "flavjbqq/I"); 126 tree_ana->Branch("flavjq1W", &b_flavjq1W, "flavjq1W/I"); 127 tree_ana->Branch("flavjq2W", &b_flavjq2W, "flavjq2W/I"); 128 tree_ana->Branch("flavjben", &b_flavjben, "flavjben/I"); 129 tree_ana->Branch("NRealbChi2", &b_NRealbChi2, "NRealbChi2/I"); -
ANA2011/ana2011.C
r5 r8 68 68 #include "MatchTrigger.C" 69 69 #include "ana2011AddFunctions.C" 70 #include "FunctionsFlavourChi2.C" 70 71 #include "emuOverlap.C" 71 72 #include "SF.C" … … 755 756 float ip3d = jet_flavor_weight_Comb->at(i); 756 757 m_ip3dsv1[lab]->Fill(max(-19.99,min(ip3d,39.99))); 758 float combnn = jet_flavor_weight_JetFitterCOMBNN->at(i); 757 759 // 758 if (sv0 > 5.85){ 760 //if (sv0 > 5.85){ 761 if (combnn > 2.0){ 759 762 hasbtagged = true; 760 763 bjets.push_back(v4j); … … 774 777 double Ptmax = 1e-30; 775 778 vector<TLorentzVector> vGoodJets; 779 vector<int> vGoodJetsFlav; 776 780 777 781 unsigned int nGoodJets = goodJets.size(); … … 782 786 //for (unsigned int i = 0; i < 4; i++){ 783 787 Particle parj = goodJets.at(i); 788 vGoodJetsFlav.push_back(parj.POL()); 784 789 TLorentzVector v4 = parj.vector4(); 785 790 vGoodJets.push_back(v4); … … 1400 1405 //############## STAR CHI2 ################# 1401 1406 //######################################################## 1402 bool doChi2Ana = false;1407 bool doChi2Ana = true; 1403 1408 if (!doChi2Ana) return kTRUE; 1404 1409 … … 1769 1774 FourJetsChi2.push_back(jq2W); 1770 1775 FourJetsChi2.push_back(jben); 1776 1777 //Flavour Chi2 1778 FillFlavourChi2(vGoodJets,goodJets,jbqq,jq1W,jq2W,jben); 1771 1779 1772 1780 //Matrix Element … … 2756 2764 b_pTtoplep=vtlminmin.Pt()/1000; 2757 2765 b_pZtophad=vthminmin.Z()/1000; 2758 b_pZttbar=vttpairchi2.Z()/1000 2766 b_pZttbar=vttpairchi2.Z()/1000; 2759 2767 2760 2768 b_ptjbqq=jbqq.Pt()/1000.; … … 3021 3029 b_jet_flavor_weight_SV0->GetEntry(entry); 3022 3030 b_jet_flavor_weight_Comb->GetEntry(entry); 3031 b_jet_flavor_weight_JetFitterCOMBNN->GetEntry(entry); 3023 3032 if (!RealData) 3024 3033 b_jet_flavor_truth_label->GetEntry(entry);
Note: See TracChangeset
for help on using the changeset viewer.