]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSFastGlobalReconstruction.h
Splitting of the QA maker into simulation and reconstruction dependent parts (Yves)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSFastGlobalReconstruction.h
1 #ifndef ALIPHOSFASTGLOBALRECONSTRUCTION_H
2 #define ALIPHOSFASTGLOBALRECONSTRUCTION_H
3 /* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 // Fast global reconstruction class.
9 // It performes fast reconstruction for charged particles only,
10 // assuming that they were detected by all central ALICE detectors but PHOS.
11 // This class acts as a filter for primary particles, selects them
12 // and deteriorates their 4-momenta.
13 //!
14 // Author: Yuri Kharlov. 17 April 2003
15
16 //_________________________________________________________________________
17 class AliGenerator;
18 class TClonesArray;
19 class AliPHOSGetter;
20 class TLorentzVector;
21
22 class AliPHOSFastGlobalReconstruction : public TObject {
23
24 public:
25   AliPHOSFastGlobalReconstruction();
26   AliPHOSFastGlobalReconstruction(const char* headerFile);
27   
28   AliPHOSFastGlobalReconstruction(const AliPHOSFastGlobalReconstruction &rhs);
29   AliPHOSFastGlobalReconstruction & operator = (const AliPHOSFastGlobalReconstruction &);
30   
31   virtual ~AliPHOSFastGlobalReconstruction();
32   void FastReconstruction(Int_t event);
33   TClonesArray *GetRecParticles() const {return fParticles;}
34
35 private:
36   Bool_t  Detected(TParticle *particle);
37   Float_t Efficiency(Float_t pt, Float_t eta);
38   void    SmearMomentum(TLorentzVector &p);
39
40 private:
41   AliPHOSGetter *fgime;        //! Instance of the PHOS getter
42   AliGenerator  *fGenerator;  //! MC generator used in simulation
43   TClonesArray  *fParticles;  //! Array of reconstructed particles
44   Int_t          fNParticles; //! Number of reconstructed particles
45
46 ClassDef(AliPHOSFastGlobalReconstruction,1)  // Fast global reconstruction
47 };
48
49 #endif // AliPHOSFASTGLOBALRECONSTRUCTION_H