TBranch *branch = NULL;
branch = tR->GetBranch("ITSRecPoints");
if(!branch){
- AliError("Null pointer for RecPoints branch");
+ AliWarning("Null pointer for RecPoints branch, vertex not calculated");
return -1;
}
fDetTypeRec->ResetRecPoints();
}
if(nrpL1 == 0 || nrpL2 == 0){
+ AliDebug(1,Form("No RecPoints in at least one SPD layer (%d %d)",nrpL1,nrpL2));
return -1;
}
AliDebug(1,Form("RecPoints on Layer 1,2 = %d, %d\n",nrpL1,nrpL2));
itsRec = fDetTypeRec->RecPoints();
TBranch *branch;
branch = tR->GetBranch("ITSRecPoints");
+ if(!branch){
+ AliWarning("Null pointer for RecPoints branch, vertex not calculated");
+ ResetHistograms();
+ fCurrentVertex = new AliESDVertex(0.,5.3,-2);
+ return;
+ }
Int_t nrpL1 = 0;
Int_t nrpL2 = 0;
fDetTypeRec->ResetRecPoints();
}
if(nrpL1 == 0 || nrpL2 == 0){
+ AliDebug(1,Form("No RecPoints in at least one SPD layer (%d %d)",nrpL1,nrpL2));
ResetHistograms();
fCurrentVertex = new AliESDVertex(0.,5.3,-2);
return;