From: mivanov Date: Tue, 27 May 2014 16:20:51 +0000 (+0200) Subject: ATO-17 X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=5f7e098585a4e6ef64176fb5867ad49920990b74 ATO-17 Optional usage of debug streamer configured --- diff --git a/TPC/Sim/AliTPCDigitizer.cxx b/TPC/Sim/AliTPCDigitizer.cxx index f98e8853d7e..549056f272e 100644 --- a/TPC/Sim/AliTPCDigitizer.cxx +++ b/TPC/Sim/AliTPCDigitizer.cxx @@ -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: diff --git a/TPC/Sim/AliTPCDigitizer.h b/TPC/Sim/AliTPCDigitizer.h index ee73291de08..280f3d56484 100644 --- a/TPC/Sim/AliTPCDigitizer.h +++ b/TPC/Sim/AliTPCDigitizer.h @@ -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 };