]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSv1.h
new naming of the AliPHOS versions
[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 //                  
10 //*-- Author: Yves Schutz (SUBATECH)
11
12 // --- ROOT system ---
13 #include "TClonesArray.h"
14
15 // --- AliRoot header files ---
16 #include "AliPHOSv0.h"
17 #include "AliPHOSGeometry.h"
18 #include "AliPHOSReconstructioner.h"
19 #include "AliPHOSTrackSegmentMaker.h"
20 #include "AliPHOSPID.h"
21
22 class AliPHOSv1 : public AliPHOSv0 {
23
24 public:
25
26   AliPHOSv1(void) ;
27   AliPHOSv1(const char *name, const char *title="") ;
28   AliPHOSv1(AliPHOSReconstructioner * Reconstructioner, const char *name, const char *title="") ;
29   AliPHOSv1(const AliPHOSv1 & phos) {
30     // cpy ctor: no implementation yet
31     // requested by the Coding Convention
32     assert(0==1) ; 
33   }
34  
35   virtual ~AliPHOSv1(void) ;
36
37   virtual void   AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) ; 
38          // adds a pre-digitilized hit to the hit tree 
39   Int_t          Digitize(Float_t Energy);
40   virtual void   FinishEvent(void) ;                                // makes the digits from the hits 
41   Int_t IsVersion(void) const { return 1 ; }
42   virtual void   MakeBranch(Option_t* opt) ;
43   virtual  AliPHOSRecPoint::RecPointsList *  PpsdRecPoints() {
44     // Getting list of PPSD RecPoints
45     return fPpsdRecPoints ;
46   }
47   void           Reconstruction(AliPHOSReconstructioner * Reconstructioner) ;
48   void           ResetClusters(){} ;
49   virtual void   ResetDigits() ; 
50   virtual void   ResetReconstruction() ; // Reset reconstructed objects
51   void           SetReconstructioner(AliPHOSReconstructioner& Reconstructioner) {fReconstructioner = &Reconstructioner ;} 
52   void           SetDigitThreshold(Float_t th) { fDigitThreshold = th ; } 
53   virtual void   SetTreeAddress(); 
54   virtual void   StepManager(void) ;                                // does the tracking through PHOS and a preliminary digitalization
55   virtual TString Version(void){ return TString("v1"); }
56
57   AliPHOSv1 & operator = (const AliPHOSv1 & rvalue)  {
58     // assignement operator requested by coding convention
59     // but not needed
60     assert(0==1) ;
61     return *this ; 
62   }
63
64 protected:
65
66   Float_t fDigitThreshold ;                       // Threshold for the digit registration 
67   Int_t fNTmpHits ;                               //!  Used internally for digitalization
68   Float_t fPinElectronicNoise  ;                  // Electronic Noise in the PIN
69   AliPHOSRecPoint::RecPointsList * fPpsdRecPoints ; // The RecPoints (clusters) list in PPSD 
70   AliPHOSReconstructioner * fReconstructioner ;   // Reconstrutioner of the PHOS event: Clusterization and subtracking procedures
71   TClonesArray * fTmpHits ;                       //!  Used internally for digitalization 
72   AliPHOSTrackSegmentMaker * fTrackSegmentMaker ; // Reconstructioner of the PHOS track segment: 2 x PPSD + 1 x EMC
73
74   ClassDef(AliPHOSv1,1)  // Implementation of PHOS manager class for layout EMC+PPSD
75
76 };
77
78 #endif // AliPHOSV1_H