CbmRoot
Loading...
Searching...
No Matches
HalCbmBasicFemtoPairCut.cxx
Go to the documentation of this file.
1/* Copyright (C) 2023-2023 Warsaw University of Technology, Warsaw
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Daniel Wielanek [committer] */
5
7#include "HalCbmStsSepCut.h"
8
9#include <iostream>
10
11#include <Hal/CutMonitorX.h>
12#include <Hal/CutMonitorXY.h>
13
15 : fDeltaEtaAx("HalCbmDeltaPhiDeltaThetaStarCut", 1, 100, -0.1, 0.1)
16 , fDeltaPhiStarAx("HalCbmDeltaPhiDeltaThetaStarCut", 0, 100, -0.1, 0.1)
17 , fStsExitSepAx("HalCbmStsExitSepCut", 0, 100, 0, 10)
18{
19 AddCut(HalCbmStsExitSepCut());
21 SetSeparationMonitorAxis(100, 0, 10);
22 SetDeltaPhiStarAxis(100, -0.1, 0.1);
23 SetDeltaEtaStarAxis(100, -0.1, 0.1);
24}
25
26void HalCbmBasicFemtoPairCut::SetDeltaPhiStarCut(Double_t min, Double_t max)
27{
28 GetDeltaPhiEtaStarCut()->SetMinMax(min, max, 0);
29}
30
31void HalCbmBasicFemtoPairCut::SetDeltaEtaStarCut(Double_t min, Double_t max)
32{
33 GetDeltaPhiEtaStarCut()->SetMinMax(min, max, 1);
34}
35
37
39{
40 GetStsExitCut()->SetMinMax(min, max);
41}
42/*
43void HalCbmBasicFemtoPairCut::CreateBasicMonitors()
44{
45 TString opt = "";
46 Int_t step = 0;
47 TString params = GetGlobalCutOption();
48 if (Hal::Std::FindParam(params, "re")) { opt = "re"; }
49 if (Hal::Std::FindParam(params, "im")) {
50 opt = "im";
51 step = 1;
52 }
53 Hal::CutMonitorX exitM(GetStsExitCut()->CutName(opt), step);
54 exitM.SetXaxis(fStsExitSepAx.GetNBins(), fStsExitSepAx.GetMin(), fStsExitSepAx.GetMax());
55 AddCutMonitor(exitM);
56 Hal::CutMonitorXY phiM(GetDeltaPhiEtaStarCut()->CutName(opt), 0 + step, GetDeltaPhiEtaStarCut()->CutName(opt),
57 1 + step);
58 phiM.SetXaxis(fDeltaPhiStarAx.GetNBins(), fDeltaPhiStarAx.GetMin(), fDeltaPhiStarAx.GetMax());
59 phiM.SetYaxis(fDeltaEtaAx.GetNBins(), fDeltaEtaAx.GetMin(), fDeltaEtaAx.GetMax());
60 AddCutMonitor(phiM);
61}
62*/
64
66{
67 TString option = opt;
68 std::cout << "ENABLED ALL" << std::endl;
69 if (Hal::Std::FindParam(option, "all")) {
70 std::cout << "ENABLED ALL" << std::endl;
71 AddCutMonitorRequest(fStsExitSepAx);
72 AddCutMonitorRequest(fDeltaPhiStarAx, fDeltaEtaAx);
73 return;
74 }
75 if (Hal::Std::FindParam(option, "exit")) AddCutMonitorRequest(fStsExitSepAx);
76 if (Hal::Std::FindParam(option, "phistar")) AddCutMonitorRequest(fDeltaPhiStarAx, fDeltaEtaAx);
77}
Hal::CutMonAxisConf fDeltaPhiStarAx
virtual void AddAllCutMonitorRequests(Option_t *opt)
void SetStsExitSeparationCut(Double_t min, Double_t max)
HalCbmDeltaPhiDeltaThetaStarCut * GetDeltaPhiEtaStarCut() const
HalCbmStsExitSepCut * GetStsExitCut() const
void SetDeltaPhiStarAxis(Int_t bin, Double_t min, Double_t max)
void SetSeparationMonitorAxis(Int_t nbins, Double_t min, Double_t max)
Hal::CutMonAxisConf fStsExitSepAx
void SetDeltaPhiStarCut(Double_t min, Double_t max)
void SetDeltaEtaStarCut(Double_t min, Double_t max)
void SetDeltaEtaStarAxis(Int_t bin, Double_t min, Double_t max)