]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG4/JetTasks/AliPWG4HighPtSpectra.h
Make tasks aware of AliPhysicsSlection, fixes to Three Jets Task to fill output in...
[u/mrichter/AliRoot.git] / PWG4 / JetTasks / AliPWG4HighPtSpectra.h
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 //-----------------------------------------------------------------------
17 // Author : Marta Verweij - UU
18 //-----------------------------------------------------------------------
19
20 #ifndef ALIPWG4HIGHPTSPECTRA_H
21 #define ALIPWG4HIGHPTSPECTRA_H
22
23 #include "AliAnalysisTask.h"
24 #include "AliCFManager.h"
25
26 class TH1I;
27 class TH1F;
28 class TH1D;
29 class TFile ;
30 class AliCFManager;
31 class AliESDtrackCuts;
32 class AliESDEvent;
33
34 class AliPWG4HighPtSpectra : public AliAnalysisTask {
35  public:
36
37   enum {
38     kStepReconstructed    = 0,
39     kStepReconstructedTPCOnly = 1,
40     kStepSecondaries      = 2,
41     kStepMCtrackable      = 3,
42     kStepReconstructedMC    = 4
43   };
44
45   AliPWG4HighPtSpectra();
46   AliPWG4HighPtSpectra(const Char_t* name);
47   AliPWG4HighPtSpectra& operator= (const AliPWG4HighPtSpectra& c);
48   AliPWG4HighPtSpectra(const AliPWG4HighPtSpectra& c);
49   virtual ~AliPWG4HighPtSpectra();
50
51   // ANALYSIS FRAMEWORK STUFF to loop on data and fill output objects
52   virtual void   ConnectInputData(Option_t *);
53   virtual void   CreateOutputObjects();
54   virtual void   Exec(Option_t *option);
55   virtual void   Terminate(Option_t *);
56
57   // CORRECTION FRAMEWORK RELATED FUNCTIONS
58   void     SetCFManager(const AliCFManager* io) {fCFManager = io;}   // global correction manager
59   const AliCFManager * GetCFManager() const {return fCFManager;}           // get corr manager
60
61   //AliESDtrackCuts setters
62   void SetCuts(AliESDtrackCuts* trackCuts) {fTrackCuts = trackCuts;}
63   //Select the trigger
64   void SelectTrigger(Int_t trig) { fTrigger = trig; } 
65
66   // Data types
67   Bool_t IsReadAODData()   const {return fReadAODData;}
68   void   SetReadAODData(Bool_t flag=kTRUE) {fReadAODData=flag;}
69   
70  protected:
71   Bool_t              fReadAODData ;    // flag for AOD/ESD input files
72   const AliCFManager  *fCFManager    ;  // pointer to the CF manager
73
74   AliESDEvent *fESD;              //! ESD object
75   //AliESDtrackCuts options. Must be setted in AddTaskPWG4HighPtQAMC.C. They correspond with different steps in container.
76   AliESDtrackCuts *fTrackCuts;    // trackCuts applied
77   Int_t fTrigger;                 //Trigger flag as defined in AliAnalysisHelperJetTasks.h 
78
79  private:
80
81   // Histograms
82   //Number of events
83   TList *fHistList;            // List of output histograms
84   //  TH1I  *fHistEventsProcessed; // simple histo for monitoring the number of events processed
85   TH1F *fNEventAll;            //! Event counter
86   TH1F *fNEventSel;            //! Event counter: Selected events for analysis
87
88   ClassDef(AliPWG4HighPtSpectra,1);
89 };
90
91 #endif