]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSDebug.h
Add components for jet analysis on mc and rec jets
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDebug.h
1 #ifndef ALIPHOSV1_H
2 #define ALIPHOSV1_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 //_________________________________________________________________________
7 // Implementation version v1 of PHOS Manager class 
8 // Layout EMC + CPV  has name IHEP
9 //*--                  
10 //*-- Author: Yves Schutz (SUBATECH)
11
12 // --- ROOT system ---
13 #include "TClonesArray.h"
14
15 class TFile;
16
17 // --- AliRoot header files ---
18 #include "AliPHOSv0.h"
19 #include "AliPHOSGeometry.h"
20 #include "AliPHOSReconstructor.h"
21 #include "AliPHOSTrackSegmentMaker.h"
22 #include "AliPHOSPID.h"
23 #include "AliPHOSCPVDigit.h"
24
25 class AliPHOSv1 : public AliPHOSv0 {
26
27 public:
28
29   AliPHOSv1(void) ;
30   AliPHOSv1(const char *name, const char *title="") ;
31   AliPHOSv1(AliPHOSReconstructor * Reconstructioner, const char *name, const char *title="") ;
32   AliPHOSv1(const AliPHOSv1 & phos) {
33     // cpy ctor: no implementation yet
34     // requested by the Coding Convention
35     assert(0==1) ; 
36   }
37   virtual ~AliPHOSv1(void) ;
38
39   virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits, Int_t pid, TLorentzVector p, Float_t *pos) ; 
40   Float_t        Calibrate(Int_t amp){ return (amp - fDigitizeA)/fDigitizeB ; }
41   Int_t          Digitize(Float_t Energy){ return (Int_t ) (fDigitizeA + Energy*fDigitizeB); }
42   virtual void   Hits2SDigits() ;
43   virtual void   MakeBranch(Option_t* opt, char *file=0 ) ;
44   void           Reconstruction(AliPHOSReconstructor * Reconstructioner) ;
45   void           ResetClusters(){} ;
46   virtual void   SDigits2Digits() ;  
47   virtual Int_t  IsVersion(void) const {
48     // Gives the version number 
49     return 1 ; 
50   }
51
52   virtual void   ResetReconstruction() ; // Reset reconstructed objects
53   void           SetReconstructioner(AliPHOSReconstructor& Reconstructioner) {
54     // sets the reconstructionner object to be used
55     fReconstructioner = &Reconstructioner ;
56   }  
57   void           SetDigitThreshold(Float_t th) { fDigitThreshold = th ; } 
58   void           SetPpsdEnergyThreshold(Float_t enth)      { fPpsdEnergyThreshold = enth ; } 
59   void           SetCpvEnergyThreshold(Float_t enth)       { fCpvEnergyThreshold = enth ; } 
60
61   virtual void   StepManager(void) ;                              
62   virtual TString Version(void){ 
63     // returns the version number 
64     return TString("v1") ; 
65   }
66
67   AliPHOSv1 & operator = (const AliPHOSv1 & rvalue)  {
68     // assignement operator requested by coding convention but not needed
69     assert(0==1) ;
70     return *this ; 
71   }
72
73   void       CPVDigitize (TLorentzVector p, Float_t *xy, Int_t moduleNumber, TClonesArray *digits) ;
74   Float_t    CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ;
75   Double_t   CPVCumulPadResponse(Double_t x, Double_t y) ;
76
77 protected:
78
79   Float_t fDigitThreshold ;                       // Threshold for the digit registration 
80   Float_t fPpsdEnergyThreshold;                   //PPSD
81   Float_t fCpvEnergyThreshold;                    //CPV  
82   Float_t fPinElectronicNoise  ;                  // Electronic Noise in the PIN
83   Float_t fDigitizeA ;                            //Parameters of the 
84   Float_t fDigitizeB ;                            //digitization 
85   Int_t   fnSdigits ; 
86   AliPHOSReconstructor  * fReconstructioner ;  // Clusterization and subtracking procedures
87   AliPHOSTrackSegmentMaker * fTrackSegmentMaker ; // Reconstructioner of the PHOS track segment: 2 x PPSD + 1 x EMC
88
89   ClassDef(AliPHOSv1,1)  // Implementation of PHOS manager class for layout EMC+PPSD
90
91 };
92
93 #endif // AliPHOSV1_H