Re: Task (or macro, I dont know) stops after one event [message #20354 is a reply to message #20353] |
Tue, 21 February 2017 17:02 |
Tobias Stockmanns
Messages: 489 Registered: May 2007
|
first-grade participant |
From: *ikp.kfa-juelich.de
|
|
Dear Marcel,
the problem is that you are running in time stamp mode by setting fRun->RunWithTimeStamps(). If you do that, you cannot receive the data in your exec method automatically but you have to add something like this:
if (FairRunAna::Instance() != 0 && FairRunAna::Instance()->IsTimeStamp()){
<yourArray> = FairRootManager::Instance()->GetData(fInBranchName, fFunctor, <StopTime>);
}
The fFunctor is a BinaryFunctor defined in FairTSBufferFunctional. You have to decide in which data packages you want to have your data. Either in fixed time packages, then you choose the StopTime functor with an absolute time, or all data within a certain time gap, then you choose TimeGap functor with time between two events.
You can find an example e.g. in PndMvdRiemannTrackFinderTask.
I hope it helps.
Cheers,
Tobias
|
|
|