clusters->Delete();
delete clusters;
if (fClusters->IsEmpty())
- AliWarning("No clusters collected");
+ AliDebug(1,"No clusters collected");
- AliInfo(Form("Collected %d clusters (RecPoints)", fClusters->GetEntries()));
+ AliDebug(1,Form("Collected %d clusters (RecPoints)", fClusters->GetEntries()));
return 0;
}
fClusters->AddLast(matchCluster);
}
if (fClusters->IsEmpty())
- AliWarning("No clusters collected");
+ AliDebug(1,"No clusters collected");
- AliInfo(Form("Collected %d clusters from ESD", fClusters->GetEntries()));
+ AliDebug(1,Form("Collected %d clusters from ESD", fClusters->GetEntries()));
return 0;
}
fTracks->AddLast(track);
}
if (fTracks->IsEmpty()) {
- AliWarning("No tracks collected");
+ AliDebug(1,"No tracks collected");
}
- AliInfo(Form("Collected %d tracks", fTracks->GetEntries()));
+ AliDebug(1,Form("Collected %d tracks", fTracks->GetEntries()));
return 0;
}
// IF no clusters lie within the maximum allowed distance, no matches are assigned.
Int_t nMatches = CreateMatches();
if (!nMatches) {
- AliInfo(Form("#clusters = %d -- #tracks = %d --> No good matches found.", nClusters, nTracks));
+ AliDebug(1,Form("#clusters = %d -- #tracks = %d --> No good matches found.", nClusters, nTracks));
return 0;
}
else {
- AliInfo(Form("#clusters = %d -- #tracks = %d --> Found %d matches.", nClusters, nTracks, nMatches));
+ AliDebug(1,Form("#clusters = %d -- #tracks = %d --> Found %d matches.", nClusters, nTracks, nMatches));
}
// step 4:
// when more than 1 track share the same matched cluster, only the closest one is kept.
Int_t nRemoved = SolveCompetitions();
- AliInfo(Form("Removed %d duplicate matches", nRemoved));
+ AliDebug(1,Form("Removed %d duplicate matches", nRemoved));
if (nRemoved >= nMatches) {
AliError("Removed ALL matches! Check the algorithm or data. Nothing to save");
return 5;
// step 5:
// save obtained information setting the 'fEMCALindex' field of AliESDtrack object
- Int_t nSaved = 0, trackID, nGood = 0, nFake = 0;
+ Int_t nSaved = 0, trackID;
TListIter iter(fMatches);
AliEMCALMatch *match = 0;
while ( (match = (AliEMCALMatch*)iter.Next()) ) {
// cut on its and tpc track hits
if(esdTrack->GetNcls(0)<=fCutNITS)continue;
if(esdTrack->GetNcls(1)<=fCutNTPC)continue;
-
- if (TMath::Abs(esdTrack->GetLabel()) == cluster->Label()) {
- esdTrack->SetEMCALcluster(cluster->Index());
- nGood++;
- }
- else {
- esdTrack->SetEMCALcluster(-cluster->Index());
- nFake++;
- }
+
+ esdTrack->SetEMCALcluster(cluster->Index());
nSaved++;
}
/*
else {
AliEMCALMatchCluster *cluster = (AliEMCALMatchCluster*)fClusters->At(clusterID);
if (!cluster) continue;
- if (esdTrack->GetLabel() == cluster->Label()) {
- nGood++;
- esdTrack->SetEMCALcluster(cluster->Index());
- }
- else {
- esdTrack->SetEMCALcluster(-cluster->Index());
- }
+
+ esdTrack->SetEMCALcluster(cluster->Index());
nSaved++;
}
}
*/
- AliInfo(Form("Saved %d matches [%d good + %d fake]", nSaved, nGood, nFake));
+ AliDebug(1,Form("Saved %d matches", nSaved));
return 0;
}