3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 //_________________________________________________________________________
7 // Base Class for Jets in ALICE
9 //*-- Author: D.Peressounko
12 // --- ROOT system ---
17 // --- Standard library ---
19 // --- AliRoot header files ---
21 class AliPHOSJet : public TObject {
24 AliPHOSJet() ; // ctor
25 AliPHOSJet(const AliPHOSJet & jet){} ; // ctor
26 virtual ~AliPHOSJet() ;
28 void AddDigit(const Double_t e,const Double_t eta,const Double_t phi,const Int_t index) ;
29 void AddParticle(const TParticle * p,const Int_t index) ;
30 //adds particle p to jet. index: index of p in list of all particles in event
32 Double_t DistanceToJet(const TParticle *p)const ;
33 //calculates distance to Jet in accordance with some scheam:
34 //geometrical, inv mass, etc
36 void CalculateAll(void) ;
37 //calculate final Energy, Eta & phi from intermediate ones.
39 const Int_t * Indexs(Int_t & nIndexs)const{nIndexs = fNpart; return fList->GetArray() ;}
41 Bool_t IsInCone(const TParticle * p)const ;
42 Bool_t IsInCone(const Double_t e,const Double_t eta,const Double_t phi)const ;
43 Bool_t AcceptConeDeviation(const TParticle *p)const ;
44 Bool_t AcceptConeDeviation(const Double_t e,const Double_t eta,const Double_t phi)const ;
46 void SetConeRadius(Double_t r){fConeRad = r ;} ;
47 void SetMaxConeMove(Double_t max = 0.15){fMaxConeMove = max ;} ;
48 void SetMinConeMove(Double_t min = 0.05){fMinConeMove = min ;} ;
50 Double_t Energy(void)const{if(fEnergy) return fEnergy ;
51 else return fSumEnergy ;}
52 Double_t Eta(void)const{if(fEta) return fEta;
53 else return fSumEta/fSumEnergy ;}
54 Double_t Phi(void)const{if(fPhi) return fPhi;
55 else return fSumPhi/fSumEnergy ;}
56 Int_t GetNJetParticles(void)const{return fNpart;}
58 void Print(Option_t * option="") ;
61 Int_t fNpart ; //Number of particles in jet
62 TArrayI * fList ; //Indexes of particles in list
65 Double_t fMaxConeMove ;
66 Double_t fMinConeMove ;
67 Double_t fSumEnergy ; //! Intermediate energy
68 Double_t fSumEta ; //! Intermediate eta
69 Double_t fSumPhi ; //! Intermediate phi
70 Double_t fEnergy ; //Energy of the jet
71 Double_t fEta ; //Eta directtion of the jet
72 Double_t fPhi ; //Phi direction of the jet
73 Double_t fLEnergy ; //Energy of Leading particle of jet
74 Double_t fLEta ; //Eta directtion of Leading particle of the jet
75 Double_t fLPhi ; //Phi direction of leading particles of the jet
77 ClassDef(AliPHOSJet,1) // description