Merged ITS-working with HEAD. Improved some of the documentation and
[u/mrichter/AliRoot.git] / PHOS / AliPHOSv0.h
CommitLineData
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
d15a28e7 6////////////////////////////////////////////////
d15a28e7 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 ---
fe4da5cc 18#include "AliPHOS.h"
d15a28e7 19#include "AliPHOSGeometry.h"
20#include "AliPHOSReconstructioner.h"
21#include "AliPHOSTrackSegmentMaker.h"
908558fc 22#include "AliPHOSPID.h"
d15a28e7 23
24class AliPHOSv0 : public AliPHOS {
25
26public:
27
28 AliPHOSv0(void) ;
29 AliPHOSv0(const char *name, const char *title="") ;
6ad0bfa0 30 AliPHOSv0(AliPHOSReconstructioner * Reconstructioner, const char *name, const char *title="") ;
9f616d61 31 virtual ~AliPHOSv0(void) ;
d15a28e7 32
ff4c968a 33 virtual void AddHit( Int_t primary, Int_t id, Float_t *hits ) ; // adds a pre-digitilized hit to the hit tree
d15a28e7 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);
9f616d61 41 RecPointsList* EmcClusters() {return fEmcClusters;} // gets TClonesArray of cluster in the crystals
d15a28e7 42 void FinishEvent(void) ; // makes the digits from the hits
9f616d61 43 virtual AliPHOSGeometry * GetGeometry() { return fGeom ; }
d15a28e7 44 virtual void Init(void) ; // does nothing
9f616d61 45 Int_t IsVersion(void) const { return 0 ; }
d15a28e7 46 void MakeBranch(Option_t* opt) ;
6ad0bfa0 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
d15a28e7 50 void ResetClusters(){} ;
9f616d61 51 void SetReconstructioner(AliPHOSReconstructioner& Reconstructioner) {fReconstructioner = &Reconstructioner ;}
3a6a7952 52 void SetDigitThreshold(Float_t th) { fDigitThreshold = th ; }
d15a28e7 53 virtual void StepManager(void) ; // does the tracking through PHOS and a preliminary digitalization
6ad0bfa0 54 TrackSegmentsList * TrackSegments(){return fTrackSegments ;}
9f616d61 55
92862013 56protected:
c198e326 57
3a6a7952 58 Float_t fDigitThreshold ; // Threshold for the digit registration
c198e326 59 RecPointsList * fEmcClusters ; // The RecPoints (clusters) list in EMC
9f616d61 60 AliPHOSGeometry * fGeom ; // geometry definition
61 Int_t fNTmpHits ; //! used internally for digitalization
3a6a7952 62 Float_t fPinElectronicNoise ; // Electronic Noise in the PIN
c198e326 63 RecPointsList * fPpsdClusters ; // The RecPoints (clusters) list in PPSD
d15a28e7 64 AliPHOSReconstructioner * fReconstructioner ; // Reconstrutioner of the PHOS event: Clusterization and subtracking procedures
c198e326 65 TClonesArray * fTmpHits ; //! used internally for digitalization
66 AliPHOSTrackSegmentMaker * fTrackSegmentMaker ; // Reconstructioner of the PHOS track segment: 2 x PPSD + 1 x EMC
67 TrackSegmentsList * fTrackSegments ; // The TrackSegment list in PHOS
68 RecParticlesList * fRecParticles ; // The reconstructed particles list in PHOS
9f616d61 69
d15a28e7 70 ClassDef(AliPHOSv0,1) // PHOS main class , version subatech
fe4da5cc 71
fe4da5cc 72};
fe4da5cc 73
9f616d61 74#endif // AliPHOSV0_H