#include "NewTask.h" // ---- Default constructor ------------------------------------------- NewTask::NewTask() :FairTask("NewTask") { fLogger->Debug(MESSAGE_ORIGIN,"Defaul Constructor of NewTask"); } // ---- Destructor ---------------------------------------------------- NewTask::~NewTask() { fLogger->Debug(MESSAGE_ORIGIN,"Destructor of NewTask"); } // ---- Initialisation ---------------------------------------------- void NewTask::SetParContainers() { fLogger->Debug(MESSAGE_ORIGIN,"SetParContainers of NewTask"); // Load all necessary parameter containers from the runtime data base /* FairRunAna* ana = FairRunAna::Instance(); FairRuntimeDb* rtdb=ana->GetRuntimeDb(); = (*) (rtdb->getContainer("")); */ } // ---- Init ---------------------------------------------------------- InitStatus NewTask::Init() { fLogger->Debug(MESSAGE_ORIGIN,"Initilization of NewTask"); // Get a handle from the IO manager FairRootManager* ioman = FairRootManager::Instance(); // Get a pointer to the previous already existing data level /* = (TClonesArray*) ioman->GetObject("InputDataLevelName"); if ( ! ) { fLogger->Error(MESSAGE_ORIGIN,"No InputDataLevelName array!\n NewTask will be inactive"); return kERROR; } */ // Create the TClonesArray for the output data and register // it in the IO manager /* = new TClonesArray("OutputDataLevelName", 100); ioman->Register("OutputDataLevelName","OutputDataLevelName",,kTRUE); */ // Do whatever else is needed at the initilization stage // Create histograms to be filled // initialize variables return kSUCCESS; } // ---- ReInit ------------------------------------------------------- InitStatus NewTask::ReInit() { fLogger->Debug(MESSAGE_ORIGIN,"Initilization of NewTask"); return kSUCCESS; } // ---- Exec ---------------------------------------------------------- void NewTask::Exec(Option_t* option) { fLogger->Debug(MESSAGE_ORIGIN,"Exec of NewTask"); } // ---- Finish -------------------------------------------------------- void NewTask::Finish() { fLogger->Debug(MESSAGE_ORIGIN,"Finish of NewTask"); } ClassImp(NewTask)