correct casting int to double warnings in last trigger update
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 Sep 2010 16:37:09 +0000 (16:37 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 6 Sep 2010 16:37:09 +0000 (16:37 +0000)
EMCAL/AliEMCALTriggerElectronics.cxx
EMCAL/AliEMCALTriggerPatch.h

index 7cc53fe..cb175b3 100644 (file)
@@ -151,9 +151,9 @@ void AliEMCALTriggerElectronics::Digits2Trigger(TClonesArray* digits, const Int_
                {
                        iL0 += iTRU->L0();
                        
-                       Int_t sizeX = (iTRU->PatchSize())->X() * (iTRU->SubRegionSize())->X();
+                       Int_t sizeX = (Int_t) ((iTRU->PatchSize())->X() * (iTRU->SubRegionSize())->X());
                        
-                       Int_t sizeY = (iTRU->PatchSize())->Y() * (iTRU->SubRegionSize())->Y();
+                       Int_t sizeY = (Int_t) ((iTRU->PatchSize())->Y() * (iTRU->SubRegionSize())->Y());
                        
                        // transform local to global 
                        TIter Next(&iTRU->Patches());
index e84742f..05c6c1d 100644 (file)
@@ -31,7 +31,7 @@ public:
        void      SetPeak(Int_t x, Int_t y, Int_t sizeX, Int_t sizeY);
 
        void      Position(TVector2& pos       ) const {pos = *fPosition;}
-       void      Position(Int_t& px, Int_t& py) const {px = fPosition->X(); py = fPosition->Y();}
+       void      Position(Int_t& px, Int_t& py) const {px = (Int_t)fPosition->X(); py = (Int_t)fPosition->Y();}
        TVector2* Position(                    ) const {return fPosition;}
        Int_t     Sum()   const {return fSum;} // in ADC counts
        Int_t     Time()  const {return fTime;}