21 :
FairTask(
"TutorialDetCustomTask", 0)
32 LOG(info) <<
" FairTutorialDet2CustomTask :: Init() ";
36 LOG(fatal) <<
"No FairRootManager";
39 fCustomData = ioman->
InitObjectAs<std::vector<CustomClass>
const*>(
"TutorialCustomData");
41 LOG(error) <<
"No input data found!";
42 LOG(error) <<
"Task will be inactive";
48 assert(ioman->
InitObjectAs<
double const*>(
"TutorialCustomData") ==
nullptr);
50 assert(ioman->
InitObjectAs<
double const*>(
"WrongName") ==
nullptr);
51 fCustomData2 = ioman->
InitObjectAs<std::vector<CustomClass>
const*>(
"InMemory1");
60 LOG(info) <<
" I am in FairTutorialDet2CustomTask::Exec";
62 LOG(info) <<
" The custom data input vector has size" << fCustomData->size();
63 for (
auto& entry : *fCustomData) {
64 LOG(info) <<
" Got entry " << entry.GetX() <<
" " << entry.GetQ();
68 LOG(info) <<
" The input vector from DigitizerTask has size" << fCustomData2->size();
69 for (
auto& entry : *fCustomData2) {
70 LOG(info) <<
" Got entry " << entry.GetX() <<
" " << entry.GetQ();
virtual void Exec(Option_t *option)
virtual ~FairTutorialDet2CustomTask()
T InitObjectAs(const char *BrName)
static FairRootManager * Instance()
ClassImp(FairEventBuilder)
virtual InitStatus Init()
FairTutorialDet2CustomTask()