From: coppedis Date: Mon, 16 Mar 2009 19:09:30 +0000 (+0000) Subject: Warnings removed X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=d9ec113e983a76dd723be8fbd2bc89d9c3edfcfb Warnings removed --- diff --git a/ZDC/AliZDC.cxx b/ZDC/AliZDC.cxx index 1f5e779a8a3..255e2f66052 100644 --- a/ZDC/AliZDC.cxx +++ b/ZDC/AliZDC.cxx @@ -266,7 +266,7 @@ void AliZDC::Hits2SDigits() ResetHits(); // Tracks loop - Int_t sector[2]; Float_t trackTime; + Int_t sector[2]; Float_t trackTime = 0.; for(Int_t itrack = 0; itrack < ntracks; itrack++) { treeH->GetEntry(itrack); for(AliZDCHit* zdcHit = (AliZDCHit*)FirstHit(-1); zdcHit; diff --git a/ZDC/AliZDCReconstructor.cxx b/ZDC/AliZDCReconstructor.cxx index 56e09922485..cf355630cec 100644 --- a/ZDC/AliZDCReconstructor.cxx +++ b/ZDC/AliZDCReconstructor.cxx @@ -73,8 +73,8 @@ void AliZDCReconstructor::SetRecoMode() // Setting reconstruction mode // Initialization of the GRP entry - AliGRPObject* grpData; AliCDBEntry* entry = AliCDBManager::Instance()->Get("GRP/GRP/Data"); + AliGRPObject* grpData = 0x0; if(entry){ TMap* m = dynamic_cast(entry->GetObject()); // old GRP entry if(m){ @@ -422,7 +422,7 @@ void AliZDCReconstructor::ReconstructEventpp(TTree *clustersTree, Float_t* ZN1AD // --- Number of detected spectator nucleons // *** N.B. -> It works only in Pb-Pb!!!!!!!!!!!! // Variables calculated to comply with ESD structure - Int_t nDetSpecNLeft, nDetSpecPLeft, nDetSpecNRight, nDetSpecPRight; + Int_t nDetSpecNLeft=0, nDetSpecPLeft=0, nDetSpecNRight=0, nDetSpecPRight=0; if(fBeamEnergy!=0){ nDetSpecNLeft = (Int_t) (calibSumZN1[0]/fBeamEnergy); nDetSpecPLeft = (Int_t) (calibSumZP1[0]/fBeamEnergy); @@ -540,7 +540,7 @@ void AliZDCReconstructor::ReconstructEventPbPb(TTree *clustersTree, Float_t* ZN1 // --- Number of detected spectator nucleons // *** N.B. -> It works only in Pb-Pb - Int_t nDetSpecNLeft, nDetSpecPLeft, nDetSpecNRight, nDetSpecPRight; + Int_t nDetSpecNLeft=0, nDetSpecPLeft=0, nDetSpecNRight=0, nDetSpecPRight=0; if(fBeamEnergy!=0){ nDetSpecNLeft = (Int_t) (calibSumZN1[0]/fBeamEnergy); nDetSpecPLeft = (Int_t) (calibSumZP1[0]/fBeamEnergy);