CbmRoot
Loading...
Searching...
No Matches
HalCbmFormatTypes.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 "HalCbmFormatTypes.h"
5
6#include <Hal/DataFormatManager.h>
7#include <Hal/Event.h>
8#include <Hal/Std.h>
9
10
11namespace HalCbm
12{
13
14 EFormatType GetFormatType(Int_t task_id, Hal::EFormatDepth depth)
15 {
16 const Hal::Event* ev = Hal::DataFormatManager::Instance()->GetFormat(task_id, depth);
17 if (ev->InheritsFrom("HalCbmEvent")) {
19 }
20 else if (ev->InheritsFrom("HalCbmHbtEvent")) {
21 return EFormatType::kHbt;
22 }
24 }
25} // namespace HalCbm
EFormatType GetFormatType(Int_t task_id, Hal::EFormatDepth depth)