Skip to content

Commit fc1503f

Browse files
committed
Fix Lorentz vector definition compatibility with momemta
1 parent b2a422a commit fc1503f

1 file changed

Lines changed: 35 additions & 35 deletions

File tree

interface/Types.h

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
#include <Math/Vector4D.h>
55
#include <cp3_llbb/HHAnalysis/interface/Indices.h>
66

7-
typedef ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiE4D<float>> LorentzVector;
7+
typedef ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiE4D<float>> LorentzVectorPtEtaPhiE;
88

99
namespace HH {
1010
struct Lepton {
11-
LorentzVector p4;
11+
LorentzVectorPtEtaPhiE p4;
1212

13-
LorentzVector gen_p4;
13+
LorentzVectorPtEtaPhiE gen_p4;
1414
bool tt_matched;
15-
LorentzVector tt_gen_p4;
15+
LorentzVectorPtEtaPhiE tt_gen_p4;
1616
float tt_gen_DR;
17-
LorentzVector tt_parton_p4;
17+
LorentzVectorPtEtaPhiE tt_parton_p4;
1818
float tt_parton_DR;
1919
bool gen_matched;
2020
float gen_DR;
@@ -39,8 +39,8 @@ namespace HH {
3939
bool iso_HWW;
4040
};
4141
struct Dilepton {
42-
LorentzVector p4;
43-
LorentzVector gen_p4;
42+
LorentzVectorPtEtaPhiE p4;
43+
LorentzVectorPtEtaPhiE gen_p4;
4444
std::pair<int, int> idxs; // indices in the corresponding framework collection
4545
int ilep1; // index in the HH::Lepton collection
4646
int ilep2; // index in the HH::Lepton collection
@@ -89,17 +89,17 @@ namespace HH {
8989
float trigger_efficiency_upVariated_Arun;
9090
};
9191
struct Met {
92-
LorentzVector p4;
93-
LorentzVector gen_p4;
92+
LorentzVectorPtEtaPhiE p4;
93+
LorentzVectorPtEtaPhiE gen_p4;
9494
bool isNoHF;
9595
bool gen_matched;
9696
float gen_DR;
9797
float gen_DPhi;
9898
float gen_DPtOverPt;
9999
};
100100
struct DileptonMet : public Dilepton, public Met {
101-
LorentzVector p4;
102-
LorentzVector gen_p4;
101+
LorentzVectorPtEtaPhiE p4;
102+
LorentzVectorPtEtaPhiE gen_p4;
103103
int ill; // index in the HH::Dilepton collection
104104
int imet; // index in the HH::Met collection
105105
float DPhi_ll_met;
@@ -114,7 +114,7 @@ namespace HH {
114114
float gen_DPtOverPt;
115115
};
116116
struct Jet {
117-
LorentzVector p4;
117+
LorentzVectorPtEtaPhiE p4;
118118

119119
bool gen_matched_bParton;
120120
bool gen_matched_bHadron;
@@ -124,12 +124,12 @@ namespace HH {
124124
bool gen_b;
125125
bool gen_c;
126126
bool gen_l;
127-
LorentzVector gen_p4;
127+
LorentzVectorPtEtaPhiE gen_p4;
128128

129129
bool tt_matched;
130-
LorentzVector tt_gen_p4;
130+
LorentzVectorPtEtaPhiE tt_gen_p4;
131131
float tt_gen_DR;
132-
LorentzVector tt_parton_p4;
132+
LorentzVectorPtEtaPhiE tt_parton_p4;
133133
float tt_parton_DR;
134134

135135
int8_t charge;
@@ -146,8 +146,8 @@ namespace HH {
146146
float minDR_jet_allLeptons;
147147
};
148148
struct Dijet {
149-
LorentzVector p4;
150-
LorentzVector gen_p4;
149+
LorentzVectorPtEtaPhiE p4;
150+
LorentzVectorPtEtaPhiE gen_p4;
151151
std::pair<int, int> idxs; // indices in the framework collection
152152
int ijet1; // indices in the HH::Jet collection
153153
int ijet2;
@@ -181,24 +181,24 @@ namespace HH {
181181
bool gen_ll;
182182
};
183183
struct DileptonMetDijet : public DileptonMet, public Dijet {
184-
LorentzVector p4;
185-
LorentzVector lep1_p4;
186-
LorentzVector lep2_p4;
187-
LorentzVector jet1_p4;
188-
LorentzVector jet2_p4;
189-
LorentzVector met_p4;
190-
LorentzVector ll_p4;
191-
LorentzVector jj_p4;
192-
LorentzVector lljj_p4;
193-
LorentzVector gen_p4;
194-
LorentzVector gen_lep1_p4;
195-
LorentzVector gen_lep2_p4;
196-
LorentzVector gen_jet1_p4;
197-
LorentzVector gen_jet2_p4;
198-
LorentzVector gen_met_p4;
199-
LorentzVector gen_ll_p4;
200-
LorentzVector gen_jj_p4;
201-
LorentzVector gen_lljj_p4;
184+
LorentzVectorPtEtaPhiE p4;
185+
LorentzVectorPtEtaPhiE lep1_p4;
186+
LorentzVectorPtEtaPhiE lep2_p4;
187+
LorentzVectorPtEtaPhiE jet1_p4;
188+
LorentzVectorPtEtaPhiE jet2_p4;
189+
LorentzVectorPtEtaPhiE met_p4;
190+
LorentzVectorPtEtaPhiE ll_p4;
191+
LorentzVectorPtEtaPhiE jj_p4;
192+
LorentzVectorPtEtaPhiE lljj_p4;
193+
LorentzVectorPtEtaPhiE gen_p4;
194+
LorentzVectorPtEtaPhiE gen_lep1_p4;
195+
LorentzVectorPtEtaPhiE gen_lep2_p4;
196+
LorentzVectorPtEtaPhiE gen_jet1_p4;
197+
LorentzVectorPtEtaPhiE gen_jet2_p4;
198+
LorentzVectorPtEtaPhiE gen_met_p4;
199+
LorentzVectorPtEtaPhiE gen_ll_p4;
200+
LorentzVectorPtEtaPhiE gen_jj_p4;
201+
LorentzVectorPtEtaPhiE gen_lljj_p4;
202202
int illmet; // index in the HH::DileptonMet collection
203203
int ijj; // index in the HH::Dijet collection
204204
float DPhi_jj_met;

0 commit comments

Comments
 (0)