]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGCF/Correlations/JCORRAN/AliJCORRAN.h
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGCF / Correlations / JCORRAN / AliJCORRAN.h
1 /* Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3
4 // Short comment describing what this class does needed!
5
6 #ifndef ALIJCORRAN_H
7 #define ALIJCORRAN_H
8
9 #include <AliJDataManager.h>
10 #include <AliJConst.h>
11 #include <TH1D.h>
12
13 // jcorran main class
14 // used in local and grid execution
15 // blah
16
17 class AliJCard;
18 class AliJHistos;
19 class AliJCorrelations;
20 class AliJEventHeader;
21 class AliJEventPool;
22 class AliJHistos;
23 class AliJRunHeader;
24 class AliJEfficiency;
25 class AliJTrackCounter;
26
27 class TClonesArray;
28 class TF1;
29 class AliJRunTable;
30 class TRandom3;
31
32 class AliJCORRAN : public TObject
33 {
34   public:
35     AliJCORRAN();
36     AliJCORRAN(Bool_t execLocal);
37     virtual ~AliJCORRAN();
38     AliJCORRAN(const AliJCORRAN& obj);
39     AliJCORRAN& operator=(const AliJCORRAN& obj);
40     
41     void Initialize() const;
42     void Init(){ Initialize(); }
43     void UserCreateOutputObjects();
44     void UserExec();
45     void Terminate();
46     
47     Int_t GetNumberEvents() const { return fnumberEvents; }
48     AliJHistos *GetHistos() { return fhistos; }
49     AliJCorrelations *GetCorrelations() { return fcorrelations; }
50     AliJEventPool *GetAssocPool() { return fassocPool; }
51     Int_t GetEventCounter() const { return fEventCounter; }
52     AliJCard *GetCard() { return fcard; }
53
54         void FillXtHistos(TClonesArray *inputList, AliJTrackCounter *lpTrackCounter); // Esko
55
56         void SetCard( AliJCard *c ) { fcard = c; }
57         void SetTrigger( char* p ) { fjtrigg = GetParticleType(p); }
58         void SetAssoc( char* p ) { fjassoc = GetParticleType(p); }
59         void SetInclusiveFile( const char *f ){ fInclusiveFile = f; }
60         void SetInputFile( char *f ) { finputFile = f; }
61         void SetNumberEvents( Int_t n ) { fnumberEvents = n; }
62
63         void SetTrackList( TClonesArray *a ) { fdmg->SetTrackList( a ); }
64         void SetPhotonList( TClonesArray *a ) { fdmg->SetPhotonList( a ); }
65         void SetCaloCellList( TClonesArray *a ) { fdmg->SetCaloCellList( a ); }
66         void SetMCTrackList( TClonesArray *a ) { fdmg->SetMCTrackList( a ); }
67         void SetHeaderList( TClonesArray *a ) { fdmg->SetHeaderList( a ); }
68         void SetRunHeader( AliJRunHeader *a ) { frunHeader = a; }
69         void SetRunInfoList( TList *a ) { fdmg->SetRunInfoList( a ); }
70         void SetESDVZERO( TObject *a ) { fdmg->SetESDVZERO( a ); }
71  
72         //     void SetESDTZERO( AliESDTZERO *a ) { fdmg->SetESDTZERO( a ); }
73         //     void SetESDZDC( AliESDZDC *a ) { fdmg->SetESDZDC( a ); }
74
75
76         double DeltaPhi(double phi1, double phi2);
77         particleType  GetParticleType(char *inchar);
78         void ScaleNotEquidistantHisto(TH1D *hid, const double sc);
79
80         private:
81
82         Bool_t fExecLocal; // exec mode
83         Bool_t fFirstEvent; //!
84
85         particleType fjtrigg; // assoc
86         particleType fjassoc; // trigger
87
88         AliJCard *fcard; // card
89         char * finputFile; //!
90         TString fInclusiveFile; // File for inclusive distributions
91
92         Int_t fevt; // event number
93         AliJHistos *fhistos; //!
94         AliJCorrelations *fcorrelations; //!
95         AliJEventPool *fphotonPool; //!
96         AliJEventPool *fassocPool; //! 
97         TClonesArray *fphotonList; //! 
98         TClonesArray *fchargedHadronList; //!
99         TClonesArray *fpizeroList; //!
100         TClonesArray *ftriggList; //! 
101         TClonesArray *fassocList; //!
102         TClonesArray *fpairList; //!
103         TClonesArray *fpairCounterList; //!
104         TClonesArray *finputList; //!
105
106         AliJDataManager* fdmg; //!
107         AliJEventHeader *feventHeader; //!
108         AliJRunHeader* frunHeader; //!
109
110         int fnumberEvents; //!
111         int fieout; //!
112         int fEventCounter; //!
113         double fcent; //!
114         Int_t fncBin; //!
115         Int_t fnPttBin; //!
116         bool fbTriggCorrel; //!
117         bool fbLPCorrel; //!
118         bool fbLPpairCorrel; //!
119         double fTrackEtaRange; //!
120         double flowerPtAssocBoarder; //!
121
122         TF1 *fCentMultLow;  //!
123         TF1 *fCentMultHigh; //!
124
125
126
127         Int_t fEventBC; //!
128         Float_t fSQRTS; // todo
129
130         AliJEfficiency *fEfficiency; // comment me
131         AliJRunTable *fRunTable; // comment needed
132         float fIsolationR; // comment1
133         int fHadronSelectionCut; /// comment2
134
135         ClassDef(AliJCORRAN, 1); // EMCAL for jcorran
136
137 };
138
139 #endif
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163