|
|
Go to the documentation of this file. 1 #ifndef JetCombinatorics_h
2 #define JetCombinatorics_h
15 #include "TLorentzVector.h"
43 void SetWp(
const TLorentzVector& Wp) {
Wp_ = Wp; }
44 void SetWq(
const TLorentzVector& Wq) {
Wq_ = Wq; }
61 hdisc_b_ = (TH1F*)gDirectory->Get(
"hdiscNorm_b");
62 hdisc_cl_ = (TH1F*)gDirectory->Get(
"hdiscNorm_cl");
116 chi2_ = chiHadW * chiHadW + chiHadt * chiHadt + chiLept * chiLept;
161 double btag_norm = (-0.25 - TMath::Log(4) / 2);
162 double btag_N2LL = btag_norm * 4. *
163 (LR_Wp * TMath::Log(LR_Wp / 4) + LR_Wq * TMath::Log(LR_Wq / 4) +
164 LR_Hadb * TMath::Log(LR_Hadb / 4) + LR_Lepb * TMath::Log(LR_Lepb / 4));
166 chi2_ += btag_N2LL + gauss_norm;
193 std::cout <<
" jet Wp : px = " <<
Wp_.Px() <<
" py = " <<
Wp_.Py() <<
" pz = " <<
Wp_.Pz() <<
" e = " <<
Wp_.E()
195 std::cout <<
" jet Wq : px = " <<
Wq_.Px() <<
" py = " <<
Wq_.Py() <<
" pz = " <<
Wq_.Pz() <<
" e = " <<
Wq_.E()
198 <<
" e = " <<
Hadb_.E() << std::endl;
200 <<
" e = " <<
Lepb_.E() << std::endl;
210 int bin = hpdf->GetXaxis()->FindBin(
disc);
211 pdf = hpdf->GetBinContent(
bin);
212 if (disc < -10 || disc > 50)
static const std::string LepW
void SetLepb_disc(double disc)
Combo GetCombination(int n=0)
void SetMaxMassLepTop(double mass)
Combo GetCombinationSumEt(int n=0)
void SetFlvCorrHadb(double corr)
void SetMinMassLepW(double mass)
void ApplyFlavorCorrections(bool option=true)
void SetFlvCorrLepb(double corr)
void SetbTagPdf(const TString &name)
std::map< int, std::string > Template4jCombos_
void SetMinMassLepW(double mass)
void SetHadb_disc(double disc)
void SetMaxMassHadW(double mass)
void SetSigmas(int type=0)
std::vector< TLorentzVector > cand2_
bool operator()(const Combo &s1, const Combo &s2) const
void SetMaxMassHadW(double mass)
void SetMinMassLepTop(double mass)
std::map< int, std::string > Template6jCombos_
void SetMaxMassLepTop(double mass)
TLorentzVector GetTopPair()
double getPdfValue(std::string flavor, double disc)
std::vector< TLorentzVector > TwoCombos()
void SetFlvCorrWp(double corr)
void SetMinMassHadW(double mass)
void SetbDiscPdf(const TString &filename)
TLorentzVector GetLepTop()
void SetMaxMassLepW(double mass)
bool operator()(const Combo &s1, const Combo &s2) const
void SetLepb(const TLorentzVector &Lepb)
void SetWp_disc(double disc)
void SetLepW(const TLorentzVector &LepW)
void UsebTagging(bool option=true)
void SetFlvCorrWq(double corr)
std::vector< TLorentzVector > ThreeCombos()
void FourJetsCombinations(const std::vector< TLorentzVector > &jets, const std::vector< double > &bdiscriminators)
void SetSigmas(int type=0)
void SetWq(const TLorentzVector &Wq)
std::map< Combo, int, maxSumEt > allCombosSumEt_
std::vector< TLorentzVector > cand1_
void SetLeptonicW(const TLorentzVector &LepW)
void UseMtopConstraint(bool option=true)
void SetHadb(const TLorentzVector &Hadb)
std::map< int, std::string > Template7jCombos_
std::vector< TLorentzVector > cand3_
TLorentzVector GetHadTop()
void SetMaxMassLepW(double mass)
void SetFlavorCorrections(const std::vector< double > &vector)
std::vector< double > flavorCorrections_
void SetWp(const TLorentzVector &Wp)
void ApplyFlavorCorrection(bool option=true)
std::vector< TLorentzVector > GetComposites()
void SetMinMassLepTop(double mass)
std::map< int, std::string > NestedCombinatorics()
void RemoveDuplicates(bool option)
void UseMtopConstraint(bool option=true)
std::map< int, std::string > Combinatorics(int k, int max=6)
std::map< int, std::string > Template5jCombos_
void Usebtagging(bool option=true)
void SetMinMassHadW(double mass)
std::map< Combo, int, minChi2 > allCombos_
void SetWq_disc(double disc)