fBuspatchOccupancyLimits(0,1.0),
fDEOccupancyLimits(0,1.0),
fStatus(new AliMUON2DMap(true)),
-fHV(new TExMap),
+fHV(0x0),
fPedestals(calibData.Pedestals()),
fGains(calibData.Gains()),
fTrackerData(0x0)
/// create a tracker data from the occupancy map
fTrackerData = new AliMUONTrackerData("OCC","OCC",*(calibData.OccupancyMap()));
}
-
+ if ( calibData.HV() )
+ {
+ /// Only create the fHV internal store if there are some HV values available
+ fHV = new TExMap;
+ }
}
//_____________________________________________________________________________
AliCodeTimerAuto("",0)
+ if (!fHV) return kFALSE;
+
Bool_t error = kFALSE;
hvChannelTooLow = kFALSE;
hvChannelTooHigh = kFALSE;
AliCodeTimerAuto("",0)
+ if (!fHV) return kFALSE;
+
Bool_t error = kFALSE;
hvChannelTooLow = kFALSE;
hvChannelTooHigh = kFALSE;
AliCodeTimerAuto("",0)
- if ( !fkCalibrationData.HV() ) return kMissing;
+ if ( !fHV ) return kMissing;
Long_t lint = fHV->GetValue(AliMpManuUID::BuildUniqueID(detElemId,manuId));
#include "AliMUONDigitStoreV1.h"
#include "AliMUONDigitStoreV2R.h"
#include "AliMUONGeometryTransformer.h"
+#include "AliMUONPadStatusMaker.h"
#include "AliMUONPreClusterFinder.h"
#include "AliMUONPreClusterFinderV2.h"
#include "AliMUONPreClusterFinderV3.h"
#include "AliCDBManager.h"
#include "AliCodeTimer.h"
#include "AliLog.h"
+#include "AliRunInfo.h"
#include <Riostream.h>
#include <TObjArray.h>
CreateCalibrator();
}
AliCodeTimerAuto(Form("%s::Calibrate(AliMUONVDigitStore*)",fDigitCalibrator->ClassName()),0)
- fDigitCalibrator->Calibrate(digitStore);
+ fDigitCalibrator->Calibrate(digitStore);
}
//_____________________________________________________________________________
return;
}
- // Check that we get all the calibrations we'll need
- if ( !fCalibrationData->Pedestals() ||
- !fCalibrationData->Gains() ||
- !fCalibrationData->HV() )
+ // It is now time to check whether we have everything to proceed.
+ // What we need depends on whether both tracker and trigger
+ // are in the readout chain, and what specific "bad channel policy"
+ // we use
+
+ Bool_t kTracker(kFALSE);
+ Bool_t kTrigger(kFALSE);
+
+ const AliRunInfo* runInfo = GetRunInfo();
+ if (!runInfo)
+ {
+ AliError("Could not get runinfo ?")
+ }
+ else
+ {
+ TString detectors(runInfo->GetActiveDetectors());
+ if (detectors.Contains("MUONTRK")) kTracker=kTRUE;
+ if (detectors.Contains("MUONTRG")) kTrigger=kTRUE;
+ }
+
+ AliInfo(Form("Run with MUON TRIGGER : %s and MUON TRACKER : %s",
+ kTrigger ? "YES":"NO" ,
+ kTracker ? "YES":"NO"));
+
+ if ( kTracker )
{
- AliFatal("Could not access all required calibration data");
+ // Check that we get all the calibrations we'll need
+ if ( !fCalibrationData->Pedestals() ||
+ !fCalibrationData->Gains() )
+ {
+ AliFatal(Form("Could not access all required calibration data (PED %p GAIN %p)",
+ fCalibrationData->Pedestals(),fCalibrationData->Gains()));
+ }
+
+ if ( !fCalibrationData->HV() )
+ {
+ // Special treatment of HV. We only break if the values
+ // are not there *AND* we cut on them.
+ UInt_t mask = GetRecoParam()->PadGoodnessMask();
+ TString smask(AliMUONPadStatusMaker::AsCondition(mask));
+ if ( smask.Contains("HV") )
+ {
+ AliFatal("Could not access all required calibration data (HV)");
+ }
+ }
}
TString opt(GetOption());