]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSgeomSPD.cxx
Removing warnings. From now on they are considered as errors
[u/mrichter/AliRoot.git] / ITS / AliITSgeomSPD.cxx
index d9a3850224763825acea4d03a058af2f1aa89c4f..189c6b4cd2082d4a6af3fba450e824d1edd4d871 100644 (file)
@@ -81,7 +81,7 @@ void AliITSgeomSPD::ReSetBins(Float_t dy,Int_t nx,Float_t *bx,
     return;
 }
 //______________________________________________________________________
-AliITSgeomSPD::AliITSgeomSPD(AliITSgeomSPD &source){
+AliITSgeomSPD::AliITSgeomSPD(AliITSgeomSPD &source) : TObject(source){
     // Copy constructor
 
     *this = source; // just use the = operator for now.
@@ -158,7 +158,7 @@ void AliITSgeomSPD::Print(ostream *os) const {
     Int_t fmt;
 #endif
 #else
-#if defined __ICC || defined __ECC
+#if defined __ICC || defined __ECC || defined __xlC__
     ios::fmtflags fmt;
 #else
     Int_t fmt;
@@ -343,6 +343,11 @@ AliITSgeomSPD425Short::AliITSgeomSPD425Short(Int_t npar,Float_t *par) :
     for(i=0;i<knbinz;i++) dz += binSizeZ[i];
     dz *= 0.5;
 
+    if(npar<3){
+       Error("AliITSgeomSPD425Short",
+              "npar=%d<3 array par must be at least [3] or larger",npar);
+       return;
+    } // end if
     SetShape("ActiveSPD","Active volume of SPD","SPD SI DET",
             par[0],par[1],par[2]);
     if(TMath::Abs(dx-kdx)>1.0E-4 || TMath::Abs(dz-kdz)>1.0E-4)