Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions PWGUD/Tasks/FwdMuonsUPC.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "TSystem.h"
#include "TMath.h"
#include "TRandom3.h"
#include "Math.h/Vector4D.h"

// table for saving tree with info on data
namespace dimu
Expand Down Expand Up @@ -162,6 +163,8 @@ using namespace o2;
using namespace o2::framework;
using namespace o2::framework::expressions;

using LorentzVectorD = ROOT::Math::LorentzVector<ROOT::Math::PxPyPzM4D<double>>;

// constants used in the track selection
const float kRAbsMin = 17.6;
const float kRAbsMid = 26.5;
Expand Down Expand Up @@ -461,9 +464,10 @@ struct FwdMuonsUPC {
{
float rAbs = fwdTrack.rAtAbsorberEnd();
float pDca = fwdTrack.pDca();
TLorentzVector p;
// TLorentzVector p;
auto mMu = particleMass(13);
p.SetXYZM(fwdTrack.px(), fwdTrack.py(), fwdTrack.pz(), mMu);
LorentzVectorD p(fwdTrack.px(), fwdTrack.py(), fwdTrack.pz(), mMu);
// p.SetXYZM(fwdTrack.px(), fwdTrack.py(), fwdTrack.pz(), mMu);
float eta = p.Eta();
float pt = p.Pt();
float pDcaMax = rAbs < kRAbsMid ? kPDca1 : kPDca2;
Expand Down