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