CbmRoot
Loading...
Searching...
No Matches
CbmPsdUnpackConfig.cxx
Go to the documentation of this file.
1/* Copyright (C) 2021 Goethe-University Frankfurt, Frankfurt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Pascal Raisig [committer] */
4
6
7#include "CbmPsdUnpackAlgo.h"
8
9#include <Logger.h>
10
11#include <Rtypes.h>
12#include <RtypesCore.h>
13
14#include <memory>
15#include <vector>
16
17CbmPsdUnpackConfig::CbmPsdUnpackConfig(std::string detGeoSetupTag, UInt_t runid)
18 : CbmRecoUnpackConfig("CbmPsdUnpackConfig", detGeoSetupTag, runid)
19{
20}
21
23
24// ---- Init ----
25
26// ---- chooseAlgo ----
27std::shared_ptr<CbmPsdUnpackAlgo> CbmPsdUnpackConfig::chooseAlgo()
28{
29 if (fDoLog) LOG(info) << fName << "::Init - chooseAlgo";
30
31 // Default unpacker selection
32 // Unpacker algo from mcbm 2021 on and hopefully default for a long time.
33 auto algo = std::make_shared<CbmPsdUnpackAlgo>();
34 LOG(info) << fName << "::chooseAlgo() - selected algo = " << algo->Class_Name();
35 return algo;
36
37 LOG(error) << fName
38 << "::Init - chooseAlgo() - no algorithm created something went wrong. We can not work like this!";
39 return nullptr;
40}
41
42
ClassImp(CbmConverterManager)
Baseclass for the TrdR unpacker algorithms.
Configuration class for an unpacker algorithm.
virtual ~CbmPsdUnpackConfig()
Destroy the Cbm Trd Unpack Task object.
CbmPsdUnpackConfig(std::string detGeoSetupTag, UInt_t runid=0)
Create the Cbm Trd Unpack Task object.
virtual std::shared_ptr< CbmPsdUnpackAlgo > chooseAlgo()
Choose the derived unpacker algorithm to be used for the DAQ output to Digi translation....