+ // Sorting
+ if (fSorting)
+ {
+ cout << " ..... sorting pedestal values ....." << endl;
+ THashList pedtable(100,2);
+ while ( ( ped = dynamic_cast<AliMUONVCalibParam*>(next() ) ) )
+ {
+ pedtable.Add(ped);
+ }
+ pedtable.Sort();
+ // iterator over sorted pedestal
+ TIter nextSorted(&pedtable);
+ while ( (ped = (AliMUONVCalibParam*)(nextSorted()) ) )
+ {
+ Int_t busPatchId = ped->ID0();
+ Int_t manuId = ped->ID1();
+ for ( Int_t channelId = 0; channelId < ped->Size(); ++channelId )
+ {
+ Double_t pedMean = ped->ValueAsDouble(channelId, 0);
+ Double_t pedSigma = ped->ValueAsDouble(channelId, 1);
+ out << "\t" << busPatchId << "\t" << manuId <<"\t"<< channelId << "\t" << pedMean <<"\t"<< pedSigma << endl;
+ }
+ }
+ }
+ else
+ {
+ while ( ( ped = dynamic_cast<AliMUONVCalibParam*>(next() ) ) )