preserve event count during output of high level tracks (only used for
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Jan 2010 11:01:07 +0000 (11:01 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Jan 2010 11:01:07 +0000 (11:01 +0000)
debug) (Theodor)

HLT/TRD/AliHLTTRDOfflineTrackerV1Component.cxx
HLT/TRD/AliHLTTRDTrackerV1Component.cxx

index 0a14d97..cfcad94 100644 (file)
@@ -132,7 +132,12 @@ int AliHLTTRDOfflineTrackerV1Component::DoEvent(const AliHLTComponent_EventData&
        AliHLTTRDUtils::EmulateHLTTracks(trdTracks);
       }
 
+      if(trdTracks)
       PushBack(trdTracks, AliHLTTRDDefinitions::fgkHiLvlTracksDataType, 0);
+      else{
+       TClonesArray temp("AliTRDtrackV1");
+       PushBack(&temp, AliHLTTRDDefinitions::fgkHiLvlTracksDataType, 0);
+      }
       PushBack(strg, AliHLTTRDDefinitions::fgkHiLvlTracksDataType, 0);
       fTracker->UnloadClusters();
       AliTRDReconstructor::SetClusters(0x0);
index 3307cc0..20c5ad7 100644 (file)
@@ -259,7 +259,12 @@ int AliHLTTRDTrackerV1Component::DoEvent( const AliHLTComponentEventData& evtDat
 
        TObjString strg;
        strg.String() += fNtimeBins;
+       if(trdTracks)
        PushBack(trdTracks, AliHLTTRDDefinitions::fgkHiLvlTracksDataType, 0);
+       else{
+         TClonesArray temp("AliTRDtrackV1");
+         PushBack(&temp, AliHLTTRDDefinitions::fgkHiLvlTracksDataType, 0);
+       }
        PushBack(&strg, AliHLTTRDDefinitions::fgkHiLvlTracksDataType, 0);
 
        if(fEmulateHLTTracks && trdTracks){