ATO-123 - Configurin of the stream level. Swith to dump all signal withour zerro...
authormivanov <marian.ivanov@cern.ch>
Fri, 27 Feb 2015 21:14:43 +0000 (22:14 +0100)
committermivanov <marian.ivanov@cern.ch>
Fri, 27 Feb 2015 21:15:53 +0000 (22:15 +0100)
TPC/TPCsim/AliTPCDigitizer.cxx
TPC/TPCsim/AliTPCDigitizer.h

index 690bb0e..d724612 100644 (file)
@@ -881,7 +881,7 @@ void AliTPCDigitizer::DigitizeWithTailAndCrossTalk(Option_t* option)
   // 1.b) Dump the content of the crossTalk signal to the debug stremer - to be corealted later with the same crosstalk correction
   //      assumed during reconstruction 
   //
-  if (AliTPCReconstructor::StreamLevel()==1) {
+  if ((AliTPCReconstructor::StreamLevel()&kStreamCrosstalk)>0) {
     //
     // dump the crosstalk matrices to tree for further investigation
     //     a.) to estimate fluctuation of pedestal in indiviula wire segments
@@ -1042,9 +1042,9 @@ void AliTPCDigitizer::DigitizeWithTailAndCrossTalk(Option_t* option)
       
       
       // fill info for degugging
-      if (AliTPCReconstructor::StreamLevel()==1 && qOrig > zerosup ) {
-        TTreeSRedirector &cstream = *fDebugStreamer;
-       UInt_t uid = AliTPCROC::GetTPCUniqueID(sector, padRow, padNumber);
+      if ( ((AliTPCReconstructor::StreamLevel()&kStreamSignal)>0) && ((qOrig > zerosup)||((AliTPCReconstructor::StreamLevel()&kStreamSignalAll)>0) )) {
+      TTreeSRedirector &cstream = *fDebugStreamer;
+      UInt_t uid = AliTPCROC::GetTPCUniqueID(sector, padRow, padNumber);
         cstream <<"ionTailXtalk"<<
          "uid="<<uid<<                        // globla unique identifier
          "sector="<< sector<<   
index e7a4aae..19887af 100644 (file)
@@ -12,7 +12,12 @@ class AliDigitizationInput;
 
 class AliTPCDigitizer : public AliDigitizer {
  public:    
-    AliTPCDigitizer();
+  enum EStreamFlags{
+    kStreamCrosstalk        =0x1,     // flag: stream crosstalk signal ()
+    kStreamSignal           =0x2,     // flag: stream signal per pad
+    kStreamSignalAll        =0x4      // flag: stream signal per pad dump all signal (without 0 suppression)
+  };
+  AliTPCDigitizer();
     AliTPCDigitizer(AliDigitizationInput * digInput);
     virtual ~AliTPCDigitizer();
     // Initialize merging and digitization