]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSv1.h
Preliminary version of optics 6.2 - Insertion of TDI
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv1.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 + PPSD has name GPS2  
9 // Layout EMC + CPV  has name IHEP
10 //*--                  
11 //*-- Author: Yves Schutz (SUBATECH)
12
13 // --- ROOT system ---
14 class TClonesArray ;
15 class TLorentzVector ;
16 class TFile;
17
18 // --- AliRoot header files ---
19 #include "AliPHOSv0.h"
20
21 class AliPHOSv1 : public AliPHOSv0 {
22
23 public:
24
25   AliPHOSv1(void) ;
26   AliPHOSv1(const char *name, const char *title="") ;
27   AliPHOSv1(const AliPHOSv1 & phos) {
28     // cpy ctor: no implementation yet
29     // requested by the Coding Convention
30     abort() ; 
31   }
32   virtual ~AliPHOSv1(void) ;
33
34   virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits) ; 
35  virtual Int_t  IsVersion(void) const {
36     // Gives the version number 
37     return 1 ; 
38   }
39
40   virtual void   StepManager(void) ;                              
41   virtual TString Version(void){ 
42     // returns the version number 
43     return TString("v1") ; 
44   }
45
46   AliPHOSv1 & operator = (const AliPHOSv1 & rvalue)  {
47     // assignement operator requested by coding convention but not needed
48     abort() ;
49     return *this ; 
50   }
51
52   void       CPVDigitize (TLorentzVector p, Float_t *xy, Int_t moduleNumber, TClonesArray *digits) ;
53   Float_t    CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ;
54   Double_t   CPVCumulPadResponse(Double_t x, Double_t y) ;
55
56 protected:
57
58
59   ClassDef(AliPHOSv1,1)  // Implementation of PHOS manager class for layout EMC+PPSD
60
61 };
62
63 #endif // AliPHOSV1_H