]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Explicit cast (solarisCC5)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 24 Oct 2008 16:39:17 +0000 (16:39 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 24 Oct 2008 16:39:17 +0000 (16:39 +0000)
ITS/AliITSOnlineSPDphysAnalyzer.cxx

index cf234bb510510e470fb15a37f53fc7ee8380396d..f12f08da77876f25dd172ad21a55db66bcdd8d4a 100644 (file)
@@ -232,7 +232,7 @@ UInt_t AliITSOnlineSPDphysAnalyzer::ProcessNoisyPixels() {
          Double_t p = (Double_t)nrChipHits/nrPixels/n;
 
          // Bin(n,k=0):
-         Double_t bin = pow(1-p,n);
+         Double_t bin = pow((Double_t)(1-p),(Double_t)n);
          // Bin(n,k)
          UInt_t k=1;
          while ((bin>fThreshNoisy || k<n*p) && k<=n) {
@@ -363,7 +363,7 @@ UInt_t AliITSOnlineSPDphysAnalyzer::ProcessDeadPixels() {
            Double_t p = (Double_t)nrChipHits/nrPixels/n;
 
            // probability of falsely assigning a dead pixel
-           Double_t falselyDeadProb = pow(1-p,n);
+           Double_t falselyDeadProb = pow((Double_t)(1-p),(Double_t)n);
            //      printf("falselyprob=%e\n",falselyDeadProb);
 
            // can we find dead pixels...?