3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 //_________________________________________________________________________
7 // Implementation version v1 of PHOS Manager class
8 // Layout EMC + PPSD has name GPS2
10 //*-- Author: Yves Schutz (SUBATECH)
12 // --- ROOT system ---
13 #include "TClonesArray.h"
15 // --- AliRoot header files ---
16 #include "AliPHOSv0.h"
17 #include "AliPHOSGeometry.h"
18 #include "AliPHOSReconstructioner.h"
19 #include "AliPHOSTrackSegmentMaker.h"
20 #include "AliPHOSPID.h"
22 class AliPHOSv1 : public AliPHOSv0 {
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
34 virtual ~AliPHOSv1(void) ;
36 virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) ;
37 Int_t Digitize(Float_t Energy);
38 virtual void FinishEvent(void) ;
39 Int_t IsVersion(void) const { return 1 ; }
40 virtual void MakeBranch(Option_t* opt) ;
41 virtual AliPHOSRecPoint::RecPointsList * PpsdRecPoints() {
42 // Getting list of PPSD RecPoints
43 return fPpsdRecPoints ;
45 void Reconstruction(AliPHOSReconstructioner * Reconstructioner) ;
46 void ResetClusters(){} ;
47 virtual void ResetDigits() ;
48 virtual void ResetReconstruction() ; // Reset reconstructed objects
49 void SetReconstructioner(AliPHOSReconstructioner& Reconstructioner) {
50 // sets the reconstructionner object to be used
51 fReconstructioner = &Reconstructioner ;
53 void SetDigitThreshold(Float_t th) { fDigitThreshold = th ; }
54 virtual void SetTreeAddress();
55 virtual void StepManager(void) ;
56 virtual TString Version(void){
57 // returns the version number
58 return TString("v1") ;
61 AliPHOSv1 & operator = (const AliPHOSv1 & rvalue) {
62 // assignement operator requested by coding convention
70 Float_t fDigitThreshold ; // Threshold for the digit registration
71 Int_t fNTmpHits ; //! Used internally for digitalization
72 Float_t fPinElectronicNoise ; // Electronic Noise in the PIN
73 AliPHOSRecPoint::RecPointsList * fPpsdRecPoints ; // The RecPoints (clusters) list in PPSD
74 AliPHOSReconstructioner * fReconstructioner ; // Reconstrutioner of the PHOS event: Clusterization and subtracking procedures
75 TClonesArray * fTmpHits ; //! Used internally for digitalization
76 AliPHOSTrackSegmentMaker * fTrackSegmentMaker ; // Reconstructioner of the PHOS track segment: 2 x PPSD + 1 x EMC
78 ClassDef(AliPHOSv1,1) // Implementation of PHOS manager class for layout EMC+PPSD