Skip to content
Merged
Show file tree
Hide file tree
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
44 changes: 22 additions & 22 deletions EventFiltering/PWGHF/HFFilterHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,25 +134,25 @@ static const std::tuple pdgCharmDaughters{
std::array{2212, -321, 211}, // Lc
std::array{2212, -321, 211}}; // Xic

constexpr float massPi = o2::constants::physics::MassPionCharged;
constexpr float massKa = o2::constants::physics::MassKaonCharged;
constexpr float massProton = o2::constants::physics::MassProton;
constexpr float massGamma = o2::constants::physics::MassPhoton;
constexpr float massK0S = o2::constants::physics::MassKaonNeutral;
constexpr float massLambda = o2::constants::physics::MassLambda;
constexpr float massXi = o2::constants::physics::MassXiMinus;
constexpr float massPhi = 1.019455;
constexpr float massD0 = 1.86484;
constexpr float massDPlus = 1.86962;
constexpr float massDs = 1.9685;
constexpr float massLc = 2.28646;
constexpr float massXic = 2.4679;
constexpr float massDStar = 2.01027;
constexpr float massBPlus = 5.27915;
constexpr float massB0 = 5.27953;
constexpr float massBs = 5.3663;
constexpr float massLb = 5.6202;
constexpr float massXib = 5.7924;
constexpr float massPi = o2::analysis::pdg::MassPiPlus;
constexpr float massKa = o2::analysis::pdg::MassKPlus;
constexpr float massProton = o2::analysis::pdg::MassProton;
constexpr float massGamma = o2::analysis::pdg::MassGamma;
constexpr float massK0S = o2::analysis::pdg::MassK0Short;
constexpr float massLambda = o2::analysis::pdg::MassLambda0;
constexpr float massXi = o2::analysis::pdg::MassXiMinus;
constexpr float massPhi = o2::analysis::pdg::MassPhi;
constexpr float massD0 = o2::analysis::pdg::MassD0;
constexpr float massDPlus = o2::analysis::pdg::MassDPlus;
constexpr float massDs = o2::analysis::pdg::MassDS;
constexpr float massLc = o2::analysis::pdg::MassLambdaCPlus;
constexpr float massXic = o2::analysis::pdg::MassXiCPlus;
constexpr float massDStar = o2::analysis::pdg::MassDStar;
constexpr float massBPlus = o2::analysis::pdg::MassBPlus;
constexpr float massB0 = o2::analysis::pdg::MassB0;
constexpr float massBs = o2::analysis::pdg::MassBS;
constexpr float massLb = o2::analysis::pdg::MassLambdaB0;
constexpr float massXib = o2::analysis::pdg::MassXiB0;

static const o2::framework::AxisSpec ptAxis{50, 0.f, 50.f};
static const o2::framework::AxisSpec pAxis{50, 0.f, 10.f};
Expand Down Expand Up @@ -268,7 +268,7 @@ class HfFilterHelper
mMaxNsigmaXiDau = nSigma;
}
void setCutsSingleTrackCharmBaryonBachelor(o2::framework::LabeledArray<double> cutsSingleTrack) { mCutsSingleTrackCharmBaryonBachelor = cutsSingleTrack; }
void setMinPtCharmBaryonBachelor(float minPt) { mPtMinBeautyBachelor = minPt; }
void setMinPtCharmBaryonBachelor(float minPt) { mPtMinCharmBaryonBachelor = minPt; }
void setNsigmaPiCutsForCharmBaryonBachelor(float nSigmaTpc, float nSigmaTof)
{
mNSigmaTpcPiCharmBaryonBachelor = nSigmaTpc;
Expand Down Expand Up @@ -370,7 +370,7 @@ class HfFilterHelper
float mCosPaLambdaFromXi{0.99}; // minimum cosp for Xi in Xic/Omegac decays
float mMaxDcaXyXi{0.3}; // maximum dca for Xi in Xic/Omegac decays
float mMaxNsigmaXiDau{3.}; // maximum Nsigma TPC and TOF for Xi daughter tracks
float mMinPtCharmBaryonBachelor{0.}; // minimum pt for the bachelor pion from Xic/Omegac decays
float mPtMinCharmBaryonBachelor{0.5}; // minimum pt for the bachelor pion from Xic/Omegac decays
o2::framework::LabeledArray<double> mCutsSingleTrackCharmBaryonBachelor{}; // dca selections for the bachelor pion from Xic/Omegac decays
float mNSigmaTpcPiCharmBaryonBachelor{3.}; // maximum Nsigma TPC for pions in Xic/Omegac decays
float mNSigmaTofPiCharmBaryonBachelor{3.}; // maximum Nsigma TOF for pions in Xic/Omegac decays
Expand Down Expand Up @@ -1057,7 +1057,7 @@ inline int8_t HfFilterHelper::isSelectedBachelorForCharmBaryon(const T& track, c
return kRejected;
}

if (track.pt() < mMinPtCharmBaryonBachelor) {
if (track.pt() < mPtMinCharmBaryonBachelor) {
return kRejected;
}

Expand Down
2 changes: 2 additions & 0 deletions PWGHF/Core/PDG.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ enum Code {
kSigmaC0 = 4112,
kSigmaCPlusPlus = 4222,
kX3872 = 9920443,
kXiB0 = 5232,
kXiCCPlusPlus = 4422,
kXiCPlus = 4232,
kXiCZero = 4132
Expand Down Expand Up @@ -70,6 +71,7 @@ constexpr double MassPhi = 1.019455;
constexpr double MassSigmaC0 = 2.45376;
constexpr double MassSigmaCPlusPlus = 2.45402;
constexpr double MassX3872 = 3.87165;
constexpr double MassXiB0 = 5.7924;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not edit this block by hand. It is generated by the Python script. So the script is the place to be updated and then this header should be updated with the generated output.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Sorry indeed it wasn't that clear to me how this worked, it should be fixed now

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, if you have an idea, how to make the documentation clearer, let me know. Thanks for the update.

constexpr double MassXiCCPlusPlus = 3.62155;
constexpr double MassXiCPlus = 2.4679;
constexpr double MassXiCZero = 2.471;
Expand Down
1 change: 1 addition & 0 deletions PWGHF/Core/make_pdg_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class Pdg(Enum):
kSigmaC0 = 4112
kSigmaCPlusPlus = 4222
kX3872 = 9920443
kXiB0 = 5232
kXiCCPlusPlus = 4422
kXiCPlus = 4232
kXiCZero = 4132
Expand Down