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 */
7 //_________________________________________________________________________
9 // Class containing methods for the isolation cut.
14 // -- Author: Gustavo Conesa (INFN-LNF)
16 // --- ROOT system ---
18 class TSeqCollection ;
20 // --- ANALYSIS system ---
21 class AliAODPWG4ParticleCorrelation ;
23 class AliIsolationCut : public TObject {
27 AliIsolationCut() ; // default ctor
28 AliIsolationCut(const AliIsolationCut & g) ; // cpy ctor
29 AliIsolationCut & operator = (const AliIsolationCut & g) ;//cpy assignment
30 virtual ~AliIsolationCut() {;} //virtual dtalr
32 enum type {kPtThresIC, kSumPtIC, kPtFracIC, kSumPtFracIC};
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() ;
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 ;
44 void Print(const Option_t * opt)const;
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 ; }
51 void InitParameters();
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
65 ClassDef(AliIsolationCut,1)
69 #endif //ALIISOLATIONCUT_H