]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/AliAnaGammaCorrelation.h
Merging THbtp and HBTP in one library. Comiplation on Windows/Cygwin
[u/mrichter/AliRoot.git] / PWG4 / AliAnaGammaCorrelation.h
CommitLineData
bdcfac30 1#ifndef ALIANAGAMMACORRELATION_H
2#define ALIANAGAMMACORRELATION_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5/* $Id$ */
6
7/* History of cvs commits:
8 *
9 * $Log$
4b707925 10 * Revision 1.2 2007/08/17 12:40:04 schutz
11 * New analysis classes by Gustavo Conesa
12 *
bdcfac30 13 * Revision 1.1.2.1 2007/07/26 10:32:09 schutz
14 * new analysis classes in the the new analysis framework
15 *
16 *
17 */
18
19//_________________________________________________________________________
20// Base class for gamma correlations
21//*-- Author: Gustavo Conesa (INFN-LNF)
22
23// --- ROOT system ---
24#include <TParticle.h>
25#include <TClonesArray.h>
26#include <TH2F.h>
27#include<TObject.h>
28#include<TList.h>
29
30class AliNeutralMesonSelection ;
31
32class AliAnaGammaCorrelation : public TObject {
33
34public:
35
36 AliAnaGammaCorrelation() ; // default ctor
37 AliAnaGammaCorrelation(const AliAnaGammaCorrelation & g) ; // cpy ctor
38 AliAnaGammaCorrelation & operator = (const AliAnaGammaCorrelation & g) ;//cpy assignment
39 virtual ~AliAnaGammaCorrelation() ; //virtual dtor
40
3bb2c538 41 enum Corrtype {kParton, kHadron, kJetLeadCone, kJetFinder};
bdcfac30 42
43 //General methods
44
45 AliNeutralMesonSelection * GetNeutralMesonSelection()
46 { return fNeutralMesonSelection ; }
47 void SetNeutralMesonSelection(AliNeutralMesonSelection * nms)
48 { fNeutralMesonSelection = nms ; }
49
3bb2c538 50 TList * GetOutputContainer() const {return fOutputContainer ;}
bdcfac30 51 void SetOutputContainer(TList * oc) {fOutputContainer = oc ;}
52
53 void InitParameters();
54
3bb2c538 55 Int_t GetCorrelationType() const { return fCorrelationType ; }
bdcfac30 56 void SetCorrelationType(Int_t ana ){ fCorrelationType = ana ; }
57
58 void Print(const Option_t * opt) const;
59
60 Bool_t AreJetsOnlyInCTS() const {return fJetsOnlyInCTS ; }
61 void SetJetsOnlyInCTS(Bool_t opt){fJetsOnlyInCTS = opt; }
62
63 virtual TList * GetCreateOutputObjects() {return fOutputContainer ;}
3bb2c538 64 virtual void MakeGammaCorrelation(TParticle * , TClonesArray *, TClonesArray *) {;}
bdcfac30 65
66 //Gamma hadron correlations methods: kHadron
67 Float_t GetMinPtHadron() const {return fMinPtHadron ; }
68 void SetMinPtHadron(Float_t pt){fMinPtHadron = pt; };
69
70 Double_t GetDeltaPhiMaxCut() const {return fDeltaPhiMaxCut ; }
71 Double_t GetDeltaPhiMinCut() const {return fDeltaPhiMinCut ; }
72 void SetDeltaPhiCutRange(Double_t phimin, Double_t phimax)
73 {fDeltaPhiMaxCut =phimax; fDeltaPhiMinCut =phimin;}
74
75 Double_t GetRatioMaxCut() const {return fRatioMaxCut ; }
76 Double_t GetRatioMinCut() const {return fRatioMinCut ; }
77 void SetRatioCutRange(Double_t ratiomin, Double_t ratiomax)
78 {fRatioMaxCut = ratiomax; fRatioMinCut = ratiomin;}
79
80 private:
81
82 TList * fOutputContainer; //Histograms container
83 AliNeutralMesonSelection * fNeutralMesonSelection ; //! Pointer to pair selection for pi0 identification.
84
85 Int_t fCorrelationType; //Type of correlation analysis
86 Bool_t fJetsOnlyInCTS ; // Jets measured only in TPC+ITS.
87
88 private:
89 //Gamma hadron correlations data members kGammaHadron
90 Double_t fMinPtHadron; // Minimum pt of hadron (kHadron)
91 Double_t fDeltaPhiMaxCut ; // Minimum Delta Phi Gamma-Hadron/jet in leading cone
92 Double_t fDeltaPhiMinCut ; // Maximum Delta Phi Gamma-Hadron/ jet in leading cone
93 Double_t fRatioMaxCut ; // Leading particle/gamma Ratio cut maximum (kLeadJetCone)
94 Double_t fRatioMinCut ; // Leading particle/gamma Ratio cut minimum (kLeadJetCone)
95
4b707925 96 ClassDef(AliAnaGammaCorrelation,1)
bdcfac30 97} ;
98
99
100#endif //ALIANAGAMMACORRELATION_H
101
102
103