new functionality and data memebers added
[u/mrichter/AliRoot.git] / PWG0 / dNdPt / AlidNdPt.h
CommitLineData
0aaa8b91 1#ifndef ALIDNDPT_H
2#define ALIDNDPT_H
3
4//------------------------------------------------------------------------------
5// Abstract class for dNdPt analysis. All dNdPt components should derive from it.
6//
7// Author: J.Otwinowski 03/11/2008
8//------------------------------------------------------------------------------
9
10class AliESDEvent;
11class AliMCEvent;
12class AliESDtrackCuts;
13class AlidNdPtEventCuts;
14class AlidNdPtAcceptanceCuts;
d269b0e6 15class AliPhysicsSelection;
0aaa8b91 16
17#include "TNamed.h"
18#include "TFolder.h"
70fdd197 19#include "AliTriggerAnalysis.h"
0aaa8b91 20#include "AlidNdPtHelper.h"
21
22class AlidNdPt : public TNamed {
23public:
24 AlidNdPt();
25 AlidNdPt(Char_t* name, Char_t* title);
26 ~AlidNdPt();
27
28 // Init data members
29 virtual void Init() = 0;
30
31 // Process events
32 virtual void Process(AliESDEvent *const esdEvent=0, AliMCEvent *const mcEvent=0) = 0;
33
34 // Merge output objects (needed by PROOF)
c931948b 35 virtual Long64_t Merge(TCollection* const list=0) = 0;
0aaa8b91 36
37 // Analyse output histograms
38 virtual void Analyse() = 0;
39
40 // Export analysed output objects to folder
c931948b 41 virtual TFolder *ExportToFolder(TObjArray * const array=0) = 0;
0aaa8b91 42
43 //
44 AlidNdPt(const AlidNdPt&); // not implemented
45 AlidNdPt& operator=(const AlidNdPt&); // not implemented
46
47 //
bad4ba69 48 void SetEventCuts(AlidNdPtEventCuts* const cuts) { fdNdPtEventCuts = cuts; }
49 void SetAcceptanceCuts(AlidNdPtAcceptanceCuts* const cuts) { fdNdPtAcceptanceCuts = cuts; }
50 void SetTrackCuts(AliESDtrackCuts* const cuts) { fEsdTrackCuts = cuts; }
51 void SetUseMCInfo(const Bool_t info) { fUseMCInfo = info; }
52 void SetAnalysisMode(const AlidNdPtHelper::AnalysisMode mode) { fAnalysisMode = mode; }
70fdd197 53 void SetTrigger(const AliTriggerAnalysis::Trigger trigger) { fTrigger = trigger; }
985bdfd5 54 void SetTriggerClass(const Char_t *triggerClass) { fTriggerClass = triggerClass; }
847e74b2 55 void SetParticleMode(const AlidNdPtHelper::ParticleMode mode) { fParticleMode = mode; }
d269b0e6 56 void SetPhysicsTriggerSelection(AliPhysicsSelection* const selection) { fPhysicsSelection = selection; }
bad4ba69 57
58 AlidNdPtEventCuts* GetEventCuts() const { return fdNdPtEventCuts; }
59 AlidNdPtAcceptanceCuts* GetAcceptanceCuts() const { return fdNdPtAcceptanceCuts; }
60 AliESDtrackCuts* GetTrackCuts() const { return fEsdTrackCuts; }
61 Bool_t IsUseMCInfo() const { return fUseMCInfo; }
62 AlidNdPtHelper::AnalysisMode GetAnalysisMode() const { return fAnalysisMode; }
70fdd197 63 AliTriggerAnalysis::Trigger GetTrigger() const { return fTrigger; }
985bdfd5 64 const Char_t* GetTriggerClass() const { return fTriggerClass; }
847e74b2 65 AlidNdPtHelper::ParticleMode GetParticleMode() const { return fParticleMode; }
d269b0e6 66 AliPhysicsSelection* GetPhysicsTriggerSelection() const { return fPhysicsSelection; }
0aaa8b91 67
68private:
69
70 AlidNdPtEventCuts *fdNdPtEventCuts; // event cuts
71 AlidNdPtAcceptanceCuts *fdNdPtAcceptanceCuts; // acceptance cuts
72 AliESDtrackCuts *fEsdTrackCuts; // esd track cuts
73
74 Bool_t fUseMCInfo; // use MC information
75 AlidNdPtHelper::AnalysisMode fAnalysisMode; // analysis mode TPC only, TPC + ITS
70fdd197 76 AliTriggerAnalysis::Trigger fTrigger; // trigger definition MB1, MB2 ...
985bdfd5 77 const Char_t * fTriggerClass; // trigger class
847e74b2 78 AlidNdPtHelper::ParticleMode fParticleMode; // selected particle (pion, kaon, ...)
0aaa8b91 79
d269b0e6 80 AliPhysicsSelection* fPhysicsSelection; // physics trigger selection class
81
0aaa8b91 82 ClassDef(AlidNdPt,1);
83};
84
85#endif