- enable to switch off part of histograms
authorfbock <friederike.bock@cern.ch>
Fri, 15 Aug 2014 13:26:10 +0000 (15:26 +0200)
committerfbock <friederike.bock@cern.ch>
Fri, 15 Aug 2014 13:26:10 +0000 (15:26 +0200)
PWGGA/GammaConv/AliAnalysisTaskNeutralMesonToPiPlPiMiPiZero.cxx
PWGGA/GammaConv/AliPrimaryPionCuts.cxx

index a317a8b..b73b802 100644 (file)
@@ -505,10 +505,10 @@ void AliAnalysisTaskNeutralMesonToPiPlPiMiPiZero::UserCreateOutputObjects()
                fHistoTrueMotherPiPlPiMiPiZeroInvMassPt = new TH2F*[fnCuts];
                fHistoTrueMotherGammaGammaInvMassPt = new TH2F*[fnCuts];
 
-               if (fDoMesonQA){
+//             if (fDoMesonQA){
                        fHistoTruePionPionInvMassPt =                   new TH2F*[fnCuts];
                        fHistoTruePionPionFromNeutralMesonInvMassPt =   new TH2F*[fnCuts];
-               }
+//             }
                
                for(Int_t iCut = 0; iCut<fnCuts;iCut++){
                        TString cutstringEvent          = ((AliConvEventCuts*)fEventCutArray->At(iCut))->GetCutNumber();
@@ -585,12 +585,12 @@ void AliAnalysisTaskNeutralMesonToPiPlPiMiPiZero::UserCreateOutputObjects()
                        fHistoTrueMotherGammaGammaInvMassPt[iCut]->Sumw2();
                        fTrueList[iCut]->Add(fHistoTrueMotherGammaGammaInvMassPt[iCut]);
                        
-                       if (fDoMesonQA){
+//                     if (fDoMesonQA){
                                fHistoTruePionPionInvMassPt[iCut] = new TH2F("ESD_TruePiPlusPiNeg_InvMassPt","ESD_TruePiPlusPiNeg_InvMassPt",2000,0.,2.,200,0.,20.);
                                fTrueList[iCut]->Add(fHistoTruePionPionInvMassPt[iCut]);
                                fHistoTruePionPionFromNeutralMesonInvMassPt[iCut] = new TH2F("ESD_TruePiPlusPiNegFromNeutralMeson_InvMassPt","ESD_TruePiPlusPiNegFromNeutralMeson_InvMassPt",2000,0.,2.,200,0.,20.);
                                fTrueList[iCut]->Add(fHistoTruePionPionFromNeutralMesonInvMassPt[iCut]);
-                       }
+//                     }
                }
        }
 
@@ -1526,17 +1526,17 @@ void AliAnalysisTaskNeutralMesonToPiPlPiMiPiZero::ProcessTrueMesonCandidates(Ali
 
        Bool_t isPiPiDecay = kFALSE;
        
-       if (fDoMesonQA){
+//     if (fDoMesonQA){
                TParticle * negativeMC = (TParticle*)TrueVirtualParticleCandidate->GetNegativeMCDaughter(MCStack);
                TParticle * positiveMC = (TParticle*)TrueVirtualParticleCandidate->GetPositiveMCDaughter(MCStack);
                if(TMath::Abs(negativeMC->GetPdgCode())==211 && TMath::Abs(positiveMC->GetPdgCode())==211){  // Pions ...
                        fHistoTruePionPionInvMassPt[fiCut]->Fill(TrueVirtualParticleCandidate->GetMass(),TrueVirtualParticleCandidate->Pt());
                }
-       }
+//     }
        
        if(virtualParticleMCLabel != -1){ // if virtualParticleMCLabel==-1 particles don't have same mother 
-               TParticle * negativeMC = (TParticle*)TrueVirtualParticleCandidate->GetNegativeMCDaughter(MCStack);
-               TParticle * positiveMC = (TParticle*)TrueVirtualParticleCandidate->GetPositiveMCDaughter(MCStack);
+//             TParticle * negativeMC = (TParticle*)TrueVirtualParticleCandidate->GetNegativeMCDaughter(MCStack);
+//             TParticle * positiveMC = (TParticle*)TrueVirtualParticleCandidate->GetPositiveMCDaughter(MCStack);
 //                     TParticle * virtualParticleMotherMC = (TParticle*)MCStack->Particle(virtualParticleMCLabel);
 //                     cout << "pdg code same mother - " << virtualParticleMotherMC->GetPdgCode() << endl;
                
index 64bbed8..fe29afd 100644 (file)
@@ -108,7 +108,7 @@ AliPrimaryPionCuts::AliPrimaryPionCuts(const char *name,const char *title) : Ali
 
        // Using standard function for setting Cuts
        Bool_t selectPrimaries=kFALSE;
-       fEsdTrackCuts = AliESDtrackCuts::GetStandardITSTPCTrackCuts2010(selectPrimaries);
+       if (fEsdTrackCuts==NULL)fEsdTrackCuts = AliESDtrackCuts::GetStandardITSTPCTrackCuts2010(selectPrimaries);
 }
 
 //________________________________________________________________________