]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix warnings in AOD reader
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Sep 2009 14:47:55 +0000 (14:47 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Sep 2009 14:47:55 +0000 (14:47 +0000)
PWG2/FEMTOSCOPY/AliFemto/AliFemtoEventReaderAOD.cxx

index 2ca9b1df7f1443ae71244b31c95b32ecb19ab9c2..994332f68422a8f952607c48ea8bbe68b378e060 100644 (file)
@@ -226,7 +226,7 @@ void AliFemtoEventReaderAOD::CopyAODtoFemtoEvent(AliFemtoEvent *tEvent)
 
   // Attempt to access MC header
   AliAODMCHeader *mcH;
-  TClonesArray *mcP;
+  TClonesArray *mcP=0;
   if (fReadMC) {
     mcH = (AliAODMCHeader *) fEvent->FindListObject(AliAODMCHeader::StdBranchName());
     if (!mcH) {
@@ -241,7 +241,7 @@ void AliFemtoEventReaderAOD::CopyAODtoFemtoEvent(AliFemtoEvent *tEvent)
 
   tEvent->SetReactionPlaneAngle(fEvent->GetHeader()->GetQTheta(0)/2.0);
 
-  Int_t *motherids;
+  Int_t *motherids=0;
   if (mcP) {
     motherids = new Int_t[((AliAODMCParticle *) mcP->At(mcP->GetEntries()-1))->GetLabel()];
     for (int ip=0; ip<mcP->GetEntries(); ip++) motherids[ip] = 0;
@@ -295,7 +295,7 @@ void AliFemtoEventReaderAOD::CopyAODtoFemtoEvent(AliFemtoEvent *tEvent)
        
        if (mcP) {
          // Fill the hidden information with the simulated data
-         Int_t pLabel = aodtrack->GetLabel();
+         //      Int_t pLabel = aodtrack->GetLabel();
          AliAODMCParticle *tPart = GetParticleWithLabel(mcP, (TMath::Abs(aodtrack->GetLabel())));
 
          // Check the mother information
@@ -403,7 +403,7 @@ void AliFemtoEventReaderAOD::CopyAODtoFemtoEvent(AliFemtoEvent *tEvent)
        
        if (mcP) {
          // Fill the hidden information with the simulated data
-         Int_t pLabel = aodtrack->GetLabel();
+         //      Int_t pLabel = aodtrack->GetLabel();
          AliAODMCParticle *tPart = GetParticleWithLabel(mcP, (TMath::Abs(aodtrack->GetLabel())));
          
          AliFemtoModelGlobalHiddenInfo *tInfo = new AliFemtoModelGlobalHiddenInfo();