]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG/EMCAL/AliEmcalTrackingQATask.h
Fix check range for the 1024 adc removal
[u/mrichter/AliRoot.git] / PWG / EMCAL / AliEmcalTrackingQATask.h
index bca10203c3e85f893001ca5b94f2db4947de3b18..d5d4905dfbdc2464db9349ff401730cf9f9d4a17 100644 (file)
@@ -17,15 +17,16 @@ class AliEmcalTrackingQATask : public AliAnalysisTaskEmcal {
   void                   UserCreateOutputObjects();
   void                   SetGeneratorLevelName(const char* name);
   void                   SetDetectorLevelName(const char* name);
-  void                   SetSelectHIJING(Bool_t s)  {fSelectHIJING=s;}
+  void                   SetSelectHIJING(Bool_t s)        {fSelectHIJING       = s; }
+  void                   SetDoSigma1OverPt(Bool_t s)      {fDoSigma1OverPt     = s; }
+  void                   SetDoSigmaPtOverPtGen(Bool_t s)  {fDoSigmaPtOverPtGen = s; }
 
  protected:
   Bool_t                 FillHistograms()                               ;
   void                   ExecOnce()                                     ;
   void                   GenerateHistoBins()                            ;
-  void                   AllocateDetectorLevelTHnSparse()                    ;
-  void                   AllocateGeneratorLevelTHnSparse()                              ;
-  void                   AllocateFindableParticlesTHnSparse()           ;
+  void                   AllocateDetectorLevelTHnSparse()               ;
+  void                   AllocateGeneratorLevelTHnSparse()              ;
   void                   AllocateMatchedParticlesTHnSparse()            ;
   void                   FillDetectorLevelTHnSparse(Double_t cent, Double_t trackEta, Double_t trackPhi, Double_t trackPt, 
                                                     Double_t sigma1OverPt, Int_t mcGen, Byte_t trackType);
@@ -35,6 +36,8 @@ class AliEmcalTrackingQATask : public AliAnalysisTaskEmcal {
 
   // Task configuration
   Bool_t                fSelectHIJING          ; //  select HIJING particles
+  Bool_t                fDoSigma1OverPt        ; //  add sigma(1/pt), if false add sigma(pt)/pt instead
+  Bool_t                fDoSigmaPtOverPtGen    ; //  MC: if true do sigma((ptgen - ptdet) / ptgen), otherwise do sigma((ptgen - ptdet) / ptdet)
 
   // Service fields (non-streamed)
   AliParticleContainer* fGeneratorLevel        ; //! generator level container
@@ -47,9 +50,11 @@ class AliEmcalTrackingQATask : public AliAnalysisTaskEmcal {
   Double_t*             fPhiHistBins           ; //! phi bins
   Int_t                 fNCentHistBins         ; //! number of cent bins
   Double_t*             fCentHistBins          ; //! cent bins
+  Int_t                 fNPtRelDiffHistBins    ; //! number of pt relative difference bins
+  Double_t*             fPtRelDiffHistBins     ; //! pt relative difference bins
   Int_t                 fNPtResHistBins        ; //! number of pt res bins
-  Double_t*             fPtResHistBins         ; //! 1/pt res bins
-  Double_t*             f1OverPtResHistBins    ; //! pt res bins
+  Double_t*             fPtResHistBins         ; //! pt res bins
+  Double_t*             f1OverPtResHistBins    ; //! 1/pt res bins
   Int_t                 fN1OverPtResHistBins   ; //! number of 1/pt res bins
   Int_t                 fNIntegerHistBins      ; //! number of integer bins
   Double_t*             fIntegerHistBins       ; //! integer bins
@@ -64,6 +69,6 @@ class AliEmcalTrackingQATask : public AliAnalysisTaskEmcal {
   AliEmcalTrackingQATask(const AliEmcalTrackingQATask&);            // not implemented
   AliEmcalTrackingQATask &operator=(const AliEmcalTrackingQATask&); // not implemented
 
-  ClassDef(AliEmcalTrackingQATask, 1) // Track QA task (efficiency and pt resolution)
+  ClassDef(AliEmcalTrackingQATask, 3) // Track QA task (efficiency and pt resolution)
 };
 #endif