Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TrackBasicV0Cuts.cxx
1/*
2 * TrackBasicV0Cuts.cxx
3 *
4 * Created on: 11 cze 2024
5 * Author: daniel
6 */
7
8#include "TrackBasicV0Cuts.h"
9
10#include "TrackDCACut.h"
11#include "TrackV0MinvCut.h"
12#include "TrackV0TopoCuts.h"
13
14
15namespace Hal {
16
17 TrackBasicV0Cuts::TrackBasicV0Cuts() :
18 fDCAxyzXY("Hal::TrackDCACut", 1, 100, 0, 10),
19 fDCAxyzZ("Hal::TrackDCACut", 2, 100, -20, 20),
20 fDCA("Hal::TrackDCACut", 0, 100, 0, 10),
21 fMinv("Hal::TrackV0MinvCut", 0, 1000, 0, 2),
22 fDecLen("Hal::TrackV0DecLenCut", 0, 100, 0, 10),
23 fDauDist("Hal::TrackV0DaughterDistCut", 0, 100, 0, 10) {
24 AddCut(Hal::TrackDCACut());
26 AddCut(Hal::TrackV0MinvCut());
27 AddCut(Hal::TrackV0DecLenCut());
28 }
29
30 void TrackBasicV0Cuts::AddAllCutMonitorRequests(Option_t* opt) {
31 TString option = opt;
32 if (Hal::Std::FindParam(option, "all")) {
33 AddCutMonitorRequest(fDCAxyzXY, fDCAxyzZ);
34 AddCutMonitorRequest(fDCA);
35 AddCutMonitorRequest(fMinv);
36 AddCutMonitorRequest(fDecLen);
37 AddCutMonitorRequest(fDauDist);
38 return;
39 }
40 if (Hal::Std::FindParam(option, "minv")) AddCutMonitorRequest(fMinv);
41 if (Hal::Std::FindParam(option, "dca")) {
42 AddCutMonitorRequest(fDCA);
43 AddCutMonitorRequest(fDCAxyzXY, fDCAxyzZ);
44 }
45 if (Hal::Std::FindParam(option, "daudist")) AddCutMonitorRequest(fDauDist);
46 if (Hal::Std::FindParam(option, "declen")) AddCutMonitorRequest(fDecLen);
47 }
48
49 TrackBasicV0Cuts::~TrackBasicV0Cuts() {}
50
51} /* namespace Hal */