CbmRoot
Loading...
Searching...
No Matches
HalCbmPairCut.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] */
4#include "HalCbmPairCut.h"
5
6
7HalCbmPairCut::HalCbmPairCut(Int_t pairNo) : Hal::TwoTrackCut(pairNo), fDataType(HalCbm::EFormatType::kUnknown) {}
8
10
12{
13 if (this == &other) return *this;
14 Hal::TwoTrackCut::operator=(other);
15 fDataType = other.fDataType;
16 return *this;
17}
18
19Bool_t HalCbmPairCut::Pass(Hal::TwoTrack* pair)
20{
21 switch (fDataType) {
22 case HalCbm::EFormatType::kHbt: return PassHbt(pair); break;
23 case HalCbm::EFormatType::kAnaTree: return PassAnaTree(pair); break;
24 default: return kFALSE; break;
25 }
26}
27
28Bool_t HalCbmPairCut::Init(Int_t format_id)
29{
30 fDataType = HalCbm::GetFormatType(format_id, Hal::EFormatDepth::kBuffered);
31 if (fDataType == HalCbm::EFormatType::kUnknown) return kFALSE;
32 return kTRUE;
33}
34
35HalCbmPairCut::HalCbmPairCut(const HalCbmPairCut& other) : Hal::TwoTrackCut(other), fDataType(other.fDataType) {}
HalCbm::EFormatType fDataType
virtual Bool_t Pass(Hal::TwoTrack *pair)
virtual Bool_t Init(Int_t format_id)
virtual Bool_t PassHbt(Hal::TwoTrack *pair)=0
virtual Bool_t PassAnaTree(Hal::TwoTrack *pair)=0
HalCbmPairCut & operator=(const HalCbmPairCut &other)
virtual ~HalCbmPairCut()
HalCbmPairCut(Int_t parNo=1)
EFormatType GetFormatType(Int_t task_id, Hal::EFormatDepth depth)