From: marian Date: Tue, 29 Jul 2008 14:20:46 +0000 (+0000) Subject: Initialization of debug streamer only on demand (Jacek) X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=b2426624eca0b5b33d750e8d6548aba389e1c96a;hp=b194b32c976b44c3842e88db97826669500340e7;p=u%2Fmrichter%2FAliRoot.git Initialization of debug streamer only on demand (Jacek) --- diff --git a/TPC/AliTPCclustererMI.cxx b/TPC/AliTPCclustererMI.cxx index 9907b5cc721..7fe62b1fb16 100644 --- a/TPC/AliTPCclustererMI.cxx +++ b/TPC/AliTPCclustererMI.cxx @@ -122,7 +122,11 @@ AliTPCclustererMI::AliTPCclustererMI(const AliTPCParam* par, const AliTPCRecoPar fRecoParam = AliTPCReconstructor::GetRecoParam(); if (!fRecoParam) fRecoParam = AliTPCRecoParam::GetLowFluxParam(); } - fDebugStreamer = new TTreeSRedirector("TPCsignal.root"); + + if(AliTPCReconstructor::StreamLevel()>0) { + fDebugStreamer = new TTreeSRedirector("TPCsignal.root"); + } + // Int_t nPoints = fRecoParam->GetLastBin()-fRecoParam->GetFirstBin(); fRowCl= new AliTPCClustersRow(); fRowCl->SetClass("AliTPCclusterMI"); @@ -966,6 +970,7 @@ void AliTPCclustererMI::Digits2Clusters(AliRawReader* rawReader) Double_t gx[3]={x[0],x[1],x[2]}; trafo.RotatedGlobal2Global(fSector,gx); + if (AliTPCReconstructor::StreamLevel()>0) { (*fDebugStreamer)<<"Digits"<< "sec="<0) { + (*fDebugStreamer)<<"Signal"<< "TimeStamp="<0) { if (max-median>kMin &&maxPos>AliTPCReconstructor::GetRecoParam()->GetFirstBin()) (*fDebugStreamer)<<"SignalB"<< // pads with signal "TimeStamp="<