]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Explicit cast from enum to Int_t to resolve the ambiguity in the templated function...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Mar 2008 15:33:02 +0000 (15:33 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 13 Mar 2008 15:33:02 +0000 (15:33 +0000)
PMD/AliPMDClusteringV1.cxx
PMD/AliPMDClusteringV2.cxx
TRD/AliTRDtrackerV1.cxx

index 555f2ef1777dc78fd3e429b899100985ec6ee444..bf724a7cf04b4ee651fa84f233f5db009f2f5d3d 100644 (file)
@@ -180,7 +180,7 @@ void AliPMDClusteringV1::DoClust(Int_t idet, Int_t ismn,
   delete [] cellenergy;
 
   Int_t iord1[kNMX];
-  TMath::Sort(kNMX,edepcell,iord1);// order the data
+  TMath::Sort((Int_t)kNMX,edepcell,iord1);// order the data
   cutoff = fCutoff;                // cutoff to discard cells
   ave  = 0.;
   nmx1 = -1;
index 18909d37d6046ffe2d6aa3163299e84f3e23ad34..16b332d6ef56222c4e62c1a47642764b2ddba92b 100644 (file)
@@ -145,7 +145,7 @@ void AliPMDClusteringV2::DoClust(Int_t idet, Int_t ismn,
     }
 
   Int_t iord1[kNMX];
-  TMath::Sort(kNMX,edepcell,iord1);// order the data
+  TMath::Sort((Int_t)kNMX,edepcell,iord1);// order the data
   cutoff = fCutoff; // cutoff used to discard cells having ener. dep.
   ave  = 0.;
   nmx1 = -1;
index 16340c34b3838ba796e36e7eb3245500a4970b1a..97aaa2f3cbc84d06fa86282fa18d922efb256d13 100644 (file)
@@ -1828,7 +1828,7 @@ Double_t AliTRDtrackerV1::BuildSeedingConfigs(AliTRDtrackingChamber **stack, Int
                for(int iplane=0; iplane<4; iplane++) tconfig[iconf] *= chamberQ[planes[iplane]]; 
        }
        
-       TMath::Sort(kNConfigs, tconfig, configs, kTRUE);
+       TMath::Sort((Int_t)kNConfigs, tconfig, configs, kTRUE);
 //     AliInfo(Form("q[%d] = %f", configs[0], tconfig[configs[0]]));
 //     AliInfo(Form("q[%d] = %f", configs[1], tconfig[configs[1]]));
 //     AliInfo(Form("q[%d] = %f", configs[2], tconfig[configs[2]]));