]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONQAMappingCheck.cxx
- fixed a bug that didn't allow the overlaid histograms to be plotted because of...
[u/mrichter/AliRoot.git] / MUON / AliMUONQAMappingCheck.cxx
index 880957cac58b2f8724baab10342f92653bea3e09..78c66961afe7b4e2fef3907c567bb8505695f917 100644 (file)
@@ -31,6 +31,7 @@
 #include "AliMUONQAMappingCheck.h"
 
 #include "AliCDBManager.h"
+#include "AliCodeTimer.h"
 #include "AliLog.h"
 #include "AliMUON2DMap.h"
 #include "AliMUONDigitCalibrator.h"
@@ -47,6 +48,8 @@
 #include "AliMpSegmentation.h"
 #include "AliMpVSegmentation.h"
 
+#include "AliMpManuIterator.h"
+
 /// \cond CLASSIMP
 ClassImp(AliMUONQAMappingCheck)
 /// \endcond
@@ -64,7 +67,21 @@ fNumberOfLegitimateMonoCathodeClusters(0)
 {
   /// Ctor
   
+  AliCodeTimerAuto(Form("RUN %d",runNumber),0);
+  
   fGeometryTransformer->LoadGeometryData();
+  
+  // Init the store with all the manus. Note that this is not strictly necessary, 
+  // but it helps not to get its growth (that would otherwise happen in
+  // AddClusterLocation each time we get a cluster associated with a manu where
+  // we got no cluster yet) confused with a memory leak...
+  AliMpManuIterator it;
+  Int_t detElemId, manuId;
+  
+  while (it.Next(detElemId,manuId))
+  {
+    fStore->Add(new AliMUONCalibParamND(4,AliMpConstants::ManuNofChannels(),detElemId,manuId,0.0));
+  }
 }
 
 //_____________________________________________________________________________