]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSJetFinder.h
Coding convention compliant version (by Raffaele)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSJetFinder.h
1 #ifndef ALIPHOSJETFINDER_H
2 #define ALIPHOSJETFINDER_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 /* History of cvs commits:
9  *
10  * $Log$
11  * Revision 1.6  2005/05/28 14:19:04  schutz
12  * Compilation warnings fixed by T.P.
13  *
14  */
15
16 //_________________________________________________________________________
17 //                  
18 //*-- Author: D.Peressounko
19
20
21 // --- ROOT system ---
22 #include "TNamed.h"
23 class TClonesArray ;
24 class TObjArray ;
25 class AliPHOSDigit ;
26
27 // --- Standard library ---
28
29 // --- AliRoot header files ---
30
31 class AliPHOSJetFinder : public TNamed {
32
33 public:
34   AliPHOSJetFinder() ;          // ctor
35   AliPHOSJetFinder(const AliPHOSJetFinder & jet);
36   virtual ~AliPHOSJetFinder() ; // dtor
37
38   void FindJetsFromParticles(const TClonesArray * plist,TObjArray * jetslist) ; //Do the job
39   void FindJetsFromDigits(const TClonesArray * digits,TObjArray * jetslist) ; //Do the job
40
41   void Print(const Option_t * = "") const ;
42
43   void SetEtSeed(Double_t etseed){fEtSeed = etseed ;} ;
44   void SetEtMin(Double_t etmin){fEtMin = etmin ;} ;
45   void SetConRad(Double_t r){fConeRad = r ;} ;
46   void SetMaxConeMove(Double_t move){fMaxConeMove=move ; } ;
47   void SetMinConeMove(Double_t move){fMinConeMove=move ; } ;
48   void SetStatusCode(Int_t stc = 1){fStatusCode=stc ;} ;
49   AliPHOSJetFinder & operator = (const AliPHOSJetFinder & /*rvalue*/)  {
50     // assignement operator requested by coding convention but not needed
51     Fatal("operator =", "not implemented") ; return *this ; 
52   }
53   
54 private:
55   Double_t Calibrate(const AliPHOSDigit * digit) ;
56   void    CalculateEEtaPhi(const AliPHOSDigit * d,Double_t &e, Double_t &Eta, Double_t &phi);
57
58 private:
59   Int_t     fNJets ; //Number of jets
60   Int_t     fStatusCode ; //Status code of particles to handle
61   Int_t     fMode  ;   //Mode for background calculation
62
63   Double_t  fConeRad ;   //Maximal radius of jet
64   Double_t  fMaxConeMove ; //Maximal cone movement
65   Double_t  fMinConeMove ; //Minimum cone movement
66   Double_t  fEtSeed ;      //Transversal energy seed
67   Double_t  fEtMin ;       //Minimal transversal energy
68   Double_t  fPrecBg ;      //Precision due to background?  
69   Double_t  fSimGain ;     //Simulated digit gain
70   Double_t  fSimPedestal ; //Simulated digit pedestal
71
72
73   TClonesArray * fParticles ; //Particles array
74   TObjArray *    fJets ;      //Jets array
75
76   ClassDef(AliPHOSJetFinder,1)  //Class to find Jets
77
78 };
79
80 #endif // AliPHOSJETFINDER_H