peak finder code from Per Thomas/Yale
[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;
25class TH2F;
26class TH3F;
27class TProfile;
28
29
30
31class AliAnalysisTaskJetServices : public AliAnalysisTaskSE
32{
33 public:
34 AliAnalysisTaskJetServices();
35 AliAnalysisTaskJetServices(const char* name);
36 virtual ~AliAnalysisTaskJetServices() {;}
37 // Implementation of interface methods
38 virtual void UserCreateOutputObjects();
39 virtual void Init();
40 virtual void LocalInit() { Init(); }
41 virtual void UserExec(Option_t *option);
42 virtual void Terminate(Option_t *option);
43 virtual void SetZVertexCut(Float_t f){fZVtxCut = f;}
44 virtual Bool_t Notify();
45
46 virtual void SetAODInput(Bool_t b){fUseAODInput = b;}
b5a3f310 47 virtual void SetRunRange(Float_t fLo,Float_t fUp){fRunRange[0] = fLo;fRunRange[1] = fUp;}
fe669ac6 48 virtual void SetRealData(Bool_t b){fRealData = b;}
49
216601f0 50 enum { kAllTriggered = 0,kTriggeredSPDVertex,kTriggeredVertexIn,kSelectedALICE,kSelectedALICEVertexIn,kSelected,kConstraints};
bf7b8731 51
52 private:
53
54 AliAnalysisTaskJetServices(const AliAnalysisTaskJetServices&);
55 AliAnalysisTaskJetServices& operator=(const AliAnalysisTaskJetServices&);
56
57 Bool_t fUseAODInput; // take jet from input AOD not from ouptu AOD
58 Float_t fAvgTrials; // Average number of trials
b5a3f310 59 Float_t fZVtxCut; // Average number of trials
60 Float_t fRunRange[2]; // only important for real data for
fe669ac6 61 Bool_t fRealData; // true for real data to allow correct trigger slection
bf7b8731 62 TProfile* fh1Xsec; // pythia cross section and trials
63 TH1F* fh1Trials; // trials are added
64 TH1F* fh1PtHard; // Pt har of the event...
65 TH1F* fh1PtHardTrials; // Number of trials
66 TH2F* fh2TriggerCount; // number of fire triggers in each case
67 TH2F* fh2ESDTriggerCount; // number of fire triggers in each case
68 TH2F* fh2TriggerVtx; // vtx. position vs. trigger decision
69 TH2F* fh2ESDTriggerVtx; // vtx. position vs. trigger decision
b5a3f310 70 TH2F* fh2ESDTriggerRun; // fired triggers vs. run number
71 TH2F* fh2VtxXY; // XY position of VTX were available
bf7b8731 72 TList *fHistList; // Output list
73
216601f0 74 ClassDef(AliAnalysisTaskJetServices,3)
bf7b8731 75};
76
77#endif