CbmRoot
Loading...
Searching...
No Matches
CbmTemplateAlgo.cxx
Go to the documentation of this file.
1/* Copyright (C) 2019-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer] */
4
5// -----------------------------------------------------------------------------
6// ----- -----
7// ----- CbmTemplateAlgo -----
8// ----- -----
9// -----------------------------------------------------------------------------
10
11#include "CbmTemplateAlgo.h"
12
13#include <Logger.h>
14
15// -------------------------------------------------------------------------
17
22
23// -------------------------------------------------------------------------
25{
26 LOG(info) << "Initializing tutorial template algo";
27
28 return kTRUE;
29}
30void CbmTemplateAlgo::Reset() { LOG(info) << "In Reset function of tutorial template algo"; }
31
32void CbmTemplateAlgo::Finish() { LOG(info) << "In Finish function of tutorial template algo"; }
33
34// -------------------------------------------------------------------------
36{
37 LOG(info) << "Init parameter containers for CbmTemplateAlgo";
38 Bool_t initOK = ReInitContainers();
39
40 return initOK;
41}
43{
44 LOG(info) << "**********************************************";
45 LOG(info) << "ReInit parameter containers for CbmTemplateAlgo";
46
47 // here the parameters are initialized from the TList which was
48 // filled by the wrapper task or the wrapper device
49 // fTemplatePar = (CbmTemplatePar*)fParCList->FindObject("CbmTemplatePar");
50 //if( nullptr == fUnpackPar )
51 // return kFALSE;
52
53 Bool_t initOK = InitParameters();
54
55 return initOK;
56}
57
59{
60 if (nullptr == fParCList) { fParCList = new TList(); }
61
62 // Here the parameter container is created and passed to the
63 // calling wrapper task or wrapper device. The caller will
64 // change the pointer such that it points to the correctly
65 // initialized parameter container. The initialization is done
66 // by the framework
67
68 // fTemplatePar = new CbmTemplatePar("CbmTemplatePar");
69 // fParCList->Add(fUnpackPar);
70
71 return fParCList;
72}
74{
75 LOG(info) << "In InitParameters function of tutorial template algo";
76 return kTRUE;
77}
78// -------------------------------------------------------------------------
79
80std::vector<CbmStsHit> ProcessInputData(const std::vector<CbmStsPoint>&)
81{
82 std::vector<CbmStsHit> outputVect {};
83 return outputVect;
84}
85
86// -------------------------------------------------------------------------
std::vector< CbmStsHit > ProcessInputData(const std::vector< CbmStsPoint > &)
virtual void Reset()
virtual Bool_t Init()
virtual void Finish()