]>
Commit | Line | Data |
---|---|---|
563113d0 | 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 : R. Vernet, Consorzio Cometa - Catania (it) | |
18 | //----------------------------------------------------------------------- | |
19 | ||
20 | #ifndef ALICFSINGLETRACKTASK_H | |
21 | #define ALICFSINGLETRACKTASK_H | |
22 | ||
318a0e1f | 23 | #include "AliAnalysisTaskSE.h" |
563113d0 | 24 | |
25 | class TH1I; | |
26 | class TParticle ; | |
27 | class TFile ; | |
563113d0 | 28 | class AliStack ; |
29 | class AliCFManager; | |
563113d0 | 30 | class AliESDtrack; |
31 | ||
318a0e1f | 32 | class AliCFSingleTrackTask : public AliAnalysisTaskSE { |
563113d0 | 33 | public: |
34 | ||
35 | enum { | |
36 | kStepGenerated = 0, | |
37 | kStepReconstructible = 1, | |
38 | kStepReconstructed = 2, | |
39 | kStepSelected = 3 | |
40 | }; | |
41 | ||
42 | AliCFSingleTrackTask(); | |
43 | AliCFSingleTrackTask(const Char_t* name); | |
44 | AliCFSingleTrackTask& operator= (const AliCFSingleTrackTask& c); | |
45 | AliCFSingleTrackTask(const AliCFSingleTrackTask& c); | |
46 | virtual ~AliCFSingleTrackTask(); | |
47 | ||
48 | // ANALYSIS FRAMEWORK STUFF to loop on data and fill output objects | |
318a0e1f | 49 | void UserCreateOutputObjects(); |
50 | void UserExec(Option_t *option); | |
563113d0 | 51 | void Terminate(Option_t *); |
52 | ||
53 | // CORRECTION FRAMEWORK RELATED FUNCTIONS | |
54 | void SetCFManager(AliCFManager* io) {fCFManager = io;} // global correction manager | |
55 | AliCFManager * GetCFManager() {return fCFManager;} // get corr manager | |
318a0e1f | 56 | void SetQAList(TList* list) {fQAHistList = list;} |
563113d0 | 57 | |
318a0e1f | 58 | protected: |
563113d0 | 59 | AliCFManager *fCFManager ; // pointer to the CF manager |
60 | TList *fQAHistList ; // list of QA histograms | |
61 | ||
62 | // Histograms | |
63 | //Number of events | |
318a0e1f | 64 | TH1I *fHistEventsProcessed; // simple histo for monitoring the number of events processed |
563113d0 | 65 | |
66 | ClassDef(AliCFSingleTrackTask,1); | |
67 | }; | |
68 | ||
69 | #endif |