#include "AliMUONQAMappingCheck.h"
#include "AliCDBManager.h"
+#include "AliCodeTimer.h"
#include "AliLog.h"
#include "AliMUON2DMap.h"
#include "AliMUONDigitCalibrator.h"
#include "AliMpSegmentation.h"
#include "AliMpVSegmentation.h"
+#include "AliMpManuIterator.h"
+
/// \cond CLASSIMP
ClassImp(AliMUONQAMappingCheck)
/// \endcond
{
/// 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));
+ }
}
//_____________________________________________________________________________
p = new AliMUONCalibParamND(4,AliMpConstants::ManuNofChannels(),detElemId,manuId,0.0);
fStore->Add(p);
}
- if ( !monoCathode)
- {
- p->SetValueAsDouble(manuChannel,0,p->ValueAsDouble(manuChannel,0)+1.0);
- }
- else
+
+ p->SetValueAsDouble(manuChannel,0,p->ValueAsDouble(manuChannel,0)+1.0);
+
+ if ( monoCathode )
{
p->SetValueAsDouble(manuChannel,1,p->ValueAsDouble(manuChannel,1)+1.0);
if (!legitimateMonoCathode)