GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » General Discussion » Task (or macro, I dont know) stops after one event
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 Go to previous messageGo to previous message
Tobias Stockmanns is currently offline  Tobias Stockmanns
Messages: 489
Registered: May 2007
first-grade participant
From: *
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.


Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to reconfigure and rerun a FairRunAna instance
Next Topic: FairHit - why only 32bit precision??
Goto Forum:

Current Time: Thu Jul 18 03:28:05 CEST 2024

Total time taken to generate the page: 0.00941 seconds