Update track cuts and PID fit in HF QA (Chiara Bianchin)
authorfprino <prino@to.infn.it>
Tue, 15 Jul 2014 21:43:48 +0000 (23:43 +0200)
committerfprino <prino@to.infn.it>
Tue, 15 Jul 2014 21:43:48 +0000 (23:43 +0200)
PWGHF/vertexingHF/AliAnalysisTaskSEHFQA.cxx
PWGHF/vertexingHF/macros/DrawQAoutput.C

index dc1d1ed..5332673 100644 (file)
@@ -1851,12 +1851,15 @@ void AliAnalysisTaskSEHFQA::UserExec(Option_t */*option*/)
       if(!track->TestFilterMask(AliAODTrack::kTrkGlobalNoDCA)){ // BIT(4) standard cuts with very loose DCA
         selTrack=kFALSE;
       }
+      if(TMath::Abs(track->Eta())>0.9){
+        selTrack=kFALSE;
+      }
       Float_t nCrossedRowsTPC = track->GetTPCClusterInfo(2,1);
       Float_t  ratioCrossedRowsOverFindableClustersTPC = 1.0;
       if (track->GetTPCNclsF()>0) {
        ratioCrossedRowsOverFindableClustersTPC = nCrossedRowsTPC/track->GetTPCNclsF();
       }
-
+      
       if(selTrack){
        if(track->HasPointOnITSLayer(0) || track->HasPointOnITSLayer(1)){
          ((TH1F*)fOutputTrack->FindObject("hd0TracksTPCITSSPDany"))->Fill(d0z0[0]);
index e141b89..c9b08af 100644 (file)
@@ -19,6 +19,9 @@
 #include <TParameter.h>
 #include <AliCounterCollection.h>
 #include <AliRDHFCuts.h>
+
+#include "../ANALYSIS/macros/MakePIDqaReport.C"
+
 #endif
 
 /* $Id$ */ 
@@ -510,32 +513,7 @@ void DrawOutputPID(TString partname="D0", Int_t mode=0/*0=with pull, 1=with nsig
      
       //TCanvas *test=new TCanvas("test","test");
       if(mode==0){
-       //mean and pull, code from Jens Wiechula
-       TF1 fg("fg","gaus",-2.,2.); // fit range +- 2 sigma
-       TLine l;
-       TObjArray arr;
-
-       //h->Draw("colz");
-       fg.SetParameters(1,0,1);
-       h->FitSlicesY(&fg,0,-1,0,"NQR",&arr);
-
-       TH1 *hM=(TH1*)arr.At(1);
-       hM->SetMarkerStyle(20);
-       hM->SetMarkerSize(.5);
-       hM->DrawClone("sames");
-
-       TH1 *hS=(TH1*)arr.At(2);
-       hS->SetMarkerStyle(20);
-       hS->SetMarkerSize(.5);
-       hS->SetMarkerColor(kRed);
-       hS->SetLineColor(kRed);
-       hS->DrawClone("same");
-
-       l.SetLineColor(kBlack);
-       l.DrawLine(.2,0,20,0);
-       l.SetLineColor(kRed);
-       l.DrawLine(.2,1,20,1);
-       
+        AddFit(h);     
       }else{ //mode 1
 
        if(hname.Contains("TOFsigma")) {