FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NewTask.cxx
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #include "NewTask.h"
9 
10 // ---- Default constructor -------------------------------------------
12  : FairTask("NewTask")
13 {
14  LOG(debug) << "Defaul Constructor of NewTask";
15 }
16 
17 // ---- Destructor ----------------------------------------------------
18 NewTask::~NewTask() { LOG(debug) << "Destructor of NewTask"; }
19 
20 // ---- Initialisation ----------------------------------------------
22 {
23  LOG(debug) << "SetParContainers of NewTask";
24  // Load all necessary parameter containers from the runtime data base
25  /*
26  FairRunAna* ana = FairRunAna::Instance();
27  FairRuntimeDb* rtdb=ana->GetRuntimeDb();
28 
29  <NewTaskDataMember> = (<ClassPointer>*)
30  (rtdb->getContainer("<ContainerName>"));
31  */
32 }
33 
34 // ---- Init ----------------------------------------------------------
36 {
37  LOG(debug) << "Initilization of NewTask";
38 
39  // Get a handle from the IO manager
41 
42  // Get a pointer to the previous already existing data level
43  /*
44  <InputDataLevel> = (TClonesArray*) ioman->GetObject("InputDataLevelName");
45  if ( ! <InputLevel> ) {
46  fLogger->Error(MESSAGE_ORIGIN,"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) << "Initilization of NewTask";
69  return kSUCCESS;
70 }
71 
72 // ---- Exec ----------------------------------------------------------
73 void NewTask::Exec(Option_t* /*option*/) { LOG(debug) << "Exec of NewTask"; }
74 
75 // ---- Finish --------------------------------------------------------
76 void NewTask::Finish() { LOG(debug) << "Finish of NewTask"; }
77 
~NewTask()
Definition: NewTask.cxx:18
InitStatus
Definition: FairTask.h:33
virtual void Exec(Option_t *opt)
Definition: NewTask.cxx:73
static FairRootManager * Instance()
virtual InitStatus Init()
Definition: NewTask.cxx:35
ClassImp(FairEventBuilder)
virtual void SetParContainers()
Definition: NewTask.cxx:21
virtual InitStatus ReInit()
Definition: NewTask.cxx:66
NewTask()
Definition: NewTask.cxx:11
virtual void Finish()
Definition: NewTask.cxx:76