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