]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGGA/EMCALTasks/AliAnalysisTaskSAJF.h
consistent filename
[u/mrichter/AliRoot.git] / PWGGA / EMCALTasks / AliAnalysisTaskSAJF.h
CommitLineData
00514d01 1#ifndef ALIANALYSISTASKSAJF_H
2#define ALIANALYSISTASKSAJF_H
25283b37 3
00514d01 4// $Id$
25283b37 5
6class TClonesArray;
7class TString;
25283b37 8class AliVTrack;
9class AliVCluster;
10class TList;
11class TH1F;
12class TH2F;
13class AliEmcalJet;
14
15#include "AliAnalysisTaskSE.h"
16
00514d01 17class AliAnalysisTaskSAJF : public AliAnalysisTaskSE {
25283b37 18 public:
91f4b7c5 19
20 enum SAJFAnaType {
21 kFullAcceptance = 0, // Full acceptance
22 kEMCAL = 1, // EMCal acceptance only
23 kEMCALFiducial = 2 // EMCal fiduacial region only
24 };
25
00514d01 26 AliAnalysisTaskSAJF();
27 AliAnalysisTaskSAJF(const char *name);
28 virtual ~AliAnalysisTaskSAJF();
25283b37 29
30 void UserCreateOutputObjects();
31 void UserExec(Option_t *option);
32 void Terminate(Option_t *option);
33
34 void SetClusName(const char *n) { fCaloName = n ; }
35 void SetJetsName(const char *n) { fJetsName = n ; }
36 void SetTracksName(const char *n) { fTracksName = n ; }
e82e282c 37 void SetTrgClusName(const char *n) { fTrgClusName = n ; }
91f4b7c5 38 void SetAnaType(SAJFAnaType type) { fAnaType = type ; }
25283b37 39
40 protected:
41
42 AliVTrack *GetTrack(const Int_t i) const;
43 Int_t GetNumberOfTracks() const;
44 AliVCluster *GetCaloCluster(const Int_t i) const;
45 Int_t GetNumberOfCaloClusters() const;
46 AliEmcalJet *GetJet(const Int_t i) const;
47 Int_t GetNumberOfJets() const;
e82e282c 48 AliVCluster *GetTrgCluster(const Int_t i) const;
49 Int_t GetNumberOfTrgClusters() const;
25283b37 50 void FillHistograms() ;
51 void RetrieveEventObjects() ;
f0a0fd33 52 Bool_t AcceptTrack(AliVTrack* /*track*/) ;
91f4b7c5 53 Bool_t AcceptJet(AliEmcalJet* jet) ;
25283b37 54
91f4b7c5 55 SAJFAnaType fAnaType; // analysis type
25283b37 56 TList *fOutput; // Output list
25283b37 57 TString fTracksName; // name of track collection
58 TString fCaloName; // name of calo cluster collection
59 TString fJetsName; // name of jet collection
e82e282c 60 TString fTrgClusName; // name of trg clus name
25283b37 61 TClonesArray *fTracks; //!Tracks
62 TClonesArray *fCaloClusters; //!Clusters
63 TClonesArray *fJets; //!Jets
e82e282c 64 TClonesArray *fTrgClusters; //!Trg Clusters
f0a0fd33 65 AliCentrality *fCent; // Event centrality
66 TH1F *fHistCentrality; // Event centrality distribution
91f4b7c5 67 TH2F *fHistJetPhiEta; // Phi-Eta distribution of jets
f0a0fd33 68 TH1F *fHistJetsE[4]; // Jet energy spectrum
69 TH1F *fHistJetsNE[4]; // Jet neutral energy spectrum
70 TH1F *fHistJetsNEF[4]; // Jet neutral energy fraction
71 TH1F *fHistJetsZ[4]; // Constituent Pt over Jet E ratio
72 TH1F *fHistLeadingJetE[4]; // Leading jet energy spectrum
73 TH1F *fHistTracksPtLJ[4]; // Pt spectrum of tracks
74 TH1F *fHistClusELJ[4]; // Energy spectrum of clusters
75 TH1F *fHistTracksPtBkg[4]; // Pt spectrum of tracks
76 TH1F *fHistClusEBkg[4]; // Energy spectrum of clusters
25283b37 77 Int_t Ptbins; // No. of pt bins
78 Float_t Ptlow; // Min pt
79 Float_t Ptup; // Max pt
80 Int_t Ebins; // No. of e bins
81 Float_t Elow; // Min e
82 Float_t Eup; // Max e
83
84 private:
00514d01 85 AliAnalysisTaskSAJF(const AliAnalysisTaskSAJF&); // not implemented
86 AliAnalysisTaskSAJF &operator=(const AliAnalysisTaskSAJF&); // not implemented
25283b37 87
00514d01 88 ClassDef(AliAnalysisTaskSAJF, 1) // Isolated photons task
25283b37 89};
90#endif