]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSv1.h
3fd8a78653dca45de6d904b293956cb9d01f0b19
[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 class AliPHOSQAIntCheckable ; 
21 class AliPHOSQAFloatCheckable ; 
22
23 class AliPHOSv1 : public AliPHOSv0 {
24
25 public:
26
27   AliPHOSv1(void) ;
28   AliPHOSv1(const char *name, const char *title="") ;
29   AliPHOSv1(const AliPHOSv1 & phos) {
30     // cpy ctor: no implementation yet
31     // requested by the Coding Convention
32     abort() ; 
33   }
34   virtual ~AliPHOSv1(void) ;
35
36   virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits) ; 
37   virtual void   FinishEvent() ;
38   virtual void   FinishPrimary() ;
39   virtual Int_t  IsVersion(void) const {
40     // Gives the version number 
41     return 1 ; 
42   }
43
44   virtual void   StepManager(void) ;                              
45   virtual TString Version(void){ 
46     // returns the version number 
47     return TString("v1") ; 
48   }
49
50   AliPHOSv1 & operator = (const AliPHOSv1 & rvalue)  {
51     // assignement operator requested by coding convention but not needed
52     abort() ;
53     return *this ; 
54   }
55
56   void       CPVDigitize (TLorentzVector p, Float_t *xy, Int_t moduleNumber, TClonesArray *digits) ;
57   Float_t    CPVPadResponseFunction(Float_t qhit, Float_t zg, Float_t xg) ;
58   Double_t   CPVCumulPadResponse(Double_t x, Double_t y) ;
59
60 protected:
61
62   
63   AliPHOSQAIntCheckable   * fQAHitsMul ;  // QA Hits Multiplicity checkable
64   TClonesArray * fQAHitsMulB ;        // QA Hits Multiplicity / Block checkable
65   AliPHOSQAFloatCheckable * fQATotEner ;  // QA Total Energy checkable
66   TClonesArray * fQATotEnerB ;        // QA Total Energy / Block checkable
67
68   ClassDef(AliPHOSv1,1)  // Implementation of PHOS manager class for layout EMC+PPSD
69
70 };
71
72 #endif // AliPHOSV1_H