}
if(!esd){
- cells = aod->GetEMCALCells();
+ if (aod)cells = aod->GetEMCALCells();
+ else cells = 0;
}
if (!cells)
esdCent = esd->GetCentrality();
}
if(!esd){
- esdCent = aod->GetCentrality();
+ if (aod){
+ esdCent = aod->GetCentrality();
+ } else {
+ esdCent = NULL;
+ return;
+ }
}
//fleche pour pointers, otherwise point.