]>
Commit | Line | Data |
---|---|---|
9f616d61 | 1 | #ifndef ALIPHOSV0_H |
2 | #define ALIPHOSV0_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
b2a60966 | 6 | //_________________________________________________________________________ |
7 | // Implementation version v0 of PHOS Manager class | |
8 | // Layout EMC + PPSD has name GPS2 | |
9 | // | |
10 | //*-- Author: Yves Schutz (SUBATECH) | |
d15a28e7 | 11 | |
12 | // --- ROOT system --- | |
13 | #include "TClonesArray.h" | |
14 | ||
15 | // --- AliRoot header files --- | |
fe4da5cc | 16 | #include "AliPHOS.h" |
d15a28e7 | 17 | #include "AliPHOSGeometry.h" |
18 | #include "AliPHOSReconstructioner.h" | |
19 | #include "AliPHOSTrackSegmentMaker.h" | |
908558fc | 20 | #include "AliPHOSPID.h" |
d15a28e7 | 21 | |
22 | class AliPHOSv0 : public AliPHOS { | |
23 | ||
24 | public: | |
25 | ||
26 | AliPHOSv0(void) ; | |
27 | AliPHOSv0(const char *name, const char *title="") ; | |
6ad0bfa0 | 28 | AliPHOSv0(AliPHOSReconstructioner * Reconstructioner, const char *name, const char *title="") ; |
9f616d61 | 29 | virtual ~AliPHOSv0(void) ; |
d15a28e7 | 30 | |
ff4c968a | 31 | virtual void AddHit( Int_t primary, Int_t id, Float_t *hits ) ; // adds a pre-digitilized hit to the hit tree |
d15a28e7 | 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); | |
9f616d61 | 39 | RecPointsList* EmcClusters() {return fEmcClusters;} // gets TClonesArray of cluster in the crystals |
d15a28e7 | 40 | void FinishEvent(void) ; // makes the digits from the hits |
9f616d61 | 41 | virtual AliPHOSGeometry * GetGeometry() { return fGeom ; } |
d15a28e7 | 42 | virtual void Init(void) ; // does nothing |
9f616d61 | 43 | Int_t IsVersion(void) const { return 0 ; } |
d15a28e7 | 44 | void MakeBranch(Option_t* opt) ; |
6ad0bfa0 | 45 | RecPointsList* PpsdClusters() { return fPpsdClusters ; } // gets TClonesArray of clusters in the PPSD |
46 | void Reconstruction(AliPHOSReconstructioner * Reconstructioner) ; | |
47 | RecParticlesList * RecParticles() { return fRecParticles ; } // gets TClonesArray of reconstructed particles | |
d15a28e7 | 48 | void ResetClusters(){} ; |
9f616d61 | 49 | void SetReconstructioner(AliPHOSReconstructioner& Reconstructioner) {fReconstructioner = &Reconstructioner ;} |
3a6a7952 | 50 | void SetDigitThreshold(Float_t th) { fDigitThreshold = th ; } |
d15a28e7 | 51 | virtual void StepManager(void) ; // does the tracking through PHOS and a preliminary digitalization |
6ad0bfa0 | 52 | TrackSegmentsList * TrackSegments(){return fTrackSegments ;} |
9f616d61 | 53 | |
92862013 | 54 | protected: |
c198e326 | 55 | |
b2a60966 | 56 | Float_t fDigitThreshold ; // Threshold for the digit registration |
57 | RecPointsList * fEmcClusters ; // The RecPoints (clusters) list in EMC | |
58 | AliPHOSGeometry * fGeom ; // Geometry definition | |
59 | Int_t fNTmpHits ; //! Used internally for digitalization | |
60 | Float_t fPinElectronicNoise ; // Electronic Noise in the PIN | |
61 | RecPointsList * fPpsdClusters ; // The RecPoints (clusters) list in PPSD | |
62 | AliPHOSReconstructioner * fReconstructioner ; // Reconstrutioner of the PHOS event: Clusterization and subtracking procedures | |
63 | TClonesArray * fTmpHits ; //! Used internally for digitalization | |
c198e326 | 64 | AliPHOSTrackSegmentMaker * fTrackSegmentMaker ; // Reconstructioner of the PHOS track segment: 2 x PPSD + 1 x EMC |
b2a60966 | 65 | TrackSegmentsList * fTrackSegments ; // The TrackSegment list in PHOS |
66 | RecParticlesList * fRecParticles ; // The reconstructed particles list in PHOS | |
9f616d61 | 67 | |
b2a60966 | 68 | ClassDef(AliPHOSv0,1) // Implementation of PHOS manager class for layout EMC+PPSD |
fe4da5cc | 69 | |
fe4da5cc | 70 | }; |
fe4da5cc | 71 | |
9f616d61 | 72 | #endif // AliPHOSV0_H |