fGlobalTriggerBoardMasks(0x0),
fTriggerLut(0x0),
fTriggerEfficiency(0x0),
-fCapacitances(0x0)
+fCapacitances(0x0),
+fNeighbours(0x0)
{
/// Default ctor.
OnDemandTriggerLut();
OnDemandTriggerEfficiency();
OnDemandCapacitances();
+ OnDemandNeighbours();
}
}
return OnDemandCapacitances();
}
+//_____________________________________________________________________________
+AliMUONV2DStore*
+AliMUONCalibrationData::Neighbours() const
+{
+ /// Create (if needed) and return the internal store for neighbours.
+ return OnDemandNeighbours();
+}
+
//_____________________________________________________________________________
AliMUONV2DStore*
AliMUONCalibrationData::Gains() const
return OnDemandGains();
}
+//_____________________________________________________________________________
+AliMUONV2DStore*
+AliMUONCalibrationData::OnDemandNeighbours() const
+{
+ /// Create (if needed) and return the internal store for neighbours.
+
+ if (!fNeighbours)
+ {
+ AliCDBEntry* entry = GetEntry("MUON/Calib/Neighbours");
+ if (entry)
+ {
+ fNeighbours = dynamic_cast<AliMUONV2DStore*>(entry->GetObject());
+ if (!fNeighbours)
+ {
+ AliError("Neighbours not of the expected type !!!");
+ }
+ }
+ else
+ {
+ AliError("Could not get neighbours !");
+ }
+ }
+ return fNeighbours;
+}
+
//_____________________________________________________________________________
AliMUONV1DStore*
AliMUONCalibrationData::OnDemandCapacitances() const
return fGains;
}
+
//_____________________________________________________________________________
AliMUONVCalibParam*
AliMUONCalibrationData::GlobalTriggerBoardMasks() const
fTriggerEfficiency = 0x0;
delete fCapacitances;
fCapacitances = 0x0;
+ delete fNeighbours;
+ fNeighbours = 0x0;
}