BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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 -------------------------------------------
7
BmnAnalysisTask::BmnAnalysisTask
()
8
:
FairTask
(
"BmnAnalysisTask"
)
9
{
10
LOG(debug) <<
"Defaul Constructor of BmnAnalysisTask"
;
11
}
12
13
// ---- Destructor ----------------------------------------------------
14
BmnAnalysisTask::~BmnAnalysisTask
()
15
{
16
LOG(debug) <<
"Destructor of BmnAnalysisTask"
;
17
}
18
19
// ---- Initialisation ----------------------------------------------
20
void
BmnAnalysisTask::SetParContainers
()
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 ----------------------------------------------------------
34
InitStatus
BmnAnalysisTask::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 -------------------------------------------------------
66
InitStatus
BmnAnalysisTask::ReInit
()
67
{
68
LOG(debug) <<
"Initialization of BmnAnalysisTask"
;
69
return
kSUCCESS;
70
}
71
72
// ---- Exec ----------------------------------------------------------
73
void
BmnAnalysisTask::Exec
(
Option_t
*
/*option*/
)
74
{
75
LOG(debug) <<
"Exec of BmnAnalysisTask"
;
76
}
77
78
// ---- Finish --------------------------------------------------------
79
void
BmnAnalysisTask::Finish
()
80
{
81
LOG(debug) <<
"Finish of BmnAnalysisTask"
;
82
}
Option_t
const char Option_t
BmnAnalysisTask::BmnAnalysisTask
BmnAnalysisTask()
Default constructor.
Definition
BmnAnalysisTask.cxx:7
BmnAnalysisTask::~BmnAnalysisTask
~BmnAnalysisTask()
Constructor with parameters (Optional).
Definition
BmnAnalysisTask.cxx:14
BmnAnalysisTask::ReInit
virtual InitStatus ReInit()
ReInitiliazation of task when the runID changes.
Definition
BmnAnalysisTask.cxx:66
BmnAnalysisTask::SetParContainers
virtual void SetParContainers()
Load the parameter container from the runtime database.
Definition
BmnAnalysisTask.cxx:20
BmnAnalysisTask::Init
virtual InitStatus Init()
Initiliazation of task at the beginning of a run.
Definition
BmnAnalysisTask.cxx:34
BmnAnalysisTask::Exec
virtual void Exec(Option_t *opt)
Executed for each event.
Definition
BmnAnalysisTask.cxx:73
BmnAnalysisTask::Finish
virtual void Finish()
Finish task called at the end of the run.
Definition
BmnAnalysisTask.cxx:79
FairTask
BmnAnalysisTask.h
physics
BmnAnalysisTask.cxx
Generated on
for BmnRoot by
1.17.0