Add J/psi resolution; re-write RC with Dummy instead of rc tracks
Compare changes
+ 25
− 22
@@ -36,26 +36,29 @@ namespace util {
@@ -36,26 +36,29 @@ namespace util {
inline inv_quant calc_inv_quant_rec(const std::vector<ROOT::Math::PxPyPzMVector>& parts, const double pdg_mass){
@@ -64,10 +67,14 @@ namespace util {
@@ -64,10 +67,14 @@ namespace util {
@@ -75,19 +82,21 @@ namespace util {
@@ -75,19 +82,21 @@ namespace util {
float ptmp = sqrt(parts[i].px()*parts[i].px() + parts[i].py()*parts[i].py() + parts[i].pz()*parts[i].pz());
if( (k_prime.px()) * (pair_4p.px()) + (k_prime.py()) * (pair_4p.py()) + (k_prime.pz()) * (pair_4p.pz()) > 0. || ptmp >= 10.) continue; //angle between jpsi and scattered electron < pi/2, 3-momentum mag < 10.
if(dp > 10.- ptmp){ //if there are more than one candidate of scattered electron, choose the one with highest 3-momentum mag
@@ -97,15 +106,9 @@ namespace util {
@@ -97,15 +106,9 @@ namespace util {