void BareJets::setBranchAddresses(TTree* t, std::string prefix) { cachedPrefix = prefix; TString jetName("jet" + cachedPrefix); BareP4::setBranchAddresses(t,jetName.Data()); BareFunctions::SetBranchAddress(t,jetName + "RawPt" ,&rawPt); BareFunctions::SetBranchAddress(t,jetName + "RefPt" ,&refPt); BareFunctions::SetBranchAddress(t,jetName + "Bdiscr" ,&bDiscr); BareFunctions::SetBranchAddress(t,jetName + "BdiscrLegacy" ,&bDiscrLegacy); BareFunctions::SetBranchAddress(t,jetName + "PuId" ,&puId); BareFunctions::SetBranchAddress(t,jetName + "Unc" ,&unc); BareFunctions::SetBranchAddress(t,jetName + "QGL" ,&qgl); BareFunctions::SetBranchAddress(t,jetName + "QglMult" ,&qglMult); BareFunctions::SetBranchAddress(t,jetName + "QglPtD" ,&qglPtD); BareFunctions::SetBranchAddress(t,jetName + "QglAxis2" ,&qglAxis2); BareFunctions::SetBranchAddress(t,jetName + "Flavour" ,&flavour); BareFunctions::SetBranchAddress(t,jetName + "MatchedPartonPdgId", &matchedPartonPdgId); BareFunctions::SetBranchAddress(t,jetName + "MotherPdgId", &motherPdgId); BareFunctions::SetBranchAddress(t,jetName + "GrMotherPdgId", &grMotherPdgId); BareFunctions::SetBranchAddress(t,jetName + "SelBits", &selBits); // --- BareFunctions::SetBranchAddress(t,jetName + "Q",&Q); BareFunctions::SetBranchAddress(t,jetName + "QnoPU",&QnoPU); // --- BareFunctions::SetBranchAddress(t,jetName + "PtResUncCentral" ,&ptResUncCentral); BareFunctions::SetBranchAddress(t,jetName + "PtResUncUp" ,&ptResUncUp); BareFunctions::SetBranchAddress(t,jetName + "PtResUncDown" ,&ptResUncDown); // BareFunctions::SetBranchAddress(t,jetName + "chef" ,&chef); BareFunctions::SetBranchAddress(t,jetName + "nhef" ,&nhef); }
void BareFatJets::setBranchAddresses(TTree *t, std::string prefix){ cachedPrefix = prefix; TString jetName("fatjet" + cachedPrefix); // init() called by BareP4 BareP4::setBranchAddresses(t,jetName.Data()); BareFunctions::SetBranchAddress(t,jetName + "RawPt", &rawPt); BareFunctions::SetBranchAddress(t,jetName + "Flavour" ,&flavour); BareFunctions::SetBranchAddress(t,jetName + "Tau1" ,&tau1); BareFunctions::SetBranchAddress(t,jetName + "Tau2" ,&tau2); BareFunctions::SetBranchAddress(t,jetName + "Tau3" ,&tau3); BareFunctions::SetBranchAddress(t,jetName + "TrimmedMass" ,&trimmedMass); BareFunctions::SetBranchAddress(t,jetName + "PrunedMass" ,&prunedMass); BareFunctions::SetBranchAddress(t,jetName + "FilteredMass" ,&filteredMass); BareFunctions::SetBranchAddress(t,jetName + "SoftdropMass" ,&softdropMass); BareFunctions::SetBranchAddress(t,jetName + "subjet" ,&subjet); BareFunctions::SetBranchAddress(t,jetName + "nSubjets",&nSubjets); BareFunctions::SetBranchAddress(t,jetName + "firstSubjet",&firstSubjet); BareFunctions::SetBranchAddress(t,jetName + "subjet_btag",&subjet_btag); BareFunctions::SetBranchAddress(t,jetName + "Hbb",&hbb); BareFunctions::SetBranchAddress(t,jetName + "topMVA",&topMVA); }
void BareFatJets::defineBranches(TTree *t){ TString jetName("fatjet" + cachedPrefix); // init() called by BareP4 BareP4::defineBranches(t, jetName.Data()); // t->Branch(jetName + "RawPt","vector<float>",&rawPt); t->Branch(jetName + "Flavour","vector<int>",&flavour); // t->Branch(jetName + "Tau1","vector<float>",&tau1); t->Branch(jetName + "Tau2","vector<float>",&tau2); t->Branch(jetName + "Tau3","vector<float>",&tau3); // t->Branch(jetName + "TrimmedMass","vector<float>",&trimmedMass); t->Branch(jetName + "PrunedMass","vector<float>",&prunedMass); t->Branch(jetName + "FilteredMass","vector<float>",&filteredMass); t->Branch(jetName + "SoftdropMass","vector<float>",&softdropMass); t->Branch(jetName + "subjet","TClonesArray", &subjet, 128000, 0); t->Branch(jetName + "nSubjets","vector<int>",&nSubjets); t->Branch(jetName + "firstSubjet","vector<int>",&firstSubjet); t->Branch(jetName + "subjet_btag","vector<float>",&subjet_btag); t->Branch(jetName + "Hbb","vector<float>",&hbb); t->Branch(jetName + "topMVA","vector<float>",&topMVA); }
void BareJets::defineBranches(TTree *t){ TString jetName("jet" + cachedPrefix); // BareP4::defineBranches(t, jetName.Data()); // t->Branch(jetName + "RawPt","vector<float>",&rawPt); t->Branch(jetName + "RefPt","vector<float>",&refPt); // t->Branch(jetName + "Bdiscr","vector<float>",&bDiscr); // t->Branch(jetName + "BdiscrLegacy","vector<float>",&bDiscrLegacy); // t->Branch(jetName + "PuId","vector<float>",&puId); // -- JES uncertainty t->Branch(jetName + "Unc","vector<float>",&unc); // --QGL t->Branch(jetName + "QGL","vector<float>",&qgl); t->Branch(jetName + "QglMult","vector<int>",&qglMult); t->Branch(jetName + "QglPtD","vector<float>",&qglPtD); t->Branch(jetName + "QglAxis2","vector<float>",&qglAxis2); // -- Jet Flavour by PAT t->Branch(jetName + "Flavour","vector<int>",&flavour); t->Branch(jetName + "MatchedPartonPdgId","vector<int>",&matchedPartonPdgId); t->Branch(jetName + "MotherPdgId","vector<int>",&motherPdgId); t->Branch(jetName + "GrMotherPdgId","vector<int>",&grMotherPdgId); t->Branch(jetName + "SelBits","vector<unsigned>",&selBits); t->Branch(jetName + "Q","vector<float>",&Q); t->Branch(jetName + "QnoPU","vector<float>",&QnoPU); // t->Branch(jetName + "PtResUncCentral","vector<float>",&ptResUncCentral); t->Branch(jetName + "PtResUncUp","vector<float>",&ptResUncUp); t->Branch(jetName + "PtResUncDown","vector<float>",&ptResUncDown); // t->Branch(jetName + "chef","vector<float>",&chef); t->Branch(jetName + "nhef","vector<float>",&nhef); }