trigger conditions 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;
15
16#include "TNamed.h"
17#include "TFolder.h"
70fdd197 18#include "AliTriggerAnalysis.h"
0aaa8b91 19#include "AlidNdPtHelper.h"
20
21class AlidNdPt : public TNamed {
22public:
23 AlidNdPt();
24 AlidNdPt(Char_t* name, Char_t* title);
25 ~AlidNdPt();
26
27 // Init data members
28 virtual void Init() = 0;
29
30 // Process events
31 virtual void Process(AliESDEvent *const esdEvent=0, AliMCEvent *const mcEvent=0) = 0;
32
33 // Merge output objects (needed by PROOF)
34 virtual Long64_t Merge(TCollection* list=0) = 0;
35
36 // Analyse output histograms
37 virtual void Analyse() = 0;
38
39 // Export analysed output objects to folder
40 virtual TFolder *ExportToFolder(TObjArray * array=0) = 0;
41
42 //
43 AlidNdPt(const AlidNdPt&); // not implemented
44 AlidNdPt& operator=(const AlidNdPt&); // not implemented
45
46 //
bad4ba69 47 void SetEventCuts(AlidNdPtEventCuts* const cuts) { fdNdPtEventCuts = cuts; }
48 void SetAcceptanceCuts(AlidNdPtAcceptanceCuts* const cuts) { fdNdPtAcceptanceCuts = cuts; }
49 void SetTrackCuts(AliESDtrackCuts* const cuts) { fEsdTrackCuts = cuts; }
50 void SetUseMCInfo(const Bool_t info) { fUseMCInfo = info; }
51 void SetAnalysisMode(const AlidNdPtHelper::AnalysisMode mode) { fAnalysisMode = mode; }
70fdd197 52 void SetTrigger(const AliTriggerAnalysis::Trigger trigger) { fTrigger = trigger; }
985bdfd5 53 void SetTriggerClass(const Char_t *triggerClass) { fTriggerClass = triggerClass; }
bad4ba69 54
55 AlidNdPtEventCuts* GetEventCuts() const { return fdNdPtEventCuts; }
56 AlidNdPtAcceptanceCuts* GetAcceptanceCuts() const { return fdNdPtAcceptanceCuts; }
57 AliESDtrackCuts* GetTrackCuts() const { return fEsdTrackCuts; }
58 Bool_t IsUseMCInfo() const { return fUseMCInfo; }
59 AlidNdPtHelper::AnalysisMode GetAnalysisMode() const { return fAnalysisMode; }
70fdd197 60 AliTriggerAnalysis::Trigger GetTrigger() const { return fTrigger; }
985bdfd5 61 const Char_t* GetTriggerClass() const { return fTriggerClass; }
0aaa8b91 62
63private:
64
65 AlidNdPtEventCuts *fdNdPtEventCuts; // event cuts
66 AlidNdPtAcceptanceCuts *fdNdPtAcceptanceCuts; // acceptance cuts
67 AliESDtrackCuts *fEsdTrackCuts; // esd track cuts
68
69 Bool_t fUseMCInfo; // use MC information
70 AlidNdPtHelper::AnalysisMode fAnalysisMode; // analysis mode TPC only, TPC + ITS
70fdd197 71 AliTriggerAnalysis::Trigger fTrigger; // trigger definition MB1, MB2 ...
985bdfd5 72 const Char_t * fTriggerClass; // trigger class
0aaa8b91 73
74 ClassDef(AlidNdPt,1);
75};
76
77#endif