IsDebugStreaming using static function
authormivanov <marian.ivanov@cern.ch>
Sun, 6 Apr 2014 19:02:56 +0000 (21:02 +0200)
committermivanov <marian.ivanov@cern.ch>
Sun, 6 Apr 2014 19:02:56 +0000 (21:02 +0200)
TRD/AliTRDReconstructor.cxx
TRD/AliTRDReconstructor.h

index fecdec8..db1b61b 100644 (file)
@@ -142,7 +142,7 @@ AliTRDReconstructor::~AliTRDReconstructor()
     delete fgTracks;
     fgTracks = NULL;
   }
-  if(fSteerParam&kOwner){
+  if((fSteerParam&kOwner)||  AliTRDReconstructor::GetStreamLevel()>0){
     for(Int_t itask = 0; itask < AliTRDrecoParam::kTRDreconstructionTasks; itask++)
       if(fDebugStream[itask]) delete fDebugStream[itask];
   }
index 401ddb8..ed87d3f 100644 (file)
@@ -71,7 +71,7 @@ public:
   Bool_t              IsHLT() const              { return fSteerParam&kHLT;}
   Bool_t              IsSeeding() const          { return fSteerParam&kSeeding;}
   Bool_t              IsProcessingTracklets() const { return fSteerParam&kProcTracklets;}
-  Bool_t              IsDebugStreaming() const   { return fSteerParam&kDebug;}
+  Bool_t              IsDebugStreaming() const   { return (fSteerParam&kDebug || AliTRDReconstructor::GetStreamLevel()>0);}
   Bool_t              UseClusterRadialCorrection() const { return fSteerParam&kClRadialCorr;}
 
   static void         Options(UInt_t steer=0);