New histrogram of generated D mesons in a wider y region (Christian Mohler)
authorfprino <prino@to.infn.it>
Fri, 1 Aug 2014 09:35:40 +0000 (11:35 +0200)
committerfprino <prino@to.infn.it>
Fri, 1 Aug 2014 09:35:40 +0000 (11:35 +0200)
PWGHF/vertexingHF/AliAnalysisTaskCombinHF.cxx
PWGHF/vertexingHF/AliAnalysisTaskCombinHF.h

index e556b88..c1ba000 100644 (file)
@@ -54,6 +54,7 @@ AliAnalysisTaskCombinHF::AliAnalysisTaskCombinHF():
   fHistCheckDecChan(0x0),
   fHistCheckDecChanAcc(0x0),
   fPtVsYGen(0x0),
+  fPtVsYGenLargeAcc(0x0),
   fPtVsYGenLimAcc(0x0),
   fPtVsYGenAcc(0x0),
   fPtVsYReco(0x0),
@@ -112,6 +113,7 @@ AliAnalysisTaskCombinHF::AliAnalysisTaskCombinHF(Int_t meson, AliRDHFCuts* analy
   fHistCheckDecChan(0x0),
   fHistCheckDecChanAcc(0x0),
   fPtVsYGen(0x0),
+  fPtVsYGenLargeAcc(0x0),
   fPtVsYGenLimAcc(0x0),
   fPtVsYGenAcc(0x0),
   fPtVsYReco(0x0),
@@ -176,6 +178,7 @@ AliAnalysisTaskCombinHF::~AliAnalysisTaskCombinHF()
   delete fHistCheckDecChan;
   delete fHistCheckDecChanAcc;
   delete fPtVsYGen;
+  delete fPtVsYGenLargeAcc;
   delete fPtVsYGenLimAcc;
   delete fPtVsYGenAcc;
   delete fPtVsYReco;
@@ -266,6 +269,11 @@ void AliAnalysisTaskCombinHF::UserCreateOutputObjects()
     fPtVsYGen->SetMinimum(0);
     fOutput->Add(fPtVsYGen);
     
+    fPtVsYGenLargeAcc= new TH2F("hPtVsYGenLargeAcc","",nPtBins,0.,fMaxPt,20,-1.,1.);
+    fPtVsYGenLargeAcc->Sumw2();
+    fPtVsYGenLargeAcc->SetMinimum(0);
+    fOutput->Add(fPtVsYGenLargeAcc);
+    
     fPtVsYGenLimAcc= new TH2F("hPtVsYGenLimAcc","",nPtBins,0.,fMaxPt,20,-1.,1.);
     fPtVsYGenLimAcc->Sumw2();
     fPtVsYGenLimAcc->SetMinimum(0);
@@ -600,6 +608,7 @@ void AliAnalysisTaskCombinHF::FillGenHistos(TClonesArray* arrayMC){
          if(TMath::Abs(ygen)<0.5) fPtVsYGenLimAcc->Fill(ptgen,ygen);
          if(isInAcc) fPtVsYGenAcc->Fill(ptgen,ygen);
        }
+        if(TMath::Abs(ygen)<0.9) fPtVsYGenLargeAcc->Fill(ptgen,ygen);
       }
     }
   }
index 121b25b..e9b0d06 100644 (file)
@@ -108,6 +108,7 @@ private:
   TH1F *fHistCheckDecChan;    //!hist. of decay channel of D meson
   TH1F *fHistCheckDecChanAcc; //!hist. of decay channel of D meson in acc.
   TH2F *fPtVsYGen;        //! hist. of Y vs. Pt generated (all D)
+  TH2F *fPtVsYGenLargeAcc; //! hist. of Y vs. Pt generated (|y|<0.9)
   TH2F *fPtVsYGenLimAcc;  //! hist. of Y vs. Pt generated (|y|<0.5)
   TH2F *fPtVsYGenAcc;     //! hist. of Y vs. Pt generated (D in acc)
   TH2F *fPtVsYReco;       //! hist. of Y vs. Pt generated (Reco D)
@@ -158,7 +159,7 @@ private:
   Double_t fBayesThresKaon;  // threshold for kaon identification via Bayesian PID
   Double_t fBayesThresPion;  // threshold for pion identification via Bayesian PID
   
-  ClassDef(AliAnalysisTaskCombinHF,3); // D+ task from AOD tracks
+  ClassDef(AliAnalysisTaskCombinHF,4); // D0D+ task from AOD tracks
 };
 
 #endif