]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Warnings removed
authorcoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Mar 2009 19:09:30 +0000 (19:09 +0000)
committercoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Mar 2009 19:09:30 +0000 (19:09 +0000)
ZDC/AliZDC.cxx
ZDC/AliZDCReconstructor.cxx

index 1f5e779a8a3b3a8e8d9c5b27043a3ed0629efb26..255e2f66052d376b6b84f7195ed31d171c97c7ab 100644 (file)
@@ -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;
index 56e099224855516c71d30ac5598bf49b76298c5e..cf355630cec1e3e00b4d105924a2b2ec81ece0c0 100644 (file)
@@ -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<TMap*>(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);