]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSv0.h
Full PID delegated to AliPHOSPID
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv0.h
1 #ifndef ALIPHOSV0_H
2 #define ALIPHOSV0_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 ////////////////////////////////////////////////
7 //  Manager class  for PHOS                   //
8 //  Version SUBATECH                          //
9 //  Author  Y. Schutz SUBATECH                //
10 //       geometry parametrized for any        //  
11 //       shape of modules                     //
12 ////////////////////////////////////////////////
13
14 // --- ROOT system ---
15 #include "TClonesArray.h"
16
17 // --- AliRoot header files ---
18 #include "AliPHOS.h"
19 #include "AliPHOSGeometry.h"
20 #include "AliPHOSReconstructioner.h"
21 #include "AliPHOSTrackSegmentMaker.h"
22 #include "AliPHOSPID.h"
23
24 class AliPHOSv0 : public AliPHOS {
25
26 public:
27
28   AliPHOSv0(void) ;
29   AliPHOSv0(const char *name, const char *title="") ;
30   AliPHOSv0(AliPHOSReconstructioner * Reconstructioner, const char *name, const char *title="") ;
31   virtual ~AliPHOSv0(void) ;
32
33   virtual void   AddHit( Int_t primary, Int_t id, Float_t *hits ) ; // adds a pre-digitilized hit to the hit tree 
34   virtual void   BuildGeometry(void) ;                              // creates the geometry for the ROOT display
35   void           BuildGeometryforPHOS(void) ;                       // creates the PHOS geometry for the ROOT display
36   void           BuildGeometryforPPSD(void) ;                       // creates the PPSD geometry for the ROOT display
37   virtual void   CreateGeometry(void) ;                             // creates the geometry for GEANT
38   void           CreateGeometryforPHOS(void) ;                      // creates the PHOS geometry for GEANT
39   void           CreateGeometryforPPSD(void) ;                      // creates the PPSD geometry for GEANT
40   Int_t          Digitize(Float_t Energy);
41   RecPointsList* EmcClusters() {return fEmcClusters;}               // gets TClonesArray of cluster in the crystals 
42   void           FinishEvent(void) ;                                // makes the digits from the hits 
43   virtual AliPHOSGeometry * GetGeometry() { return fGeom ; }  
44   virtual void   Init(void) ;                                       // does nothing
45   Int_t IsVersion(void) const { return 0 ; }
46   void           MakeBranch(Option_t* opt) ;
47   RecPointsList* PpsdClusters() { return fPpsdClusters ; }          // gets TClonesArray of clusters in the PPSD 
48   void           Reconstruction(AliPHOSReconstructioner * Reconstructioner) ;
49   RecParticlesList * RecParticles() { return fRecParticles ; }      // gets TClonesArray of reconstructed particles
50   void           ResetClusters(){} ;
51   void           SetReconstructioner(AliPHOSReconstructioner& Reconstructioner) {fReconstructioner = &Reconstructioner ;} 
52   virtual void   StepManager(void) ;                                // does the tracking through PHOS and a preliminary digitalization
53   TrackSegmentsList *    TrackSegments(){return fTrackSegments ;}
54   
55 protected:
56   Float_t fPINElectronicNoise  ;         // Electronic Noise in the PIN
57   RecPointsList * fEmcClusters ;        //!  (!=do not stream)
58   AliPHOSGeometry * fGeom ;             // geometry definition
59   Int_t fNTmpHits ;                     //!  used internally for digitalization
60   RecPointsList * fPpsdClusters ;       //!
61   AliPHOSReconstructioner * fReconstructioner ; // Reconstrutioner of the PHOS event: Clusterization and subtracking procedures
62   TClonesArray * fTmpHits ;             //!  idem
63   AliPHOSTrackSegmentMaker * fTrackSegmentMaker ;
64   TrackSegmentsList * fTrackSegments ;  //! idem
65   RecParticlesList * fRecParticles ;    //! idem
66
67   ClassDef(AliPHOSv0,1)  // PHOS main class , version subatech
68
69 };
70
71 #endif // AliPHOSV0_H