Warning in fIsHeavyIon fixed
authorpgonzale <pedro.gonzalez.zamora@cern.ch>
Mon, 13 Oct 2014 15:49:18 +0000 (17:49 +0200)
committerpgonzale <pedro.gonzalez.zamora@cern.ch>
Mon, 13 Oct 2014 15:50:03 +0000 (17:50 +0200)
PWGGA/GammaConv/AliAnalysisTaskGammaConvDalitzV1.cxx
PWGGA/GammaConv/AliAnalysisTaskGammaConvDalitzV1.h

index a919b69..f11c928 100644 (file)
@@ -214,7 +214,7 @@ AliAnalysisTaskGammaConvDalitzV1::AliAnalysisTaskGammaConvDalitzV1():
        fNumberOfESDTrackskBoth(0),
        fNVirtualGammas(0),
        fMoveParticleAccordingToVertex(kFALSE),
-       fIsHeavyIon(kFALSE),
+       fIsHeavyIon(0),
        fDoMesonAnalysis(kTRUE),
        fDoChicAnalysis(kFALSE),
        fDoMesonQA(kFALSE),
@@ -383,7 +383,7 @@ AliAnalysisTaskGammaConvDalitzV1::AliAnalysisTaskGammaConvDalitzV1( const char*
        fNumberOfESDTrackskBoth(0),
        fNVirtualGammas(0),
        fMoveParticleAccordingToVertex(kFALSE),
-       fIsHeavyIon(kFALSE),
+       fIsHeavyIon(0),
        fDoMesonAnalysis(kTRUE),
        fDoChicAnalysis(kFALSE),
        fDoMesonQA(kFALSE),
@@ -617,7 +617,7 @@ void AliAnalysisTaskGammaConvDalitzV1::UserCreateOutputObjects()
                hNEvents[iCut]->GetXaxis()->SetBinLabel(9,"no V0AND");
                fESDList[iCut]->Add(hNEvents[iCut]);
 
-               if(fIsHeavyIon) hNGoodESDTracks[iCut] = new TH1I("GoodESDTracks","GoodESDTracks",3000,0,3000);
+               if(fIsHeavyIon == 1 || fIsHeavyIon == 2) hNGoodESDTracks[iCut] = new TH1I("GoodESDTracks","GoodESDTracks",3000,0,3000);
                else hNGoodESDTracks[iCut] = new TH1I("GoodESDTracks","GoodESDTracks",200,0,200);
                fESDList[iCut]->Add(hNGoodESDTracks[iCut]);
                
index fa45e9b..f6f8334 100644 (file)
@@ -41,11 +41,7 @@ class AliAnalysisTaskGammaConvDalitzV1: public AliAnalysisTaskSE
                void SetMoveParticleAccordingToVertex(Bool_t flag){fMoveParticleAccordingToVertex = flag;}
                        
                void SetIsHeavyIon(Int_t flag){
-                       if (flag == 1 || flag ==2 ){
-                               fIsHeavyIon = 1;    
-                       } else {
-                               fIsHeavyIon = 0;    
-                       }
+                       fIsHeavyIon = flag;
                }
                
                void SetIsMC(Bool_t isMC){fIsMC=isMC;}
@@ -243,7 +239,7 @@ class AliAnalysisTaskGammaConvDalitzV1: public AliAnalysisTaskSE
                Int_t                                                                   fNumberOfESDTrackskBoth;
                Int_t                                                                   fNVirtualGammas;
                Bool_t                                                                  fMoveParticleAccordingToVertex;
-               Bool_t                                                                  fIsHeavyIon;
+               Int_t                                                                   fIsHeavyIon;
                Bool_t                                                                  fDoMesonAnalysis;
                Bool_t                                                                  fDoChicAnalysis;
                Bool_t                                                                  fDoMesonQA;