]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/JetTasks/AliPWG4HighPtSpectra.h
Adding some features for DQM shifter histos
[u/mrichter/AliRoot.git] / PWG4 / JetTasks / AliPWG4HighPtSpectra.h
CommitLineData
fdceab34 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
26class TH1I;
b5cc0c6d 27class TH1F;
fdceab34 28class TH1D;
29class TFile ;
67ebd013 30//class AliCFManager;
fdceab34 31class AliESDtrackCuts;
32class AliESDEvent;
33
34class AliPWG4HighPtSpectra : public AliAnalysisTask {
b5cc0c6d 35 public:
fdceab34 36
37 enum {
67ebd013 38 kStepReconstructed = 0,
fdceab34 39 kStepReconstructedTPCOnly = 1,
67ebd013 40 kStepSecondaries = 2,
41 kStepMCtrackable = 3,
42 kStepReconstructedMC = 4
fdceab34 43 };
44
45 AliPWG4HighPtSpectra();
46 AliPWG4HighPtSpectra(const Char_t* name);
67ebd013 47 // AliPWG4HighPtSpectra& operator= (const AliPWG4HighPtSpectra& c);
48 // AliPWG4HighPtSpectra(const AliPWG4HighPtSpectra& c);
49 ~AliPWG4HighPtSpectra() {;};
fdceab34 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
67ebd013 58 void SetCFManagerPos(const AliCFManager* io1) {fCFManagerPos = io1;} // global correction manager
59 const AliCFManager * GetCFManagerPos() const {return fCFManagerPos;} // get corr manager
60 void SetCFManagerNeg(const AliCFManager* io2) {fCFManagerNeg = io2;} // global correction manager
61 const AliCFManager * GetCFManagerNeg() const {return fCFManagerNeg;} // get corr manager
62
fdceab34 63 //AliESDtrackCuts setters
64 void SetCuts(AliESDtrackCuts* trackCuts) {fTrackCuts = trackCuts;}
b5cc0c6d 65 //Select the trigger
66 void SelectTrigger(Int_t trig) { fTrigger = trig; }
fdceab34 67
68 // Data types
69 Bool_t IsReadAODData() const {return fReadAODData;}
b5cc0c6d 70 void SetReadAODData(Bool_t flag=kTRUE) {fReadAODData=flag;}
71
fdceab34 72 protected:
67ebd013 73 Bool_t fReadAODData ; // flag for AOD/ESD input files
74 const AliCFManager *fCFManagerPos ; // pointer to the CF manager for positive charged particles
75 const AliCFManager *fCFManagerNeg ; // pointer to the CF manager for negative charged particles
76
b5cc0c6d 77 AliESDEvent *fESD; //! ESD object
78 //AliESDtrackCuts options. Must be setted in AddTaskPWG4HighPtQAMC.C. They correspond with different steps in container.
79 AliESDtrackCuts *fTrackCuts; // trackCuts applied
80 Int_t fTrigger; //Trigger flag as defined in AliAnalysisHelperJetTasks.h
fdceab34 81
82 private:
67ebd013 83 AliPWG4HighPtSpectra(const AliPWG4HighPtSpectra&);
84 AliPWG4HighPtSpectra& operator=(const AliPWG4HighPtSpectra&);
85
fdceab34 86
87 // Histograms
88 //Number of events
67ebd013 89 TList *fHistList; //! List of output histograms
b5cc0c6d 90 TH1F *fNEventAll; //! Event counter
91 TH1F *fNEventSel; //! Event counter: Selected events for analysis
92
fdceab34 93 ClassDef(AliPWG4HighPtSpectra,1);
94};
95
96#endif