BmnRoot
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 ----------------------------------------------------------
73void BmnAnalysisTask::Exec(Option_t* /*option*/)
74{
75 LOG(debug) << "Exec of BmnAnalysisTask";
76}
77
78// ---- Finish --------------------------------------------------------
80{
81 LOG(debug) << "Finish of BmnAnalysisTask";
82}
virtual InitStatus ReInit()
virtual void SetParContainers()
virtual InitStatus Init()
virtual void Exec(Option_t *opt)
virtual void Finish()