Next round of upgrades and cleanups of code. The code is now more streamlined and...
[u/mrichter/AliRoot.git] / FMD / analysis / AliFMDAnalysisTaskDensity.h
1 #ifndef ALIFMDANALYSISTASKDENSITY_H
2 #define ALIFMDANALYSISTASKDENSITY_H
3  
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6  
7 #include "AliAnalysisTask.h"
8
9 #include "TObjArray.h"
10 #include "AliESDFMD.h"
11 #include "AliESDVertex.h"
12 #include "TObjString.h"
13 #include "TTree.h"
14
15 class AliESDEvent;
16 class TChain;
17 class AliAODEvent;
18 class TF1;
19
20
21 /**
22  * @ingroup FMD_ana
23  */
24 class AliFMDAnalysisTaskDensity : public AliAnalysisTask
25 {
26  public:
27     AliFMDAnalysisTaskDensity();
28     AliFMDAnalysisTaskDensity(const char* name, Bool_t SE = kTRUE);
29     virtual ~AliFMDAnalysisTaskDensity() {;}
30  AliFMDAnalysisTaskDensity(const AliFMDAnalysisTaskDensity& o) : AliAnalysisTask(),
31       fDebug(o.fDebug),
32       fOutputList(),
33       fESD(o.fESD),
34       fVertexString(o.fVertexString),
35       fVertex(o.fVertex),
36       fStandalone(o.fStandalone),
37       fStatus(o.fStatus) {}
38     AliFMDAnalysisTaskDensity& operator=(const AliFMDAnalysisTaskDensity&) { return *this; }
39     // Implementation of interface methods
40     virtual void ConnectInputData(Option_t *option);
41     virtual void CreateOutputObjects();
42     virtual void Init() {}
43     virtual void LocalInit() {Init();}
44     virtual void Exec(Option_t *option);
45     virtual void Terminate(Option_t */*option*/) {}
46     virtual void SetDebugLevel(Int_t level) {fDebug = level;}
47     
48     Float_t       GetAcceptanceCorrection(Char_t ring, UShort_t strip);
49     void SetOutputList(TList* outlist) {fOutputList = outlist;}
50     void SetInputESDFMD(AliESDFMD* esdfmd) {fESD = esdfmd;}
51     void SetInputVertex(AliESDVertex* vertex) {fVertex = vertex;}
52     Bool_t GetEventStatus() { return fStatus; }
53     Float_t GetPhiFromSector(UShort_t det, Char_t ring, UShort_t sec);
54  private:
55     
56     Int_t         fDebug;        //  Debug flag
57     TList*        fOutputList;
58     AliESDFMD*    fESD;
59     TObjString    fVertexString;
60     AliESDVertex* fVertex;
61     Bool_t        fStandalone;
62     Bool_t        fStatus;
63     // TF1*          fFuncPos;
64     // TF1*          fFuncNeg;
65     
66     ClassDef(AliFMDAnalysisTaskDensity, 0); // Analysis task for FMD analysis
67 };
68  
69 #endif
70 // Local Variables:
71 //   mode: C++ 
72 // End: