6 std::vector<float> reco_phi,
7 std::vector<float> reco_ptotal,
8 std::vector<int> reco_charge,
9 std::vector<float> reco_cluster_e,
10 std::vector<bool> reco_is_scattered_lepton,
11 std::vector<float> true_eta,
12 std::vector<float> true_phi,
13 std::vector<float> true_ptotal,
15 std::vector<bool> is_scattered_lepton)
61 float Msquared = 2*pt1*pt2*(cosh(eta1-eta2)-cos(phi1-phi2));
62 return sqrt(Msquared);
78 float Msquared = 2*pt1*pt2*(cosh(eta1-eta2)-cos(phi1-phi2));
79 return sqrt(Msquared);
85 float theta = 2*atan(exp(-1*eta));
86 float pt = ptotal * sin(theta);
104 const float ep_cut = 0.7;
114 std::vector<float> inv_mass;
119 inv_mass.push_back(NAN);
126 inv_mass.push_back(NAN);
132 std::vector<int> idx_electron;
138 idx_electron.push_back(
i);
143 inv_mass.push_back(NAN);
147 for(
unsigned i = 0 ;
i < idx_electron.size() ;
i++)
150 idx_electron.erase(idx_electron.begin()+
i);
153 if(idx_electron.size()==0)
155 inv_mass.push_back(NAN);
159 for(
unsigned i = 0;
i < idx_electron.size() ;
i++)
169 std::vector<float> inv_mass;
173 std::vector<int> idx_electron;
179 idx_electron.push_back(
i);
183 for(
unsigned i = 0;
i < idx_electron.size() ;
i++)
193 std::vector<float> inv_mass;
198 inv_mass.push_back(NAN);
205 inv_mass.push_back(NAN);
211 std::vector<int> idx_electron;
217 idx_electron.push_back(
i);
222 inv_mass.push_back(NAN);
226 for(
unsigned i = 0 ;
i < idx_electron.size() ;
i++)
229 idx_electron.erase(idx_electron.begin()+
i);
232 if(idx_electron.size()==0)
234 inv_mass.push_back(NAN);
238 for(
unsigned i = 0;
i < idx_electron.size() ;
i++)
248 std::vector<float> inv_mass;
253 inv_mass.push_back(NAN);
260 inv_mass.push_back(NAN);
266 std::vector<int> idx_electron;
272 idx_electron.push_back(
i);
277 inv_mass.push_back(NAN);
281 for(
unsigned i = 0 ;
i < idx_electron.size() ;
i++)
284 idx_electron.erase(idx_electron.begin()+
i);
287 if(idx_electron.size()==0)
289 inv_mass.push_back(NAN);
293 for(
unsigned i = 0;
i < idx_electron.size() ;
i++)
303 std::vector<float> inv_mass;
307 std::vector<int> idx_electron;
313 idx_electron.push_back(
i);
317 for(
unsigned i = 0;
i < idx_electron.size() ;
i++)
328 std::vector<float> inv_mass;
331 std::vector<int> idx_electron;
337 idx_electron.push_back(
i);
341 for(
unsigned i = 0;
i < idx_electron.size() ;
i++)