]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
ATO-17
authormivanov <marian.ivanov@cern.ch>
Tue, 27 May 2014 16:20:51 +0000 (18:20 +0200)
committerhristov <Peter.Hristov@cern.ch>
Thu, 29 May 2014 14:36:04 +0000 (16:36 +0200)
Optional usage of debug streamer  configured

TPC/Sim/AliTPCDigitizer.cxx
TPC/Sim/AliTPCDigitizer.h

index f98e8853d7ef216d194c95c7c311724f4fedda0d..549056f272e9574dd9dd7a0cd59bbd0eefe3c909 100644 (file)
@@ -63,7 +63,7 @@ using std::endl;
 ClassImp(AliTPCDigitizer)
 
 //___________________________________________
-  AliTPCDigitizer::AliTPCDigitizer() :AliDigitizer(),fDebug(0)
+  AliTPCDigitizer::AliTPCDigitizer() :AliDigitizer(),fDebug(0), fDebugStreamer(0)
 {
   //
 // Default ctor - don't use it
@@ -73,18 +73,21 @@ ClassImp(AliTPCDigitizer)
 
 //___________________________________________
 AliTPCDigitizer::AliTPCDigitizer(AliDigitizationInput* digInput) 
-  :AliDigitizer(digInput),fDebug(0)
+  :AliDigitizer(digInput),fDebug(0), fDebugStreamer(0)
 {
   //
 // ctor which should be used
 //  
   AliDebug(2,"(AliDigitizationInput* digInput) was processed");
+  if (AliTPCReconstructor::StreamLevel()>0)  fDebugStreamer = new TTreeSRedirector("TPCDigitDebug.root");
+
 }
 
 //------------------------------------------------------------------------
 AliTPCDigitizer::~AliTPCDigitizer()
 {
 // Destructor
+  if (fDebugStreamer) delete fDebugStreamer;
 }
 
 
@@ -590,7 +593,7 @@ void AliTPCDigitizer::DigitizeSave(Option_t* option)
 
 
 //------------------------------------------------------------------------
-void AliTPCDigitizer::DigitizeWithTailAndCrossTalk(Option_t* option, TTreeSredirector *pcstream
+void AliTPCDigitizer::DigitizeWithTailAndCrossTalk(Option_t* option) 
 {
   // Modified version of the digitization function
   // Modification: adding the ion tail and crosstalk:
index ee73291de08187f38882a7ad822c76139e618f22..280f3d564844953d76f35136b275d887435da9fb 100644 (file)
@@ -6,6 +6,7 @@
 /* $Id$ */
 
 #include "AliDigitizer.h"
+class TTreeSredirector;
 
 class AliDigitizationInput;
 
@@ -23,7 +24,9 @@ class AliTPCDigitizer : public AliDigitizer {
  private: 
     void DigitizeFast(Option_t* option=0); //digitize - using row pointers
     void DigitizeSave(Option_t* option=0); // digitize using controlled arrays   
-    Int_t fDebug;
+    void DigitizeWithTailAndCrossTalk(Option_t* option=0); 
+    Int_t fDebug;                         //
+    TTreeSRedirector *fDebugStreamer;     //!debug streamer
  private:
     ClassDef(AliTPCDigitizer,2)  // MUON merging/digitization
 };