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: 475
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
 
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 Nov 14 13:25:02 CET 2019

Total time taken to generate the page: 0.03165 seconds