message: Apply L1 phase calibration for PAR runs in correction framework
diff: @@ -208,9 +208,22 @@ void AliEmcalCorrectionComponent::UpdateCells()
  Int_t bunchCrossNo = fEventManager.InputEvent()->GetBunchCrossNumber();
  - if (fRecoUtils)
  - fRecoUtils->RecalibrateCells(fCaloCells, bunchCrossNo);
  + if (fRecoUtils){
  + //In case of PAR run check global event ID
  + Short_t currentParIndex = 0;
  + if(fRecoUtils->IsParRun()){
  + ULong64_t globalEventID = (ULong64_t)bunchCrossNo + (ULong64_t)fEventManager.InputEvent()->GetOrbitNumber() * (ULong64_t)3564 + (ULong64_t)fEventManager.InputEvent()->GetPeriodNumber() * (ULong64_t)59793994260;
  + for(Short_t ipar=0;ipar<fRecoUtils->GetNPars();ipar++){
  + if(globalEventID >= fRecoUtils->GetGlobalIDPar(ipar)) {
  + currentParIndex++;
  + }
  + }
  + }
  + fRecoUtils->SetCurrentParNumber(currentParIndex);
  + //end of PAR run settings
  + fRecoUtils->RecalibrateCells(fCaloCells, bunchCrossNo);
  + }
  fCaloCells->Sort();
  }
  