]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSJetFinder.h
fWSN->Eval(0.001) to avoid fpe.
[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 //_________________________________________________________________________
7 //                  
8 //*-- Author: D.Peressounko
9
10
11 // --- ROOT system ---
12 #include "TNamed.h"
13 class TClonesArray ;
14 class TObjArray ;
15 class AliPHOSDigit ;
16
17 // --- Standard library ---
18
19 // --- AliRoot header files ---
20
21 class AliPHOSJetFinder : public TNamed {
22
23 public:
24   AliPHOSJetFinder() ;          // ctor
25   AliPHOSJetFinder(const AliPHOSJetFinder & jet) : TNamed(jet) {
26     // copy ctor: no implementation yet
27     Fatal("cpy ctor", "not implemented") ;
28   }
29   virtual ~AliPHOSJetFinder() ; // dtor
30
31   void FindJetsFromParticles(const TClonesArray * plist,TObjArray * jetslist) ; //Do the job
32   void FindJetsFromDigits(const TClonesArray * digits,TObjArray * jetslist) ; //Do the job
33
34   void Print() ;
35
36   void SetEtSeed(Double_t etseed){fEtSeed = etseed ;} ;
37   void SetEtMin(Double_t etmin){fEtMin = etmin ;} ;
38   void SetConRad(Double_t r){fConeRad = r ;} ;
39   void SetMaxConeMove(Double_t move){fMaxConeMove=move ; } ;
40   void SetMinConeMove(Double_t move){fMinConeMove=move ; } ;
41   void SetStatusCode(Int_t stc = 1){fStatusCode=stc ;} ;
42   AliPHOSJetFinder & operator = (const AliPHOSJetFinder & /*rvalue*/)  {
43     // assignement operator requested by coding convention but not needed
44     Fatal("operator =", "not implemented") ; return *this ; 
45   }
46   
47 private:
48   Double_t Calibrate(const AliPHOSDigit * digit) ;
49   void    CalculateEEtaPhi(const AliPHOSDigit * d,Double_t &e, Double_t &Eta, Double_t &phi);
50
51 private:
52   Int_t     fNJets ; //Number of jets
53   Int_t     fStatusCode ; //Status code of particles to handle
54   Int_t     fMode  ;   //Mode for background calculation
55
56   Double_t  fConeRad ;   //Maximal radius of jet
57   Double_t  fMaxConeMove ; //Maximal cone movement
58   Double_t  fMinConeMove ; //Minimum cone movement
59   Double_t  fEtSeed ;      //Transversal energy seed
60   Double_t  fEtMin ;       //Minimal transversal energy
61   Double_t  fPrecBg ;      //Precision due to background?  
62   Double_t  fSimGain ;     //Simulated digit gain
63   Double_t  fSimPedestal ; //Simulated digit pedestal
64
65
66   TClonesArray * fParticles ; //Particles array
67   TObjArray *    fJets ;      //Jets array
68
69   ClassDef(AliPHOSJetFinder,1)  //Class to find Jets
70
71 };
72
73 #endif // AliPHOSJETFINDER_H