Int_t patch = mapping->GetPatchFromEquipmentID(idDDL);
if (patch<0) continue;
Int_t roc=mapping->GetRocFromEquipmentID(idDDL);
+ if (roc<0) continue;
AliTPCCalROC *calRoc=deadMap->GetCalROC(roc);
if (calRoc) {
for ( Int_t branch = 0; branch < 2; branch++ ) {
// main function to make calibration
//
if(!event) return;
- if (event->GetNumberOfTracks()<2) return;
+ if (event->GetNumberOfTracks()<2) return;
+ AliESDfriend *ESDfriend=static_cast<AliESDfriend*>(event->FindListObject("AliESDfriend"));
+ if (!ESDfriend) {
+ return;
+ }
+ if (ESDfriend->TestSkipBit()) return;
+
ResetCurrent();
//if(IsLaser (event))
ProcessLaser (event);
}
}
//
- if (fTPCVertexCorrelation && cal->fTPCVertexCorrelation){
+ if (fTPCVertexCorrelation[0] && cal->fTPCVertexCorrelation[0]){
for (Int_t imeas=0; imeas<5; imeas++){
if (fTPCVertexCorrelation[imeas] && cal->fTPCVertexCorrelation[imeas]) fTPCVertexCorrelation[imeas]->Add(cal->fTPCVertexCorrelation[imeas]);
}