Macros for running Et analysis
[u/mrichter/AliRoot.git] / PWG4 / JetTasks / AliAnalysisTaskJetServices.h
CommitLineData
bf7b8731 1#ifndef ALIANALYSISTASKJETSERVICES_H
2#define ALIANALYSISTASKJETSERVICES_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7// **************************************
8// Task used for the correction of determiantion of reconstructed jet spectra
9// Compares input (gen) and output (rec) jets
10// *******************************************
11
12#include "AliAnalysisTaskSE.h"
13#include "THnSparse.h" // cannot forward declare ThnSparseF
14
15////////////////
16class AliJetHeader;
17class AliESDEvent;
18class AliAODEvent;
19class AliAODJet;
20class AliGenPythiaEventHeader;
21class AliCFManager;
22
23class TList;
24class TChain;
c0997643 25class TH1F;
bf7b8731 26class TH2F;
27class TH3F;
28class TProfile;
29
30
31
32class AliAnalysisTaskJetServices : public AliAnalysisTaskSE
33{
34 public:
35 AliAnalysisTaskJetServices();
36 AliAnalysisTaskJetServices(const char* name);
37 virtual ~AliAnalysisTaskJetServices() {;}
38 // Implementation of interface methods
39 virtual void UserCreateOutputObjects();
40 virtual void Init();
41 virtual void LocalInit() { Init(); }
42 virtual void UserExec(Option_t *option);
43 virtual void Terminate(Option_t *option);
c0997643 44 virtual void SetZVertexCut(Float_t f){fVtxZCut = f;}
d49d814a 45 virtual void SetPtMinCosmic(Float_t ptMin) {fPtMinCosmic = ptMin;}
46 virtual void SetRMinCosmic(Float_t rMin) {fRIsolMinCosmic = rMin;}
47 virtual void SetMaxCosmicAngle(Float_t angle) {fMaxCosmicAngle = angle;}
bf7b8731 48 virtual Bool_t Notify();
49
50 virtual void SetAODInput(Bool_t b){fUseAODInput = b;}
b5a3f310 51 virtual void SetRunRange(Float_t fLo,Float_t fUp){fRunRange[0] = fLo;fRunRange[1] = fUp;}
fe669ac6 52 virtual void SetRealData(Bool_t b){fRealData = b;}
cc0649e4 53 virtual void SetUsePhysicsSelection(Bool_t b){fUsePhysicsSelection = b;}
c0997643 54 Bool_t IsEventSelectedESD(AliESDEvent* esd);
f2dd0695 55 Bool_t IsEventPileUpESD(AliESDEvent* esd);
56 Bool_t IsEventCosmicESD(AliESDEvent* esd);
c0997643 57 Bool_t IsEventSelectedAOD(AliAODEvent* aod);
e0c120d9 58 enum { kAllTriggered = 0,kTriggeredVertex,kTriggeredVertexIn,kSelectedALICE,kSelectedALICEVertexValid,kSelectedALICEVertexIn,kSelected,kConstraints};
bf7b8731 59
f2dd0695 60
61
bf7b8731 62 private:
63
64 AliAnalysisTaskJetServices(const AliAnalysisTaskJetServices&);
65 AliAnalysisTaskJetServices& operator=(const AliAnalysisTaskJetServices&);
66
67 Bool_t fUseAODInput; // take jet from input AOD not from ouptu AOD
cc0649e4 68 Bool_t fUsePhysicsSelection;// decide wether we take into account physicsselction task
69 Bool_t fRealData; // true for real data to allow correct trigger slection
d49d814a 70 UInt_t fSelectionInfoESD; // slection info bit mask
bf7b8731 71 Float_t fAvgTrials; // Average number of trials
d49d814a 72 Float_t fVtxXMean; // mean x for cuts
73 Float_t fVtxYMean; // mean y for cuts
74 Float_t fVtxZMean; // mean z for cuts
75 Float_t fVtxRCut; // vtx cut in R
76 Float_t fVtxZCut; // vtzx cut in Z
77 Float_t fPtMinCosmic; // Minimum pT to be considered as cosmic candidate
78 Float_t fRIsolMinCosmic; // Minimum R = sqrt{deltaPhi^2 + deltaEta^2} to be considered as cosmic candidate
79 Float_t fMaxCosmicAngle; // Max deviation from pi (angle between two tracks) in case of cosmic candidate
b5a3f310 80 Float_t fRunRange[2]; // only important for real data for
bf7b8731 81 TProfile* fh1Xsec; // pythia cross section and trials
82 TH1F* fh1Trials; // trials are added
83 TH1F* fh1PtHard; // Pt har of the event...
84 TH1F* fh1PtHardTrials; // Number of trials
f2dd0695 85 TH1F* fh1SelectionInfoESD; // Masks that satisfy fSelectionInfo
bf7b8731 86 TH2F* fh2TriggerCount; // number of fire triggers in each case
87 TH2F* fh2ESDTriggerCount; // number of fire triggers in each case
88 TH2F* fh2TriggerVtx; // vtx. position vs. trigger decision
d49d814a 89 TH2F* fh2ESDTriggerVtx; // vtx. position vs. trigger decision
90 TH2F* fh2ESDTriggerRun; // fired triggers vs. run number
91 TH2F* fh2VtxXY; // XY position of VTX were available
92 TH1F* fh1NCosmicsPerEvent; // Number of coscmic candidates found in event
bf7b8731 93 TList *fHistList; // Output list
94
e0c120d9 95 ClassDef(AliAnalysisTaskJetServices,6)
bf7b8731 96};
97
98#endif