3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 ////////////////////////////////////////////////
7 // Manager class for PHOS //
9 // Author Y. Schutz SUBATECH //
10 // geometry parametrized for any //
11 // shape of modules //
12 ////////////////////////////////////////////////
14 // --- ROOT system ---
15 #include "TClonesArray.h"
17 // --- AliRoot header files ---
19 #include "AliPHOSGeometry.h"
20 #include "AliPHOSReconstructioner.h"
21 #include "AliPHOSTrackSegmentMaker.h"
23 class AliPHOSv0 : public AliPHOS {
28 AliPHOSv0(const char *name, const char *title="") ;
29 AliPHOSv0(AliPHOSReconstructioner& Reconstructioner, const char *name, const char *title="") ;
30 virtual ~AliPHOSv0(void) ;
32 virtual void AddHit( Int_t track, Int_t id, Float_t *hits ) ; // adds a pre-digitilized hit to the hit tree
33 virtual void BuildGeometry(void) ; // creates the geometry for the ROOT display
34 void BuildGeometryforPHOS(void) ; // creates the PHOS geometry for the ROOT display
35 void BuildGeometryforPPSD(void) ; // creates the PPSD geometry for the ROOT display
36 virtual void CreateGeometry(void) ; // creates the geometry for GEANT
37 void CreateGeometryforPHOS(void) ; // creates the PHOS geometry for GEANT
38 void CreateGeometryforPPSD(void) ; // creates the PPSD geometry for GEANT
39 Int_t Digitize(Float_t Energy);
40 RecPointsList* EmcClusters() {return fEmcClusters;} // gets TClonesArray of cluster in the crystals
41 void FinishEvent(void) ; // makes the digits from the hits
42 virtual AliPHOSGeometry * GetGeometry() { return fGeom ; }
43 virtual void Init(void) ; // does nothing
44 Int_t IsVersion(void) const { return 0 ; }
45 void MakeBranch(Option_t* opt) ;
46 RecPointsList* PpsdClusters() {return fPpsdClusters;} // gets TClonesArray of clusters in the PPSD
47 void Reconstruction(AliPHOSReconstructioner& Reconstructioner) ;
48 void ResetClusters(){} ;
49 void SetReconstructioner(AliPHOSReconstructioner& Reconstructioner) {fReconstructioner = &Reconstructioner ;}
50 virtual void StepManager(void) ; // does the tracking through PHOS and a preliminary digitalization
51 TObjArray * TrackSegments(){return fTrackSegments ;}
55 RecPointsList * fEmcClusters ; //! (!=do not stream)
56 AliPHOSGeometry * fGeom ; // geometry definition
57 Int_t fNTmpHits ; //! used internally for digitalization
58 RecPointsList * fPpsdClusters ; //!
59 AliPHOSReconstructioner * fReconstructioner ; // Reconstrutioner of the PHOS event: Clusterization and subtracking procedures
60 TClonesArray * fTmpHits ; //! idem
61 AliPHOSTrackSegmentMaker * fTrackSegmentMaker ;
62 TObjArray * fTrackSegments ; //!
66 ClassDef(AliPHOSv0,1) // PHOS main class , version subatech