]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTrackerCalibratedDataMaker.cxx
Enable error logger and properly count the number of events per DDL, both of which...
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackerCalibratedDataMaker.cxx
index 9c1b81104f460a1ad18d4efd26a0ba9c13f9768c..984cd805ec50417c538d6164587a6b78426ebab0 100644 (file)
@@ -20,6 +20,7 @@
 #include "AliCDBManager.h"
 #include "AliCDBStorage.h"
 #include "AliCodeTimer.h"
+#include "AliDAQ.h"
 #include "AliLog.h"
 #include "AliMUON2DMap.h"
 #include "AliMUONCalibParamND.h"
@@ -303,12 +304,21 @@ AliMUONTrackerCalibratedDataMaker::ProcessEvent()
     stream = new AliMUONRawStreamTracker(fRawReader);
   }
   
+  stream->EnabbleErrorLogger();
+  
   stream->First();
   
   Int_t buspatchId;
   UShort_t manuId;
   UChar_t manuChannel;
        UShort_t adc;
+  const Int_t nddls = AliDAQ::NumberOfDdls("MUONTRK");
+  TArrayI nevents(nddls);
+
+  for ( Int_t i = 0; i < nddls; ++i ) 
+  {
+    nevents[i] = 0;
+  }
   
   fOneEventData->Clear();
   
@@ -316,6 +326,10 @@ AliMUONTrackerCalibratedDataMaker::ProcessEvent()
   {    
     Int_t detElemId = AliMpDDLStore::Instance()->GetDEfromBus(buspatchId);
     
+    Int_t ddl = AliMpDDLStore::Instance()->GetDDLfromBus(buspatchId);
+
+    nevents[ddl] = 1;
+    
     AliMUONVCalibParam* param = static_cast<AliMUONVCalibParam*>(fOneEventData->FindObject(detElemId,manuId));
     if (!param)
     {
@@ -342,7 +356,7 @@ AliMUONTrackerCalibratedDataMaker::ProcessEvent()
   if ( !stream->IsErrorMessage() )
   {
     good = kTRUE;
-    fAccumulatedData->Add(*fOneEventData);
+    fAccumulatedData->Add(*fOneEventData,&nevents);    
   }
   
   delete stream;