added some control histos, adapted the eta range and removed dependcies on generated...
[u/mrichter/AliRoot.git] / PWG4 / JetTasks / AliAnaESDSpectraQA.cxx
index 11813a2e3360905a4732f488671acdb6f74e9f0f..303738cb08987784d90acc477710086387914128 100644 (file)
@@ -53,6 +53,7 @@ AliAnaESDSpectraQA::AliAnaESDSpectraQA(): AliAnalysisTask("AliAnaESDSpectraQA",
 AliAnaESDSpectraQA::AliAnaESDSpectraQA(const char *name): 
   AliAnalysisTask(name, ""), 
   fESD(0),
+  fTrackCuts(new AliESDtrackCuts),
   fNEvent(0), // just to avoid warnings, inititialized in InitPointers too
   fPtAll(0),  //
   fPtSel(0),  // 
@@ -62,7 +63,7 @@ AliAnaESDSpectraQA::AliAnaESDSpectraQA(const char *name):
   // Output slot #0 writes into a TList
   DefineOutput(0, TList::Class());
   InitHistPointers();
-  fTrackCuts = new AliESDtrackCuts;
+  //fTrackCuts = new AliESDtrackCuts;
   fTrackCuts->SetAcceptKingDaughters(kFALSE);
   fTrackCuts->SetRequireTPCRefit(kTRUE);
   fTrackCuts->SetEtaRange(-1,1);
@@ -219,7 +220,9 @@ void AliAnaESDSpectraQA::Exec(Option_t *) {
       curTypeHists->PhiPtNPointTPC->Fill(phi,pt,track->GetTPCNcls());
       curTypeHists->PhiPtNPointITS->Fill(phi,pt,nPointITS);
       curTypeHists->PhiPtChisqC->Fill(phi,pt,chisqC);
-      curTypeHists->PhiPtChisqTPC->Fill(phi,pt,track->GetTPCchi2()/(track->GetTPCNclsF()-5));
+      if(track->GetTPCNclsF()>5){
+       curTypeHists->PhiPtChisqTPC->Fill(phi,pt,track->GetTPCchi2()/(track->GetTPCNclsF()-5));
+      }      
       curTypeHists->PhiPtDCAR->Fill(phi,pt,dca2D);
       curTypeHists->PhiPtDCAZ->Fill(phi,pt,dcaZ);
       curTypeHists->PhiPtSigmaToVertex->Fill(phi,pt,sigToVertex);