CbmRoot
Loading...
Searching...
No Matches
HalCbmReader.cxx
Go to the documentation of this file.
1/* Copyright (C) 2025-2025 Warsaw University of Technology, Warsaw
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Daniel Wielanek [committer] */
4#include "HalCbmReader.h"
5
6#include "HalCbmEvent.h"
7#include "HalCbmFullEvent.h"
8#include "HalCbmMCEvent.h"
9
10#include <RtypesCore.h>
11#include <TString.h>
12
13#include <Hal/StdString.h>
14
15namespace Hal
16{
17
18} /* namespace Hal */
19
21{
22 if (Hal::Std::FindParam(opt, "reco", false) && Hal::Std::FindParam(opt, "mc", false)) {
23 SetFormat(new HalCbmFullEvent());
24 }
25 else if (Hal::Std::FindParam(opt, "mc", false)) {
26 SetFormat(new HalCbmMCEvent());
27 }
28 else {
29 SetFormat(new HalCbmEvent());
30 }
31}
32
virtual ~HalCbmReader()
HalCbmReader(TString opt="mc+reco")