]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGGA/EMCALJetTasks/AliHadCorrTask.h
name of task
[u/mrichter/AliRoot.git] / PWGGA / EMCALJetTasks / AliHadCorrTask.h
index 309425b976f48df8b734be9b26b42437c97a1f77..bbd5ec29486e647074fff3181201db69a5c0ff20 100644 (file)
@@ -16,43 +16,35 @@ class AliHadCorrTask : public AliAnalysisTaskEmcal {
 
  public:
   AliHadCorrTask();
-  AliHadCorrTask(const char *name); 
-  AliHadCorrTask(const char *name, Bool_t histo); 
+  AliHadCorrTask(const char *name, Bool_t histo=kFALSE); 
   virtual ~AliHadCorrTask();
 
-  void         UserCreateOutputObjects();
-  void         Terminate(Option_t *);
+  void                   UserCreateOutputObjects();
 
-  void         SetOutClusName(const char *n)           { fOutCaloName    = n    ; }
-  void         SetEtaMatch(Double_t eta)               { fEtaMatch       = eta  ; }
-  void         SetPhiMatch(Double_t phi)               { fPhiMatch       = phi  ; }
-  void         SetTrackClus(Int_t c)                   { fDoTrackClus    = c    ; }
-  void         SetHadCorr(Double_t c)                  { fHadCorr        = c    ; }
-  void         SetEexcl(Double_t Emin)                 { fEexclCell      = Emin ; }
+  void                   SetEexcl(Double_t Emin)                 { fEexclCell      = Emin ; }
+  void                   SetEtaMatch(Double_t eta)               { fEtaMatch       = eta  ; }
+  void                   SetHadCorr(Double_t c)                  { fHadCorr        = c    ; }
+  void                   SetOutClusName(const char *n)           { fOutCaloName    = n    ; }
+  void                   SetPhiMatch(Double_t phi)               { fPhiMatch       = phi  ; }
+  void                   SetTrackClus(Int_t c)                   { fDoTrackClus    = c    ; }
 
  protected:
+  Double_t               ApplyHadCorrOneTrack(AliEmcalParticle *emccluster, Double_t hadCorr);
+  Double_t               ApplyHadCorrAllTracks(AliEmcalParticle *emccluster, Double_t hadCorr);
+  void                   DoMatchedTracksLoop(AliEmcalParticle *emccluster, Double_t &totalTrkP, Int_t &Nmatches);
+  Double_t               GetEtaSigma(Int_t pbin)                   const;
+  Int_t                  GetMomBin(Double_t pt)                    const;
+  Double_t               GetPhiMean(Int_t pbin, Int_t centbin)     const;
+  Double_t               GetPhiSigma(Int_t pbin, Int_t centbin)    const;
+  virtual Bool_t         Run()                                          ;
 
-  virtual Bool_t       Run()                                          ;
-  virtual Bool_t       FillHistograms()                { return kTRUE ; }
-  Int_t                GetMomBin(Double_t pt)                    const;
-  Double_t             GetEtaSigma(Int_t pbin)                   const;
-  Double_t             GetPhiMean(Int_t pbin, Int_t centbin)     const;
-  Double_t             GetPhiSigma(Int_t pbin, Int_t centbin)    const;
-  void                 DoTrackClusLoop()                              ;
-  void                 DoMatchedTracksLoop(AliEmcalParticle *emccluster, Double_t &totalTrkP, Int_t &Nmatches);
-  Double_t             ApplyHadCorrOneTrack(AliEmcalParticle *emccluster, Double_t hadCorr)                   ;
-  Double_t             ApplyHadCorrAllTracks(AliEmcalParticle *emccluster, Double_t hadCorr)                  ;
-
-
-  TString                fOutCaloName;            // name of output clusters
-  Double_t               fPhiMatch;               // phi match value (pp=0.050)
-  Double_t               fEtaMatch;               // eta match value (pp=0.025)
-  Int_t                  fDoTrackClus;            // loop over tracks first
-  Double_t               fHadCorr;                // hadronic correction (fraction)
-  Double_t               fEexclCell;              // Energy/cell that we cannot subtract from the clusters
-
-  TClonesArray          *fOutClusters;            //!output cluster collection
-
+  TString                fOutCaloName;               // name of output clusters
+  Double_t               fPhiMatch;                  // phi match value (pp=0.050)
+  Double_t               fEtaMatch;                  // eta match value (pp=0.025)
+  Int_t                  fDoTrackClus;               // loop over tracks first
+  Double_t               fHadCorr;                   // hadronic correction (fraction)
+  Double_t               fEexclCell;                 // energy/cell that we cannot subtract from the clusters
+  TClonesArray          *fOutClusters;               //!output cluster collection
   TH2F                  *fHistMatchEtaPhi[8][9][2];  //!output histograms
   TH2F                  *fHistMatchEvsP[4];          //!output histograms
   TH2F                  *fHistNMatchEnergy[4];       //!output histograms
@@ -64,16 +56,14 @@ class AliHadCorrTask : public AliAnalysisTaskEmcal {
   TH1F                  *fHistEafter;                //!output histograms
   TH2F                  *fHistEoPCent;               //!output histograms
   TH2F                  *fHistNMatchCent;            //!output histograms
-  TH2F                  *fHistNMatchCent_trk;        //!output histograms
   TH1F                  *fHistEsubPch[8];            //!output histograms
   TH2F                  *fHistEsubPchRat[8];         //!output histograms
   TH1F                  *fHistCentrality;            //!output histograms
-  TH2F                  *fHistNoMatchEtaPhi;         //!output histograms
 
  private:
   AliHadCorrTask(const AliHadCorrTask&);            // not implemented
   AliHadCorrTask &operator=(const AliHadCorrTask&); // not implemented
 
-  ClassDef(AliHadCorrTask, 9) // Hadronic correction task
+  ClassDef(AliHadCorrTask, 10) // Hadronic correction task
 };
 #endif