GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » Sorting objects
Re: Sorting objects [message #18872 is a reply to message #18870] Fri, 08 January 2016 17:36 Go to previous messageGo to previous message
Tobias Stockmanns is currently offline  Tobias Stockmanns
Messages: 489
Registered: May 2007
first-grade participant
From: *ikp.kfa-juelich.de
Dear Marcel,

what is your sorting parameter? TimeStamp? Is your data object (EmcCluster) derived from FairTimeStamp? If the answer is yes for all questions, than you can use the RingSorter. In addition I have written a MapSorter using std::map for sorting.

The output is a (TimeStamp) sorted data stream without an event structure. If you want to have them packaged into events you need to run an additional algorithm. There is a GapEventBuilder which looks for the time between two events and, if this is larger than a threshold, puts everything before in an event.

How are the links between your two branches done? FairLinks? Are this bidirectional links or single direction? From your sorted branch or from your unsorted branch? If it goes from your sorted branch to your unsorted one with FairLinks than they still hold.

Cheers,

Tobias
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CHEP2016 abstract submission open!
Next Topic: Broken FairLinks?
Goto Forum:
  


Current Time: Thu Jun 13 13:36:51 CEST 2024

Total time taken to generate the page: 0.01210 seconds