return kTRUE;//We succesfully loaded the object
}
+
+//_____________________________________________________________________
+Bool_t AliCaloCalibPedestal::SetReference(AliCaloCalibPedestal *ref)
+{
+ if (fReference) delete fReference;//Delete the reference object, if it already exists
+ fReference = 0;
+
+ fReference = ref;
+
+ if (!fReference || (fReference->GetDetectorType() != fDetType)) {
+ if (fReference) delete fReference;//Delete the object, in case we had an object of the wrong type
+ fReference = 0;
+ return kFALSE;
+ }
+
+ return kTRUE;//We succesfully loaded the object
+}
+
//_____________________________________________________________________
void AliCaloCalibPedestal::ValidateComparisonProfiles()
{
fRows, fRowMin, fRowMax,"s"));
//LED Ref/Mon pedestals, low gain
- name = "hPedestalLEDReflowgain";
+ name = "hPedestalLEDReflowgainRatio";
name += i;
title = "Pedestal ratio LEDRef, low gain, module ";
title += i;
Bool_t LoadReferenceCalib(TString fileName, TString objectName); //Loads another AliCaloCalibPedestal by name "objectName" from the file "fileName", for reference
void ComputeDiffAndRatio();//Actually computes the difference and ratio into the histo's in memory
AliCaloCalibPedestal * GetReference() const {return fReference;}; //Get the reference object. Needed for debug, will probably be removed later
+ Bool_t SetReference(AliCaloCalibPedestal *ref);
void ComputeDeadTowers(const char * deadMapFile = 0);//Computes the dead tower values
void ComputeHotAndWarningTowers(const char * hotMapFile = 0);//Computes the hot tower values