Problems with the HP compiler fixed.
authorbarbera <barbera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Jun 2000 17:23:24 +0000 (17:23 +0000)
committerbarbera <barbera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Jun 2000 17:23:24 +0000 (17:23 +0000)
ITS/AliITSdcsSSD.cxx
ITS/AliITSstatistics2.h

index 14d898b4d2d543a33a1c974b248f02fb81804e16..e89b3b8900e0f368a7d7bf69da6511554e5d4eb4 100644 (file)
@@ -29,7 +29,7 @@ AliITSdcsSSD::AliITSdcsSSD(AliITSsegmentation *seg, AliITSresponse *resp)
        npar=6;
     }
 
-    Float_t detpar[npar];
+    Float_t *detpar = new Float_t [npar];
     resp->GetDetParam(detpar);
 
     fNInvalid = detpar[0];
@@ -44,6 +44,9 @@ AliITSdcsSSD::AliITSdcsSSD(AliITSsegmentation *seg, AliITSresponse *resp)
     Option_t *opt,*dummy;
     resp->ParamOptions(opt,dummy);
     if (strstr(opt,"SetInvalid")) SetInvalidMC(fNInvalid,fISigma);
+        
+        delete [] detpar;
+        delete detpar;
 
 }
 
index d108aeb8cd0ad2cb4ed03db04c960e055ed599b8..9eb063dcd595dd95718dc158980840587ddb07e8 100644 (file)
@@ -31,7 +31,7 @@ class AliITSstatistics2 : public TObject {
                                                                                                                                 } 
     void AddValue(Float_t y,Float_t x){
                                            // default weight F.
-                                           AddValue(y,x,1.0);
+                                           AddValue((Double_t)y,(Double_t)x,(Double_t)1.0);
                                                                                                  }
     Double_t GetXNth (Int_t order);
     Double_t GetYNth (Int_t order);