BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnAnalysisTask.cxx
Go to the documentation of this file.
1#include "BmnAnalysisTask.h"
2
3#include "FairRootManager.h"
4#include "fairlogger/Logger.h"
5
6// ---- Default constructor -------------------------------------------
8 : FairTask("BmnAnalysisTask")
9{
10 LOG(debug) << "Defaul Constructor of BmnAnalysisTask";
11}
12
13// ---- Destructor ----------------------------------------------------
15{
16 LOG(debug) << "Destructor of BmnAnalysisTask";
17}
18
19// ---- Initialisation ----------------------------------------------
21{
22 LOG(debug) << "SetParContainers of BmnAnalysisTask";
23 // Load all necessary parameter containers from the runtime data base
24 /*
25 FairRunAna* ana = FairRunAna::Instance();
26 FairRuntimeDb* rtdb = ana->GetRuntimeDb();
27
28 <BmnAnalysisTaskDataMember> = (<ClassPointer>*)
29 (rtdb->getContainer("<ContainerName>"));
30 */
31}
32
33// ---- Init ----------------------------------------------------------
35{
36 LOG(debug) << "Initilization of BmnAnalysisTask";
37
38 // Get a handle from the IO manager
39 // FairRootManager* ioman = FairRootManager::Instance();
40
41 // Get a pointer to the previous already existing data level
42 /*
43 <InputDataLevel> = (TClonesArray*)ioman->GetObject("InputDataLevelName");
44 if (!<InputLevel>)
45 {
46 LOG(error) << "No InputDataLevelName array!\n NewTask will be inactive";
47 return kERROR;
48 }
49 */
50
51 // Create the TClonesArray for the output data and register
52 // it in the IO manager
53 /*
54 <OutputDataLevel> = new TClonesArray("OutputDataLevelName", 100);
55 ioman->Register("OutputDataLevelName", "OutputDataLevelName", <OutputDataLevel>, kTRUE);
56 */
57
58 // Do whatever else is needed at the initilization stage
59 // Create histograms to be filled
60 // initialize variables
61
62 return kSUCCESS;
63}
64
65// ---- ReInit -------------------------------------------------------
67{
68 LOG(debug) << "Initialization of BmnAnalysisTask";
69 return kSUCCESS;
70}
71
72// ---- Exec ----------------------------------------------------------
74{
75 LOG(debug) << "Exec of BmnAnalysisTask";
76}
77
78// ---- Finish --------------------------------------------------------
80{
81 LOG(debug) << "Finish of BmnAnalysisTask";
82}
const char Option_t
BmnAnalysisTask()
Default constructor.
~BmnAnalysisTask()
Constructor with parameters (Optional).
virtual InitStatus ReInit()
ReInitiliazation of task when the runID changes.
virtual void SetParContainers()
Load the parameter container from the runtime database.
virtual InitStatus Init()
Initiliazation of task at the beginning of a run.
virtual void Exec(Option_t *opt)
Executed for each event.
virtual void Finish()
Finish task called at the end of the run.