1 //========================================================================
2 // Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved.
4 // Author: The ALICE Off-line Project.
5 // Contributors are mentioned in the code where appropriate.
7 // Permission to use, copy, modify and distribute this software and its
8 // documentation strictly for non-commercial purposes is hereby granted
9 // without fee, provided that the above copyright notice appears in all
10 // copies and that both the copyright notice and this permission notice
11 // appear in the supporting documentation. The authors make no claims
12 // about the suitability of this software for any purpose. It is
13 // provided "as is" without express or implied warranty.
14 //========================================================================
16 // Class AliEMCALTracker
17 // -----------------------
18 // Implementation of the track matching method between barrel tracks and
20 // Besides algorithm implementation, some cuts are required to be set
21 // in order to define, for each track, an acceptance window where clusters
22 // are searched to find best match (if any).
23 // The class accepts as input an ESD container, and works directly on it,
24 // simply setting, for each of its tracks, the fEMCALindex flag, for each
25 // track which is matched to a cluster.
26 // In order to use method, one must launch PropagateBack().
28 // ------------------------------------------------------------------------
29 // author: A. Pulvirenti (alberto.pulvirenti@ct.infn.it)
30 //=========================================================================
32 #include <Riostream.h>
41 #include <TClonesArray.h>
45 #include "AliESDtrack.h"
46 #include "AliKalmanTrack.h"
47 #include "AliEMCALRecPoint.h"
48 #include "AliRunLoader.h"
49 #include "AliEMCALTrack.h"
50 #include "AliEMCALLoader.h"
51 #include "AliEMCALTracker.h"
53 ClassImp(AliEMCALTracker)
55 //------------------------------------------------------------------------------
57 AliEMCALTracker::AliEMCALTracker()
60 fTrackCorrMode(kTrackCorrNone),
75 // Default constructor.
76 // Initializes al simple data members to default values,
77 // and all collections to NULL.
78 // Output file name is set to a default value.
82 //------------------------------------------------------------------------------
84 AliEMCALTracker::AliEMCALTracker(const AliEMCALTracker& copy)
86 fNPropSteps(copy.fNPropSteps),
87 fTrackCorrMode(copy.fTrackCorrMode),
91 fCutAlphaMin(copy.fCutAlphaMin),
92 fCutAlphaMax(copy.fCutAlphaMax),
93 fCutAngle(copy.fCutAngle),
94 fMaxDist(copy.fMaxDist),
97 fTracks((TObjArray*)copy.fTracks->Clone()),
98 fClusters((TObjArray*)copy.fClusters->Clone()),
99 fMatches((TList*)copy.fMatches->Clone())
103 // Besides copying all parameters, duplicates all collections.
107 //------------------------------------------------------------------------------
109 AliEMCALTracker& AliEMCALTracker::operator=(const AliEMCALTracker& copy)
112 // Assignment operator.
113 // Besides copying all parameters, duplicates all collections.
119 fCutAlphaMin = copy.fCutAlphaMin;
120 fCutAlphaMax = copy.fCutAlphaMax;
121 fCutAngle = copy.fCutAngle;
122 fMaxDist = copy.fMaxDist;
124 fTracks = (TObjArray*)copy.fTracks->Clone();
125 fClusters = (TObjArray*)copy.fClusters->Clone();
126 fMatches = (TList*)copy.fMatches->Clone();
131 //------------------------------------------------------------------------------
133 void AliEMCALTracker::Clear(Option_t* option)
137 // Clears all specified arrays and the containers themselves.
141 Bool_t clearTracks = opt.Contains("TRACKS");
142 Bool_t clearClusters = opt.Contains("CLUSTERS");
143 Bool_t clearMatches = opt.Contains("MATCHES");
144 if (opt.Contains("ALL")) {
146 clearClusters = kTRUE;
147 clearMatches = kTRUE;
150 if (fTracks != 0x0 && clearTracks) {
151 if (!fTracks->IsEmpty()) fTracks->Delete();
155 if (fClusters != 0x0 && clearClusters) {
156 if (!fClusters->IsEmpty()) fClusters->Delete();
160 if (fMatches != 0x0 && clearMatches) {
161 if (!fMatches->IsEmpty()) fMatches->Delete();
167 //------------------------------------------------------------------------------
169 Int_t AliEMCALTracker::LoadClusters(TTree *cTree)
172 // Load EMCAL clusters in the form of AliEMCALRecPoint,
173 // from simulation temporary files.
174 // (When included in reconstruction chain, this method is used automatically)
179 TBranch *branch = cTree->GetBranch("EMCALECARP");
181 AliError("can't get the branch with the EMCAL clusters");
185 TClonesArray dummy("AliEMCALRecPoint", 10000);
186 TClonesArray *clusters = &dummy;
187 branch->SetAddress(&clusters);
188 Int_t nClusters = (Int_t)clusters->GetEntries();
191 fClusters = new TObjArray(0);
192 for (Int_t i = 0; i < nClusters; i++) {
193 AliEMCALRecPoint *cluster = (AliEMCALRecPoint*)clusters->At(i);
194 if (!cluster) continue;
195 if (cluster->GetClusterType() != AliESDCaloCluster::kClusterv1) continue;
196 AliEMCALMatchCluster *matchCluster = new AliEMCALMatchCluster(i, cluster);
197 fClusters->AddLast(matchCluster);
199 if (fClusters->IsEmpty()) {
200 AliError("No clusters collected");
204 AliInfo(Form("Collected %d clusters", fClusters->GetEntries()));
209 //------------------------------------------------------------------------------
211 Int_t AliEMCALTracker::LoadClusters(AliESD *esd)
214 // Load EMCAL clusters in the form of AliESDCaloClusters,
215 // from an AliESD object.
218 // make sure that tracks/clusters collections are empty
221 Int_t start = esd->GetFirstEMCALCluster();
222 Int_t nClustersEMC = esd->GetNumberOfEMCALClusters();
223 Int_t end = start + nClustersEMC;
225 fClusters = new TObjArray(0);
228 for (i = start; i < end; i++) {
229 AliESDCaloCluster *cluster = esd->GetCaloCluster(i);
230 if (!cluster) continue;
231 if (cluster->GetClusterType() != AliESDCaloCluster::kClusterv1) continue;
232 AliEMCALMatchCluster *matchCluster = new AliEMCALMatchCluster(i, cluster);
233 fClusters->AddLast(matchCluster);
235 if (fClusters->IsEmpty()) {
236 AliError("No clusters collected");
240 AliInfo(Form("Collected %d clusters", fClusters->GetEntries()));
245 //------------------------------------------------------------------------------
247 Int_t AliEMCALTracker::LoadTracks(AliESD *esd)
255 Int_t nTracks = esd->GetNumberOfTracks();
256 fTracks = new TObjArray(0);
261 for (i = 0; i < nTracks; i++) {
262 AliESDtrack *esdTrack = esd->GetTrack(i);
263 // set by default the value corresponding to "no match"
264 esdTrack->SetEMCALcluster(-99999);
265 // if (esdTrack->GetLabel() < 0) continue;
266 // if (!(esdTrack->GetStatus() & AliESDtrack::kTOFout)) continue;
268 for (j = 0; j < 3; j++) {
269 if (esdTrack->GetKinkIndex(j) > 0) isKink = kTRUE;
271 if (isKink) continue;
272 AliEMCALTrack *track = new AliEMCALTrack(*esdTrack);
273 // check alpha and reject the tracks which fall outside EMCAL acceptance
274 alpha = track->GetAlpha() * TMath::RadToDeg();
275 if (alpha > -155.0 && alpha < 67.0) {
279 track->SetSeedIndex(i);
280 track->SetSeedLabel(esdTrack->GetLabel());
281 fTracks->AddLast(track);
283 if (fTracks->IsEmpty()) {
284 AliError("No tracks collected");
288 AliInfo(Form("Collected %d tracks", fTracks->GetEntries()));
293 //------------------------------------------------------------------------------
295 Int_t AliEMCALTracker::PropagateBack(AliESD* esd)
298 // Main operation method.
299 // Gets external AliESD containing tracks to be matched.
300 // After executing match finding, stores in the same ESD object all infos
301 // and releases the object for further reconstruction steps.
305 AliError("NULL ESD passed");
310 // if cluster array is empty, cluster are collected
311 // from the passed ESD, and work is done with ESDCaloClusters
312 Int_t okLoadClusters;
313 if (!fClusters || (fClusters && fClusters->IsEmpty())) {
314 AliInfo("Cluster array is empty. Loading clusters...");
315 okLoadClusters = LoadClusters(esd);
316 if (okLoadClusters) return 2;
320 // collect ESD tracks
321 Int_t okLoadTracks = LoadTracks(esd);
322 if (okLoadTracks) return 3;
325 // each track is propagated to the "R" position of each cluster.
326 // The closest cluster is assigned as match.
327 // IF no clusters lie within the maximum allowed distance, no matches are assigned.
328 Int_t nMatches = CreateMatches();
330 AliInfo("No good matches found.");
334 AliInfo(Form("Found %d matches", nMatches));
338 // when more than 1 track share the same matched cluster, only the closest one is kept.
339 Int_t nRemoved = SolveCompetitions();
340 AliInfo(Form("Removed %d duplicate matches", nRemoved));
341 if (nRemoved >= nMatches) {
342 AliError("Removed ALL matches! Check the algorithm or data. Nothing to save");
347 // save obtained information setting the 'fEMCALindex' field of AliESDtrack object
348 Int_t nSaved = 0, trackID;
349 TListIter iter(fMatches);
350 AliEMCALMatch *match = 0;
351 while ( (match = (AliEMCALMatch*)iter.Next()) ) {
352 if (!match->CanBeSaved()) continue;
353 AliEMCALTrack *track = (AliEMCALTrack*)fTracks->At(match->GetIndexT());
354 AliEMCALMatchCluster *cluster = (AliEMCALMatchCluster*)fClusters->At(match->GetIndexC());
355 trackID = track->GetSeedIndex();
356 AliESDtrack *esdTrack = esd->GetTrack(trackID);
357 if (!esdTrack) continue;
358 if (esdTrack->GetLabel() == cluster->Label()) {
359 esdTrack->SetEMCALcluster(cluster->Index());
362 esdTrack->SetEMCALcluster(-cluster->Index());
367 AliEMCALTrack *track = 0;
368 TObjArrayIter tracks(fTracks);
369 while ( (track = (AliEMCALTrack*)tracks.Next()) ) {
370 trackID = track->GetSeedIndex();
371 clusterID = track->GetMatchedClusterIndex();
372 AliESDtrack *esdTrack = esd->GetTrack(trackID);
373 if (!esdTrack) continue;
375 esdTrack->SetEMCALcluster(-99999);
378 AliEMCALMatchCluster *cluster = (AliEMCALMatchCluster*)fClusters->At(clusterID);
379 if (!cluster) continue;
380 if (esdTrack->GetLabel() == cluster->Label()) {
382 esdTrack->SetEMCALcluster(cluster->Index());
385 esdTrack->SetEMCALcluster(-cluster->Index());
391 AliInfo(Form("Saved %d matches", nSaved));
396 //------------------------------------------------------------------------------
398 void AliEMCALTracker::SetTrackCorrectionMode(Option_t *option)
401 // Set track correction mode
402 // gest the choice in string format and converts into
409 if (!opt.CompareTo("NONE")) {
410 fTrackCorrMode = kTrackCorrNone;
412 else if (!opt.CompareTo("MMB")) {
413 fTrackCorrMode = kTrackCorrMMB;
415 else if (!opt.CompareTo("FIXED")) {
416 fTrackCorrMode = kTrackCorrFixed;
419 cerr << "E-AliEMCALTracker::SetTrackCorrectionMode '" << option << "': Unrecognized option" << endl;
424 //------------------------------------------------------------------------------
426 Double_t AliEMCALTracker::AngleDiff(Double_t angle1, Double_t angle2)
430 // Given two angles in radiants, it converts them in the range 0-2pi
431 // then computes their true difference, i.e. if the difference a1-a2
432 // results to be larger than 180 degrees, it returns 360 - diff.
435 if (angle1 < 0.0) angle1 += TMath::TwoPi();
436 if (angle1 > TMath::TwoPi()) angle1 -= TMath::TwoPi();
437 if (angle2 < 0.0) angle2 += TMath::TwoPi();
438 if (angle2 > TMath::TwoPi()) angle2 -= TMath::TwoPi();
440 Double_t diff = TMath::Abs(angle1 - angle2);
441 if (diff > TMath::Pi()) diff = TMath::TwoPi() - diff;
443 if (angle2 > angle1) diff = -diff;
448 //------------------------------------------------------------------------------
450 Double_t AliEMCALTracker::CheckPair
451 (AliEMCALTrack *track, AliEMCALMatchCluster *cl)
454 // Given a track and a cluster,
455 // propagates the first to the radius of the second.
456 // Then, checks the propagation point against all cuts.
457 // If at least a cut is not passed, a valuer equal to
458 // twice the maximum allowed distance is passed (so the value returned
459 // will not be taken into account when creating matches)
463 Bool_t isTrue = kFALSE;
464 // if (tr->GetSeedLabel() == cl->Label()) {
466 // cout << "TRUE MATCH!!!" << endl;
469 // copy track into temporary variable
470 AliEMCALTrack *tr = new AliEMCALTrack(*track);
472 Double_t distance = 2.0 * fMaxDist;
474 // check against cut on difference 'alpha - phi'
475 Double_t phi = TMath::ATan2(cl->Y(), cl->X());
476 phi = AngleDiff(phi, tr->GetAlpha());
477 if (phi < fCutAlphaMin || phi > fCutAlphaMax) return distance;
479 // try to propagate to cluster radius
480 // (return the 'distance' value if it fails)
481 Double_t pos[3], &x = pos[0], &y = pos[1], &z = pos[2];
484 Double_t rt = TMath::Sqrt(x*x + y*y);
485 Double_t rc = TMath::Sqrt(cl->X()*cl->X() + cl->Y()*cl->Y());
487 if (fTrackCorrMode == kTrackCorrMMB) {
488 Double_t pos1[3], pos2[3], param[6];
495 AliKalmanTrack::MeanMaterialBudget(pos1, pos2, param);
499 else if (fTrackCorrMode == kTrackCorrFixed) {
510 cout.setf(ios::fixed);
512 if (isTrue) cout << "Init : " << rt << ' ' << x << ' ' << y << ' ' << z << endl;
513 for (i = 0; i < fNPropSteps; i++) {
514 r = rt + (rc - rt) * ((Double_t)(i+1)/(Double_t)fNPropSteps);
515 if (!tr->PropagateTo(r, x0, rho)) return distance;
517 if (isTrue) cout << "Step : " << r << ' ' << x << ' ' << y << ' ' << z << endl;
519 if (isTrue) cout << "Clstr: " << rc << ' ' << cl->X() << ' ' << cl->Y() << ' ' << cl->Z() << endl;
522 // when no steps are used, no correction makes sense
523 if (!tr->PropagateTo(rc, 0.0, 0.0)) return distance;
526 // get global propagation of track at end of propagation
530 TVector3 vc(cl->X(), cl->Y(), cl->Z());
531 TVector3 vt(x, y, z);
532 Double_t angle = TMath::Abs(vc.Angle(vt)) * TMath::RadToDeg();
533 if (angle > fCutAngle) {
534 //cout << "angle" << endl;
538 // compute differences wr to each coordinate
541 //cout << "cut X" << endl;
546 //cout << "cut Y" << endl;
551 //cout << "cut Z" << endl;
555 // compute true distance
556 distance = TMath::Sqrt(x*x + y*y + z*z);
557 //Double_t temp = CheckPairV2(tr, cl);
558 //if (temp < distance) return temp; else
560 // delete temporary object
566 //------------------------------------------------------------------------------
568 Double_t AliEMCALTracker::CheckPairV2
569 (AliEMCALTrack *tr, AliEMCALMatchCluster *cl)
572 // Given a track and a cluster,
573 // propagates the first to the radius of the second.
574 // Then, checks the propagation point against all cuts.
575 // If at least a cut is not passed, a valuer equal to
576 // twice the maximum allowed distance is passed (so the value returned
577 // will not be taken into account when creating matches)
581 // Bool_t isTrue = kFALSE;
582 // if (tr->GetSeedLabel() == cl->Label()) {
584 // cout << "TRUE MATCH!!!" << endl;
587 Double_t distance = 2.0 * fMaxDist;
590 if (fTrackCorrMode == kTrackCorrMMB) {
591 Double_t pos1[3], pos2[3], param[6];
599 AliKalmanTrack::MeanMaterialBudget(pos1, pos2, param);
603 else if (fTrackCorrMode == kTrackCorrFixed) {
612 // check against cut on difference 'alpha - phi'
613 Double_t phi = TMath::ATan2(cl->Y(), cl->X());
614 phi = AngleDiff(phi, tr->GetAlpha());
615 if (phi < fCutAlphaMin || phi > fCutAlphaMax) return distance;
617 // get cluster position and put them into a vector
618 TVector3 vc(cl->X(), cl->Y(), cl->Z());
619 // rotate the vector in order to put all clusters on a plane intersecting
620 // vertically the X axis; the angle depends on the sector
621 Double_t clusterRot, clusterPhi = vc.Phi() * TMath::RadToDeg();
622 if (clusterPhi < 0.0) clusterPhi += 360.0;
623 if (clusterPhi < 100.0) {
626 else if (clusterPhi < 120.0) {
629 else if (clusterPhi < 140.0) {
632 else if (clusterPhi < 160.0) {
635 else if (clusterPhi < 180.0) {
641 vc.RotateZ(clusterRot * TMath::DegToRad());
642 // generate a track from the ESD track selected
643 AliEMCALTrack *track = new AliEMCALTrack(*tr);
644 // compute the 'phi' coordinate of the intersection point to
648 track->GetYAt(vc.X(), track->GetBz(), y);
649 Double_t tmp = x*TMath::Cos(track->GetAlpha()) - y*TMath::Sin(track->GetAlpha());
650 y = x*TMath::Sin(track->GetAlpha()) + y*TMath::Cos(track->GetAlpha());
652 Double_t trackPhi = TMath::ATan2(y, x) * TMath::RadToDeg();
653 // compute phi difference
654 Double_t dphi = trackPhi - clusterPhi;
655 if (TMath::Abs(dphi) > 180.0) {
656 dphi = 360.0 - TMath::Abs(dphi);
657 if (clusterPhi > trackPhi) dphi = -dphi;
659 // propagate track to the X position of rotated cluster
660 // and get the vector of X, Y, Z in the local ref. frame of the track
661 track->PropagateTo(vc.X(), x0, rho);
662 TVector3 vt(track->GetX(), track->GetY(), track->GetZ());
663 vt.RotateZ((clusterPhi - trackPhi) * TMath::DegToRad());
664 TVector3 vdiff = vt-vc;
666 // compute differences wr to each coordinate
667 if (vdiff.X() > fCutX) return distance;
668 if (vdiff.Y() > fCutY) return distance;
669 if (vdiff.Z() > fCutZ) return distance;
671 // compute true distance
672 distance = vdiff.Mag();
676 //------------------------------------------------------------------------------
678 Int_t AliEMCALTracker::CreateMatches()
681 // Creation of matches between tracks and clusters.
682 // For each ESD track collected by ReadESD(), an AliEMCALTrack is made.
683 // If it finds a cluster close enough to its propagation to EMCAL,
684 // which passes all cuts, its index is stored.
685 // If many clusters are found which satisfy the criteria described above,
686 // only the closest one is stored.
687 // At this level, it is possible that two tracks share the same cluster.
690 // if matches collection is already present, it is deleted
695 fMatches = new TList;
697 // initialize counters and indexes
699 Int_t ic, nClusters = (Int_t)fClusters->GetEntries();
700 Int_t it, nTracks = fTracks->GetEntries();
702 // external loop on clusters, internal loop on tracks
704 for (ic = 0; ic < nClusters; ic++) {
705 cout << "\rMatching cluster " << ic+1 << " of " << nClusters << flush;
706 AliEMCALMatchCluster *cluster = (AliEMCALMatchCluster*)fClusters->At(ic);
707 for (it = 0; it < nTracks; it++) {
708 AliEMCALTrack *track = (AliEMCALTrack*)fTracks->At(it);
709 dist = CheckPair(track, cluster);
710 if (dist <= fMaxDist) {
711 AliEMCALMatch *candidate = new AliEMCALMatch;
712 candidate->SetIndexT(it);
713 candidate->SetIndexC(ic);
714 candidate->SetDistance(dist);
715 fMatches->Add(candidate);
723 // loop on clusters and tracks
725 Double_t dist, distBest;
726 for (it = 0; it < nTracks; it++) {
727 AliEMCALTrack *track = (AliEMCALTrack*)fTracks->At(it);
728 if (!track) continue;
731 for (ic = 0; ic < nClusters; ic++) {
732 AliEMCALMatchCluster *cluster = (AliEMCALMatchCluster*)fClusters->At(ic);
733 if (!cluster) continue;
734 dist = CheckPair(track, cluster);
735 if (dist < distBest) {
741 track->SetMatchedClusterIndex(icBest);
742 track->SetMatchedClusterDist(distBest);
746 track->SetMatchedClusterIndex(-1);
754 //------------------------------------------------------------------------------
756 Int_t AliEMCALTracker::SolveCompetitions()
760 // The match list is sorted from the best to the worst match, w.r. to the
761 // distance between track prolongation and cluster position.
762 // Based on this criterion, starting from the first (best) match, a flag
763 // is set to both the involved track and cluster, and all matches containing
764 // an already used track or cluster are removed, leaving only the best match
768 // sort matches with respect to track-cluster distance
769 fMatches->Sort(kSortAscending);
771 // keep track of eliminated matches
774 // initialize flags to check repetitions
775 Int_t ic, nClusters = (Int_t)fClusters->GetEntries();
776 Int_t it, nTracks = fTracks->GetEntries();
777 Bool_t *usedC = new Bool_t[nClusters];
778 Bool_t *usedT = new Bool_t[nTracks];
779 for (ic = 0; ic < nClusters; ic++) usedC[ic] = kFALSE;
780 for (it = 0; it < nTracks; it++) usedT[it] = kFALSE;
783 TListIter iter(fMatches);
784 AliEMCALMatch *match = 0;
785 while ( (match = (AliEMCALMatch*)iter.Next()) ) {
786 ic = match->GetIndexC();
787 it = match->GetIndexT();
788 if (!usedT[it] && !usedC[ic]) {
791 match->CanBeSaved() = kTRUE;
799 Int_t it1, it2, nTracks = (Int_t)fTracks->GetEntries();
800 AliEMCALTrack *track1 = 0, *track2 = 0;
801 for (it1 = 0; it1 < nTracks; it1++) {
802 track1 = (AliEMCALTrack*)fTracks->At(it1);
803 if (!track1) continue;
804 if (track1->GetMatchedClusterIndex() < 0) continue;
805 for (it2 = it1+1; it2 < nTracks; it2++) {
806 track2 = (AliEMCALTrack*)fTracks->At(it2);
807 if (!track2) continue;
808 if (track2->GetMatchedClusterIndex() < 0) continue;
809 if (track1->GetMatchedClusterIndex() != track2->GetMatchedClusterIndex()) continue;
811 if (track1->GetMatchedClusterDist() < track2->GetMatchedClusterDist()) {
812 track2->SetMatchedClusterIndex(-1);
814 else if (track2->GetMatchedClusterDist() < track1->GetMatchedClusterDist()) {
815 track1->SetMatchedClusterIndex(-1);
824 //------------------------------------------------------------------------------
826 void AliEMCALTracker::UnloadClusters()
829 // Free memory from clusters
835 //------------------------------------------------------------------------------
837 AliEMCALTracker::AliEMCALMatchCluster::AliEMCALMatchCluster(Int_t index, AliEMCALRecPoint *recPoint)
839 fLabel(recPoint->GetPrimaryIndex()),
845 // Translates an AliEMCALRecPoint object into the internal format.
846 // Index of passed cluster in its native array must be specified.
849 recPoint->GetGlobalPosition(clpos);
856 //------------------------------------------------------------------------------
858 AliEMCALTracker::AliEMCALMatchCluster::AliEMCALMatchCluster(Int_t index, AliESDCaloCluster *caloCluster)
860 fLabel(caloCluster->GetPrimaryIndex()),
866 // Translates an AliESDCaloCluster object into the internal format.
867 // Index of passed cluster in its native array must be specified.
870 caloCluster->GetGlobalPosition(clpos);
872 fX = (Double_t)clpos[0];
873 fY = (Double_t)clpos[1];
874 fZ = (Double_t)clpos[2];
877 //------------------------------------------------------------------------------
879 Int_t AliEMCALTracker::AliEMCALMatch::Compare(const TObject *obj) const
882 // Tracks compared wrt their distance from matched point
885 AliEMCALTracker::AliEMCALMatch *that = (AliEMCALTracker::AliEMCALMatch*)obj;
887 Double_t thisDist = fDistance;
888 Double_t thatDist = that->GetDistance();
890 if (thisDist > thatDist) return 1;
891 else if (thisDist < thatDist) return -1;
895 AliEMCALTracker::AliEMCALMatch::AliEMCALMatch()
902 //default constructor
906 AliEMCALTracker::AliEMCALMatch::AliEMCALMatch(const AliEMCALMatch& copy)
908 fCanBeSaved(copy.fCanBeSaved),
909 fIndexC(copy.fIndexC),
910 fIndexT(copy.fIndexT),
911 fDistance(copy.fDistance)