]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG4/PartCorrBase/AliIsolationCut.h
Fix for improper corrections from revision 30849
[u/mrichter/AliRoot.git] / PWG4 / PartCorrBase / AliIsolationCut.h
1 #ifndef ALIISOLATIONCUT_H
2 #define ALIISOLATIONCUT_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 //_________________________________________________________________________
8
9 // Class containing methods for the isolation cut. 
10 //
11 //
12 // 
13
14 // -- Author: Gustavo Conesa (INFN-LNF)
15
16 // --- ROOT system --- 
17 #include <TObject.h>
18 class TSeqCollection ;
19
20 // --- ANALYSIS system ---
21 class AliAODPWG4ParticleCorrelation ;
22
23 class AliIsolationCut : public TObject {
24   
25  public: 
26   
27         AliIsolationCut() ; // default ctor
28         AliIsolationCut(const AliIsolationCut & g) ; // cpy ctor
29         AliIsolationCut & operator = (const AliIsolationCut & g) ;//cpy assignment
30         virtual ~AliIsolationCut() {;} //virtual dtalr
31         
32         enum type {kPtThresIC, kSumPtIC, kPtFracIC, kSumPtFracIC};
33         
34         Float_t    GetConeSize()        const {return fConeSize ; }
35         Float_t    GetPtThreshold()     const {return fPtThreshold ; }
36         Float_t    GetPtFraction()      const {return fPtFraction ; }
37         Int_t      GetICMethod()        const {return fICMethod ; }
38         TString    GetICParametersList() ; 
39         
40         void MakeIsolationCut(TSeqCollection * plCTS, TSeqCollection * plNe, Double_t * vertex, 
41                                                   const Bool_t fillAOD, AliAODPWG4ParticleCorrelation  * pCandidate,
42                                                   Int_t &n, Int_t & nfrac, Float_t &ptsum, Bool_t & isolated) const ;  
43         
44         void Print(const Option_t * opt)const;
45         
46         void SetConeSize(Float_t r)       {fConeSize = r ; }
47         void SetPtThreshold(Float_t pt)   {fPtThreshold = pt; }
48         void SetPtFraction(Float_t pt)    {fPtFraction = pt; }
49         void SetICMethod(Int_t i )        {fICMethod = i ; }
50         
51         void InitParameters();
52         
53   
54   private:
55      
56   Float_t      fConeSize ; //Size of the isolation cone 
57   Float_t      fPtThreshold ; //Mimium pt of the particles in the cone or sum in cone 
58   Float_t      fPtFraction ; //Fraction of the momentum of particles in cone or sum in cone
59   Int_t        fICMethod ; //Isolation cut method to be used
60                                            // kPtIC: Pt threshold method
61                                            // kSumPtIC: Cone pt sum method
62                                            // kPtFracIC:   Pt threshold, fraction of candidate pt, method
63                                            // kSumPtFracIC:   Cone pt sum , fraction of cone sum, method
64
65   ClassDef(AliIsolationCut,1)
66 } ;
67  
68
69 #endif //ALIISOLATIONCUT_H
70
71
72