]>
Commit | Line | Data |
---|---|---|
2fbc0b17 | 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 ALICFV0TASK_H | |
21 | #define ALICFV0TASK_H | |
22 | ||
318a0e1f | 23 | #include "AliAnalysisTaskSE.h" |
2fbc0b17 | 24 | |
25 | class TH1I; | |
26 | class TParticle ; | |
27 | class TFile ; | |
28 | class AliMCEventHandler; | |
2fbc0b17 | 29 | class AliCFManager; |
2fbc0b17 | 30 | class AliESDv0; |
318a0e1f | 31 | class AliESDEvent; |
86c32a36 | 32 | class AliAODv0; |
2fbc0b17 | 33 | |
318a0e1f | 34 | class AliCFV0Task : public AliAnalysisTaskSE { |
2fbc0b17 | 35 | public: |
36 | ||
37 | enum { | |
38 | kStepGenerated = 0, | |
39 | kStepReconstructible = 1, | |
40 | kStepReconstructed = 2, | |
41 | kStepSelected = 3 | |
42 | }; | |
43 | ||
44 | AliCFV0Task(); | |
45 | AliCFV0Task(const Char_t* name); | |
46 | AliCFV0Task& operator= (const AliCFV0Task& c); | |
47 | AliCFV0Task(const AliCFV0Task& c); | |
48 | virtual ~AliCFV0Task(); | |
49 | ||
50 | // ANALYSIS FRAMEWORK STUFF to loop on data and fill output objects | |
318a0e1f | 51 | void UserCreateOutputObjects(); |
52 | void UserExec(Option_t *option); | |
2fbc0b17 | 53 | void Terminate(Option_t *); |
54 | ||
55 | // CORRECTION FRAMEWORK RELATED FUNCTIONS | |
56 | void SetCFManager(AliCFManager* io) {fCFManager = io;} // global correction manager | |
57 | AliCFManager * GetCFManager() {return fCFManager;} // get corr manager | |
58 | ||
59 | void SetRebuildV0s(Bool_t flag) {fRebuildV0s = flag;} // setter for V0 on-the-fly reconstruction | |
60 | void SetV0PDG(Int_t code) {fV0PDG = code; } // defines the PDG code of searched V0's | |
318a0e1f | 61 | Int_t IsMcV0(AliESDv0*) const ; // checks if the AliESDv0 can be associated, returns mother label |
86c32a36 | 62 | Int_t IsMcV0(AliAODv0*) const ; // checks if the AliAODv0 can be associated, returns mother label |
318a0e1f | 63 | Int_t GetV0Label(UInt_t, UInt_t) const ; // returns label of V0 given 2 daughter labels |
2fbc0b17 | 64 | static Double_t GetRapidity(Double_t, Double_t) ; // returns the rapidity of the V0 (assuming PDG code) |
65 | ||
66 | ||
67 | protected: | |
318a0e1f | 68 | void RebuildV0s(AliESDEvent*) ; // reconstructs V0's on-fly |
2fbc0b17 | 69 | |
70 | Bool_t fRebuildV0s; // flag for on-the-fly V0 reconstruction | |
71 | Int_t fV0PDG; // PDG code of searched V0's | |
86c32a36 | 72 | AliCFManager *fCFManager ; // pointer to the CF manager |
2fbc0b17 | 73 | |
74 | // Histograms | |
75 | //Number of events | |
76 | TH1I *fHistEventsProcessed; //! simple histo for monitoring the number of events processed | |
77 | ||
78 | ClassDef(AliCFV0Task,1); | |
79 | }; | |
80 | ||
81 | #endif |