- //Reject clusters with bad channels, close to borders and exotic;
- if(!GetCaloUtils()->GetEMCALRecoUtils()->IsGoodCluster(clus,GetCaloUtils()->GetEMCALGeometry(),GetEMCALCells(),fInputEvent->GetBunchCrossNumber())) return;
-
- //Mask all cells in collumns facing ALICE thick material if requested
- if(GetCaloUtils()->GetNMaskCellColumns())
- {
- Int_t absId = -1;
- Int_t iSupMod = -1;
- Int_t iphi = -1;
- Int_t ieta = -1;
- Bool_t shared = kFALSE;
- GetCaloUtils()->GetEMCALRecoUtils()->GetMaxEnergyCell(GetCaloUtils()->GetEMCALGeometry(), GetEMCALCells(),clus,absId,iSupMod,ieta,iphi,shared);
- if(GetCaloUtils()->MaskFrameCluster(iSupMod, ieta)) return;
- }
-
- if(fSelectEmbeddedClusters)
- {
- if(clus->GetNLabels()==0 || clus->GetLabel() < 0) return;
- //else printf("Embedded cluster, %d, n label %d label %d \n",iclus,clus->GetNLabels(),clus->GetLabel());
- }
-
- //Float_t pos[3];
- //clus->GetPosition(pos);
- //printf("Before Corrections: e %f, x %f, y %f, z %f\n",clus->E(),pos[0],pos[1],pos[2]);
-