CbmRoot
CbmTemplateAlgo.cxx
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------
2 // ----- -----
3 // ----- CbmTemplateAlgo -----
4 // ----- -----
5 // -----------------------------------------------------------------------------
6 
7 #include "CbmTemplateAlgo.h"
8 
9 #include "FairLogger.h"
10 
11 // -------------------------------------------------------------------------
13 
16 }
17 
18 // -------------------------------------------------------------------------
20  LOG(info) << "Initializing tutorial template algo";
21 
22  return kTRUE;
23 }
25  LOG(info) << "In Reset function of tutorial template algo";
26 }
27 
29  LOG(info) << "In Finish function of tutorial template algo";
30 }
31 
32 // -------------------------------------------------------------------------
34  LOG(info) << "Init parameter containers for CbmTemplateAlgo";
35  Bool_t initOK = ReInitContainers();
36 
37  return initOK;
38 }
40  LOG(info) << "**********************************************";
41  LOG(info) << "ReInit parameter containers for CbmTemplateAlgo";
42 
43  // here the parameters are initialized from the TList which was
44  // filled by the wrapper task or the wrapper device
45  // fTemplatePar = (CbmTemplatePar*)fParCList->FindObject("CbmTemplatePar");
46  //if( nullptr == fUnpackPar )
47  // return kFALSE;
48 
49  Bool_t initOK = InitParameters();
50 
51  return initOK;
52 }
53 
55  if (nullptr == fParCList) { fParCList = new TList(); }
56 
57  // Here the parameter container is created and passed to the
58  // calling wrapper task or wrapper device. The caller will
59  // change the pointer such that it points to the correctly
60  // initialized parameter container. The initialization is done
61  // by the framework
62 
63  // fTemplatePar = new CbmTemplatePar("CbmTemplatePar");
64  // fParCList->Add(fUnpackPar);
65 
66  return fParCList;
67 }
69  LOG(info) << "In InitParameters function of tutorial template algo";
70  return kTRUE;
71 }
72 // -------------------------------------------------------------------------
73 
74 std::vector<CbmStsHit> ProcessInputData(const std::vector<CbmStsPoint>&) {
75  std::vector<CbmStsHit> outputVect {};
76  return outputVect;
77 }
78 
79 // -------------------------------------------------------------------------
CbmTemplateAlgo::InitContainers
Bool_t InitContainers()
Definition: CbmTemplateAlgo.cxx:33
CbmTemplateAlgo::ReInitContainers
Bool_t ReInitContainers()
Definition: CbmTemplateAlgo.cxx:39
ProcessInputData
std::vector< CbmStsHit > ProcessInputData(const std::vector< CbmStsPoint > &)
Definition: CbmTemplateAlgo.cxx:74
CbmTemplateAlgo::~CbmTemplateAlgo
~CbmTemplateAlgo()
Definition: CbmTemplateAlgo.cxx:14
CbmTemplateAlgo::Reset
virtual void Reset()
Definition: CbmTemplateAlgo.cxx:24
CbmTemplateAlgo::GetParList
TList * GetParList()
Definition: CbmTemplateAlgo.cxx:54
CbmTemplateAlgo::Finish
virtual void Finish()
Definition: CbmTemplateAlgo.cxx:28
CbmAlgo< CbmStsPoint, CbmStsHit >::fParCList
TList * fParCList
Parameter management.
Definition: CbmAlgo.h:35
CbmTemplateAlgo::Init
virtual Bool_t Init()
Definition: CbmTemplateAlgo.cxx:19
CbmTemplateAlgo.h
CbmTemplateAlgo::InitParameters
Bool_t InitParameters()
Definition: CbmTemplateAlgo.cxx:68
CbmAlgo
Definition: CbmAlgo.h:17
CbmTemplateAlgo::CbmTemplateAlgo
CbmTemplateAlgo()
Definition: CbmTemplateAlgo.cxx:12