// After this method has been called, the clusters of the two layers
// and the tracklets can be retrieved by calling the Get'er methods.
+ if (!treeRP) { AliError(" Invalid ITS cluster tree !\n"); return; }
+ if (!esd) {AliError("ESDEvent is not available, use old reconstructor"); return;}
// reset counters
if (fMult) delete fMult; fMult = 0;
fNClustersLay1 = 0;
fNTracklets = 0;
fNSingleCluster = 0;
//
- if (!treeRP) { AliError(" Invalid ITS cluster tree !\n"); return; }
- //
fESDEvent = esd;
fTreeRP = treeRP;
//
//
LoadClusterArrays(fTreeRP);
// flag clusters used by ESD tracks
- ProcessESDTracks();
+ if (fESDEvent) ProcessESDTracks();
if (!vtx) return;
// Flag the clusters used by ESD tracks
// Flag primary tracks to be used for multiplicity counting
//
+ if (!fESDEvent) return;
AliESDVertex* vtx = (AliESDVertex*)fESDEvent->GetPrimaryVertexTracks();
if (!vtx) vtx = (AliESDVertex*)fESDEvent->GetPrimaryVertexSPD();
if (!vtx) {
// Invokes AliITSMultReconstructor to determine the
// charged multiplicity in the pixel layers
if(fMult){delete fMult; fMult = 0;}
+
Bool_t success=kTRUE;
Bool_t cosmics=kFALSE;
if(!fCurrentVertex)success=kFALSE;