clean up warnings
[u/mrichter/AliRoot.git] / FMD / AliFMDReconstruction.cxx
index 73b8919ed58fad167b77baa9492e4b7f9e144046..e34b88758636082882cd0d6e0d06e717844d7cea 100644 (file)
@@ -112,7 +112,7 @@ void AliFMDReconstruction::Exec()
   Int_t ivol, iSector, iRing;
   Float_t rin[5]={4.2,15.4,4.2,15.4,4.2};
   Float_t rout[5]={17.4,28.4,17.4,28.4,17.4};
-  Float_t z[5]={62.8, 75.2, -83.4, -75.2, -340.};
+  Float_t z[5]={-62.8, -75.2, 83.4, 75.2, 340.};
   Int_t numberOfRings[5]={512,256,512,256,512};
   Int_t numberOfSectors[5]=  {20,40,20,40,20};
   Int_t numberOfEtaIntervals[5];
@@ -150,7 +150,7 @@ void AliFMDReconstruction::Exec()
   gDirectory = cwd;
  
        
-  if(fNevents == 0) fNevents=fRunLoader->TreeE()->GetEntries(); 
+  if(fNevents == 0) fNevents=Int_t (fRunLoader->TreeE()->GetEntries()); 
   cout<<" fNevents "<<fNevents<<endl;
    for(Int_t ievent=0;ievent<fNevents;ievent++)
     { 
@@ -239,7 +239,7 @@ void AliFMDReconstruction::Exec()
                etain = - TMath::Log( TMath::Tan(theta/2.));
                theta=TMath::ATan(rin[ivol]/TMath::Abs(realZ));
                etaout=- TMath::Log( TMath::Tan(theta/2.));
-               numberOfEtaIntervals[ivol]=(etaout-etain)*10-1;
+               numberOfEtaIntervals[ivol]=Int_t((etaout-etain)*10)-1;
                eta=etain;
                for (Int_t e1=0;e1<=numberOfEtaIntervals[ivol];e1++) 
                  {
@@ -274,7 +274,7 @@ void AliFMDReconstruction::Exec()
 
                    cout<<" zero "<<zeroPads++<<" pads "<<numberOfPads;
                    Double_t lambda=-TMath::Log(Double_t(zeroPads)/numberOfPads);
-                   Int_t fRecon=(lambda*numberOfPads+0.5);
+                   Int_t fRecon=Int_t (lambda*numberOfPads+0.5);
                    
                    Float_t zerosRatio= 
                      (Float_t)zeroPads/(Float_t)numberOfPads;