New book-keeping class
[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;}
47
48 enum { kAllTriggered = 0,kTriggeredSPDVertex,kTriggeredVertexIn,kSelected,kConstraints};
49
50 private:
51
52 AliAnalysisTaskJetServices(const AliAnalysisTaskJetServices&);
53 AliAnalysisTaskJetServices& operator=(const AliAnalysisTaskJetServices&);
54
55 Bool_t fUseAODInput; // take jet from input AOD not from ouptu AOD
56 Float_t fAvgTrials; // Average number of trials
57 Float_t fZVtxCut; // Average number of trials
58 TProfile* fh1Xsec; // pythia cross section and trials
59 TH1F* fh1Trials; // trials are added
60 TH1F* fh1PtHard; // Pt har of the event...
61 TH1F* fh1PtHardTrials; // Number of trials
62 TH2F* fh2TriggerCount; // number of fire triggers in each case
63 TH2F* fh2ESDTriggerCount; // number of fire triggers in each case
64 TH2F* fh2TriggerVtx; // vtx. position vs. trigger decision
65 TH2F* fh2ESDTriggerVtx; // vtx. position vs. trigger decision
66
67 TList *fHistList; // Output list
68
69 ClassDef(AliAnalysisTaskJetServices,1)
70};
71
72#endif