//_____________________________________________________________________
void AliCaloCalibPedestal::Reset()
-{
+{ // Reset all arrays/histograms
ValidateProfiles(); // make sure histos/profiles exist
- // Reset all arrays/histograms
for (int i = 0; i < fModules; i++) {
GetPedProfileLowGain(i)->Reset();
GetPedProfileHighGain(i)->Reset();
//_____________________________________________________________________
Bool_t AliCaloCalibPedestal::AddInfo(AliCaloCalibPedestal *ped)
{
- ValidateProfiles(); // make sure histos/profiles exist
// just do this for the basic histograms/profiles that get filled in ProcessEvent
// may not have data for all modules, but let's just Add everything..
+ ValidateProfiles(); // make sure histos/profiles exist
+
for (int i = 0; i < fModules; i++) {
GetPedProfileLowGain(i)->Add( ped->GetPedProfileLowGain(i) );
GetPedProfileHighGain(i)->Add( ped->GetPedProfileHighGain(i) );
GetPeakProfileLowGain(i)->Add( ped->GetPeakProfileLowGain(i) );
GetPeakProfileHighGain(i)->Add( ped->GetPeakProfileHighGain(i) );
GetPeakHighGainHisto(i)->Add( ped->GetPeakHighGainHisto(i) );
-
}//end for nModules
// We should also copy other pieces of info: counters and parameters
//_____________________________________________________________________
Bool_t AliCaloCalibPedestal::SetReference(AliCaloCalibPedestal *ref)
-{
+{ // set reference object
if (fReference) delete fReference;//Delete the reference object, if it already exists
fReference = 0;
//_____________________________________________________________________
void AliCaloCalibPedestal::ComputeDiffAndRatio()
-{
- // calculate differences and ratios relative to a reference
+{ // calculate differences and ratios relative to a reference
ValidateProfiles(); // make sure histos/profiles exist
ValidateComparisonProfiles();//Make sure the comparison histos exist