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
// -------------------------------------------------------------------------
16
CbmTemplateAlgo::CbmTemplateAlgo
() :
CbmAlgo
() {}
17
18
CbmTemplateAlgo::~CbmTemplateAlgo
()
19
{
21
}
22
23
// -------------------------------------------------------------------------
24
Bool_t
CbmTemplateAlgo::Init
()
25
{
26
LOG(info) <<
"Initializing tutorial template algo"
;
27
28
return
kTRUE;
29
}
30
void
CbmTemplateAlgo::Reset
() { LOG(info) <<
"In Reset function of tutorial template algo"
; }
31
32
void
CbmTemplateAlgo::Finish
() { LOG(info) <<
"In Finish function of tutorial template algo"
; }
33
34
// -------------------------------------------------------------------------
35
Bool_t
CbmTemplateAlgo::InitContainers
()
36
{
37
LOG(info) <<
"Init parameter containers for CbmTemplateAlgo"
;
38
Bool_t initOK =
ReInitContainers
();
39
40
return
initOK;
41
}
42
Bool_t
CbmTemplateAlgo::ReInitContainers
()
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
58
TList*
CbmTemplateAlgo::GetParList
()
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
}
73
Bool_t
CbmTemplateAlgo::InitParameters
()
74
{
75
LOG(info) <<
"In InitParameters function of tutorial template algo"
;
76
return
kTRUE;
77
}
78
// -------------------------------------------------------------------------
79
80
std::vector<CbmStsHit>
ProcessInputData
(
const
std::vector<CbmStsPoint>&)
81
{
82
std::vector<CbmStsHit> outputVect {};
83
return
outputVect;
84
}
85
86
// -------------------------------------------------------------------------
ProcessInputData
std::vector< CbmStsHit > ProcessInputData(const std::vector< CbmStsPoint > &)
Definition
CbmTemplateAlgo.cxx:80
CbmTemplateAlgo.h
CbmAlgo
Definition
CbmAlgo.h:21
CbmAlgo< CbmStsPoint, CbmStsHit >::fParCList
TList * fParCList
Definition
CbmAlgo.h:39
CbmTemplateAlgo::ReInitContainers
Bool_t ReInitContainers()
Definition
CbmTemplateAlgo.cxx:42
CbmTemplateAlgo::GetParList
TList * GetParList()
Definition
CbmTemplateAlgo.cxx:58
CbmTemplateAlgo::Reset
virtual void Reset()
Definition
CbmTemplateAlgo.cxx:30
CbmTemplateAlgo::Init
virtual Bool_t Init()
Definition
CbmTemplateAlgo.cxx:24
CbmTemplateAlgo::~CbmTemplateAlgo
~CbmTemplateAlgo()
Definition
CbmTemplateAlgo.cxx:18
CbmTemplateAlgo::Finish
virtual void Finish()
Definition
CbmTemplateAlgo.cxx:32
CbmTemplateAlgo::InitContainers
Bool_t InitContainers()
Definition
CbmTemplateAlgo.cxx:35
CbmTemplateAlgo::InitParameters
Bool_t InitParameters()
Definition
CbmTemplateAlgo.cxx:73
CbmTemplateAlgo::CbmTemplateAlgo
CbmTemplateAlgo()
Definition
CbmTemplateAlgo.cxx:16
tutorials
TaskToAlgo
CbmTemplateAlgo.cxx
Generated on Sun Dec 22 2024 23:04:19 for CbmRoot by
1.12.0