8#include "TrackV0MinvCut.h"
10#include <TDatabasePDG.h>
11#include <TParticlePDG.h>
18 Bool_t TrackV0MinvCut::PassV0(V0Track* tr) {
23 TrackV0MinvCut::TrackV0MinvCut() : TrackV0Cut(1) { SetUnitName(
"M_{inv} [GeV/c]", 0); }
25 void TrackV0MinvCut::SetDaughersPid(Int_t pos, Int_t neg) {
30 Bool_t TrackV0MinvCut::Init(Int_t taskid) {
31 TDatabasePDG* pid = TDatabasePDG::Instance();
32 auto p1 = pid->GetParticle(fPid1);
33 auto p2 = pid->GetParticle(fPid2);
35 Hal::Cout::PrintInfo(Form(
"Cannot find particle with PID(%i,%i) in %s", fPid1, fPid2, ClassName()), EInfo::kError);
41 return TrackV0Cut::Init(taskid);
45 TrackV0InvMassLambdaCut::TrackV0InvMassLambdaCut() :
TrackV0Cut(1) {
46 SetUnitName(
"M_{inv #Lambda#rightarrow p + #pi^{-}} [GeV/c^{2}]");
49 Bool_t TrackV0InvMassLambdaCut::PassV0(V0Track* tr) {
56 TrackV0InvMassAntiLambdaCut::TrackV0InvMassAntiLambdaCut() : TrackV0Cut(1) {
57 SetUnitName(
"M_{inv #Lambda#rightarrow #bar{p} + #pi^{+}} [GeV/c^{2}]");
60 Bool_t TrackV0InvMassAntiLambdaCut::PassV0(V0Track* tr) {
67 TrackV0InvMassK0Cut::TrackV0InvMassK0Cut() : TrackV0Cut(1) {
68 SetUnitName(
"M_{inv K_{0s}#rightarrow #pi^{+} + #pi^{-}} [GeV/c^{2}]");
72 Bool_t TrackV0InvMassK0Cut::PassV0(V0Track* tr) {
static void PrintInfo(TString text, Hal::EInfo status)
void SetValue(Double_t val, Int_t i=0)
void SetUnitName(TString name, Int_t i=0)