]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGPP/TPC/AliComparisonObject.h
fix run range for 2010
[u/mrichter/AliRoot.git] / PWGPP / TPC / AliComparisonObject.h
1 #ifndef ALICOMPARISONOBJECT_H
2 #define ALICOMPARISONOBJECT_H
3
4 //------------------------------------------------------------------------------
5 // Abstract class to keep information from comparison of 
6 // reconstructed and MC particle tracks.   
7 // 
8 // Author: J.Otwinowski 04/14/2008 
9 //------------------------------------------------------------------------------
10
11 #include "TNamed.h"
12 #include "TFolder.h"
13
14 class AliMCInfo;
15 class AliESDRecInfo;
16
17 class AliComparisonObject : public TNamed {
18 public :
19   AliComparisonObject(); 
20   AliComparisonObject(const char* name="AliComparisonObject", const char* title="AliComparisonObject"); 
21   virtual ~AliComparisonObject();
22
23   // Init data members
24   // call once before event loop
25   virtual void Init() = 0;
26
27   // Execute analysis
28   // call in the event loop 
29   virtual void Exec(AliMCInfo* const infoMC=0, AliESDRecInfo* const infoRC=0) = 0;
30
31   // Merge output objects (needed by PROOF) 
32   virtual Long64_t Merge(TCollection* const list=0) = 0;
33
34   // Analyse output histograms
35   virtual void Analyse() = 0;
36
37   // Get output folder for analysed histograms
38   virtual TFolder* GetAnalysisFolder() const = 0;
39
40   // set and get analysisMode
41   void SetAnalysisMode(Int_t analysisMode=0) {fAnalysisMode = analysisMode;} 
42   Int_t GetAnalysisMode() {return fAnalysisMode;}
43
44   // set and get hpt generator 
45   void SetHptGenerator(Bool_t hptGenerator=kFALSE) {fHptGenerator = hptGenerator;}
46   Bool_t IsHptGenerator() {return fHptGenerator;}
47
48 protected: 
49
50  // analysis mode
51  Int_t fAnalysisMode;  // 0-TPC, 1-TPCITS, 2-Constrained
52
53  // hpt generator
54  Bool_t fHptGenerator; // hpt event generator
55
56   ClassDef(AliComparisonObject,1);
57 };
58
59 #endif