3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 //_________________________________________________________________________
7 // Implementation version v0 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 ---
17 #include "AliPHOSGeometry.h"
18 #include "AliPHOSReconstructioner.h"
19 #include "AliPHOSTrackSegmentMaker.h"
20 #include "AliPHOSPID.h"
22 class AliPHOSv0 : public AliPHOS {
27 AliPHOSv0(const char *name, const char *title="") ;
28 AliPHOSv0(AliPHOSReconstructioner * Reconstructioner, const char *name, const char *title="") ;
29 virtual ~AliPHOSv0(void) ;
31 virtual void AddHit( Int_t primary, Int_t id, Float_t *hits ) ; // adds a pre-digitilized hit to the hit tree
32 virtual void BuildGeometry(void) ; // creates the geometry for the ROOT display
33 void BuildGeometryforPHOS(void) ; // creates the PHOS geometry for the ROOT display
34 void BuildGeometryforPPSD(void) ; // creates the PPSD geometry for the ROOT display
35 virtual void CreateGeometry(void) ; // creates the geometry for GEANT
36 void CreateGeometryforPHOS(void) ; // creates the PHOS geometry for GEANT
37 void CreateGeometryforPPSD(void) ; // creates the PPSD geometry for GEANT
38 Int_t Digitize(Float_t Energy);
39 void FinishEvent(void) ; // makes the digits from the hits
40 virtual AliPHOSGeometry * GetGeometry() { return fGeom ; }
41 virtual void Init(void) ; // does nothing
42 Int_t IsVersion(void) const { return 0 ; }
43 void MakeBranch(Option_t* opt) ;
44 virtual RecPointsList* PpsdRecPoints(Int_t evt=0) ; // gets Array of clusters in the PPSD
45 void Reconstruction(AliPHOSReconstructioner * Reconstructioner) ;
46 void ResetClusters(){} ;
47 virtual void ResetDigits() ;
48 void SetReconstructioner(AliPHOSReconstructioner& Reconstructioner) {fReconstructioner = &Reconstructioner ;}
49 void SetDigitThreshold(Float_t th) { fDigitThreshold = th ; }
50 virtual void StepManager(void) ; // does the tracking through PHOS and a preliminary digitalization
51 virtual TString Version(void){ return TString("v0"); }
54 Float_t fDigitThreshold ; // Threshold for the digit registration
55 AliPHOSGeometry * fGeom ; // Geometry definition
56 Int_t fNTmpHits ; //! Used internally for digitalization
57 Float_t fPinElectronicNoise ; // Electronic Noise in the PIN
58 RecPointsList * fPpsdRecPoints ; // The RecPoints (clusters) list in PPSD
59 AliPHOSReconstructioner * fReconstructioner ; // Reconstrutioner of the PHOS event: Clusterization and subtracking procedures
60 TClonesArray * fTmpHits ; //! Used internally for digitalization
61 AliPHOSTrackSegmentMaker * fTrackSegmentMaker ; // Reconstructioner of the PHOS track segment: 2 x PPSD + 1 x EMC
63 ClassDef(AliPHOSv0,1) // Implementation of PHOS manager class for layout EMC+PPSD