Skip to content

Commit

Permalink
Merge pull request #56 from OlivierBondu/gen_matching
Browse files Browse the repository at this point in the history
Gen matching
  • Loading branch information
BrieucF committed Nov 19, 2015
2 parents 87242dd + 59755bc commit 693e415
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 20 deletions.
43 changes: 43 additions & 0 deletions interface/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ typedef ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiE4D<float>> LorentzVector;
namespace HH {
struct Lepton {
LorentzVector p4;
LorentzVector gen_p4;
int8_t charge;
int idx;
int8_t hlt_idx = -1; // Index to the matched HLT object. -1 if no match.
Expand All @@ -22,9 +23,13 @@ namespace HH {
bool id_T; // Tight
bool iso_L; // Loose
bool iso_T; // Tight
bool gen_matched;
float gen_DR;
float gen_DPtOverPt;
};
struct Dilepton {
LorentzVector p4;
LorentzVector gen_p4;
std::pair<int, int> idxs; // indices in the corresponding framework collection
int ilep1; // index in the HH::Lepton collection
int ilep2; // index in the HH::Lepton collection
Expand All @@ -45,13 +50,22 @@ namespace HH {
bool iso_TT;
float DR_l_l;
float DPhi_l_l;
bool gen_matched;
float gen_DR;
float gen_DPtOverPt;
};
struct Met {
LorentzVector p4;
LorentzVector gen_p4;
bool isNoHF;
bool gen_matched;
float gen_DR;
float gen_DPhi;
float gen_DPtOverPt;
};
struct DileptonMet : public Dilepton, public Met {
LorentzVector p4;
LorentzVector gen_p4;
int ill; // index in the HH::Dilepton collection
int imet; // index in the HH::Met collection
float DPhi_ll_met;
Expand All @@ -60,9 +74,14 @@ namespace HH {
float MT;
float MT_formula;
float projectedMet;
bool gen_matched;
float gen_DR;
float gen_DPhi;
float gen_DPtOverPt;
};
struct Jet {
LorentzVector p4;
LorentzVector gen_p4;
int idx;
bool id_L;
bool id_T;
Expand All @@ -72,9 +91,15 @@ namespace HH {
bool btag_T;
float CSV;
float JP;
bool gen_matched_bParton;
bool gen_matched_bHadron;
bool gen_matched;
float gen_DR;
float gen_DPtOverPt;
};
struct Dijet {
LorentzVector p4;
LorentzVector gen_p4;
std::pair<int, int> idxs; // indices in the framework collection
int ijet1; // indices in the HH::Jet collection
int ijet2;
Expand All @@ -91,6 +116,11 @@ namespace HH {
float sumJP;
float DR_j_j;
float DPhi_j_j;
bool gen_matched_bbPartons;
bool gen_matched_bbHadrons;
bool gen_matched;
float gen_DR;
float gen_DPtOverPt;
};
struct DileptonMetDijet : public DileptonMet, public Dijet {
LorentzVector p4;
Expand All @@ -102,6 +132,15 @@ namespace HH {
LorentzVector ll_p4;
LorentzVector jj_p4;
LorentzVector lljj_p4;
LorentzVector gen_p4;
LorentzVector gen_lep1_p4;
LorentzVector gen_lep2_p4;
LorentzVector gen_jet1_p4;
LorentzVector gen_jet2_p4;
LorentzVector gen_met_p4;
LorentzVector gen_ll_p4;
LorentzVector gen_jj_p4;
LorentzVector gen_lljj_p4;
int illmet; // index in the HH::DileptonMet collection
int ijj; // index in the HH::Dijet collection
float DPhi_jj_met;
Expand All @@ -114,6 +153,10 @@ namespace HH {
float DR_llmet_jj;
float DPhi_llmet_jj;
float cosThetaStar_CS;
bool gen_matched;
float gen_DR;
float gen_DPhi;
float gen_DPtOverPt;
};
}

Expand Down
Loading

0 comments on commit 693e415

Please sign in to comment.