22 double angleCut = 0., ppCut = 0.;
36 LOG(error) <<
"LmvmCuts::IsTopologyCut cut is not defined.";
38 double sqrt_mom = std::sqrt(mom1 * mom2);
39 double val = -1. * (angleCut / ppCut) * sqrt_mom + angleCut;
40 if (!(sqrt_mom < ppCut && val > minAngle))
return true;
48 bool IsPtCutOk(
double momentum,
double pt) {
return (!(
fPtCut2D->IsInside(momentum, pt))); }
50 std::unique_ptr<TCutG>
fPtCut2D = std::make_unique<TCutG>(*[]() {
51 auto ptCut =
new TCutG(
"PtCut2D", 6);
54 ptCut->SetPoint(0, 0., 0.4);
55 ptCut->SetPoint(1, 2., 0.4);
56 ptCut->SetPoint(2, 2., 0.2);
57 ptCut->SetPoint(3, 10., 0.2);
58 ptCut->SetPoint(4, 10., 0.);
59 ptCut->SetPoint(5, 0., 0.);
65 if (stationNum <= 0 || stationNum > 2) {
66 LOG(error) <<
"LmvmCuts::IsMvdCut stationNum is not in valid. stationNum = " << stationNum;
72 double val = -1. * (cutP / cutD) * dmvd + cutP;
73 return (!(dmvd < cutD && val > mom));
79 ss <<
"LMVM cuts:" << std::endl
81 <<
"fPtCut = " <<
fPtCut << std::endl
82 <<
"fAngleCut = " <<
fAngleCut << std::endl
83 <<
"fGammaCut = " <<
fGammaCut << std::endl