Made the typedef public
[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
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
22class AliPHOSv0 : public AliPHOS {
23
24public:
25
26 AliPHOSv0(void) ;
27 AliPHOSv0(const char *name, const char *title="") ;
6ad0bfa0 28 AliPHOSv0(AliPHOSReconstructioner * Reconstructioner, const char *name, const char *title="") ;
839ffcb3 29 AliPHOSv0(const AliPHOSv0 & phos) {
30 // cpy ctor: no implementation yet
31 // requested by the Coding Convention
32 assert(0==1) ;
33 }
34
9f616d61 35 virtual ~AliPHOSv0(void) ;
d15a28e7 36
ff4c968a 37 virtual void AddHit( Int_t primary, Int_t id, Float_t *hits ) ; // adds a pre-digitilized hit to the hit tree
d15a28e7 38 virtual void BuildGeometry(void) ; // creates the geometry for the ROOT display
39 void BuildGeometryforPHOS(void) ; // creates the PHOS geometry for the ROOT display
40 void BuildGeometryforPPSD(void) ; // creates the PPSD geometry for the ROOT display
41 virtual void CreateGeometry(void) ; // creates the geometry for GEANT
42 void CreateGeometryforPHOS(void) ; // creates the PHOS geometry for GEANT
43 void CreateGeometryforPPSD(void) ; // creates the PPSD geometry for GEANT
44 Int_t Digitize(Float_t Energy);
d15a28e7 45 void FinishEvent(void) ; // makes the digits from the hits
9f616d61 46 virtual AliPHOSGeometry * GetGeometry() { return fGeom ; }
d15a28e7 47 virtual void Init(void) ; // does nothing
9f616d61 48 Int_t IsVersion(void) const { return 0 ; }
d15a28e7 49 void MakeBranch(Option_t* opt) ;
2803f284 50 virtual AliPHOSRecPoint::RecPointsList * PpsdRecPoints() {
51 // Getting list of PPSD RecPoints
52 return fPpsdRecPoints ;
53 }
6ad0bfa0 54 void Reconstruction(AliPHOSReconstructioner * Reconstructioner) ;
d15a28e7 55 void ResetClusters(){} ;
83974468 56 virtual void ResetDigits() ;
07a64e48 57 virtual void ResetReconstruction() ; // Reset reconstructed objects
9f616d61 58 void SetReconstructioner(AliPHOSReconstructioner& Reconstructioner) {fReconstructioner = &Reconstructioner ;}
3a6a7952 59 void SetDigitThreshold(Float_t th) { fDigitThreshold = th ; }
2803f284 60 virtual void SetTreeAddress();
d15a28e7 61 virtual void StepManager(void) ; // does the tracking through PHOS and a preliminary digitalization
9110b6c7 62 virtual TString Version(void){ return TString("v0"); }
a542e108 63
839ffcb3 64 AliPHOSv0 & operator = (const AliPHOSv0 & rvalue) {
65 // assignement operator requested by coding convention
66 // but not needed
67 assert(0==1) ;
68 return *this ;
69 }
70
92862013 71protected:
c198e326 72
b2a60966 73 Float_t fDigitThreshold ; // Threshold for the digit registration
b2a60966 74 AliPHOSGeometry * fGeom ; // Geometry definition
75 Int_t fNTmpHits ; //! Used internally for digitalization
76 Float_t fPinElectronicNoise ; // Electronic Noise in the PIN
191c1c41 77 AliPHOSRecPoint::RecPointsList * fPpsdRecPoints ; // The RecPoints (clusters) list in PPSD
b2a60966 78 AliPHOSReconstructioner * fReconstructioner ; // Reconstrutioner of the PHOS event: Clusterization and subtracking procedures
79 TClonesArray * fTmpHits ; //! Used internally for digitalization
c198e326 80 AliPHOSTrackSegmentMaker * fTrackSegmentMaker ; // Reconstructioner of the PHOS track segment: 2 x PPSD + 1 x EMC
9f616d61 81
b2a60966 82 ClassDef(AliPHOSv0,1) // Implementation of PHOS manager class for layout EMC+PPSD
fe4da5cc 83
fe4da5cc 84};
fe4da5cc 85
9f616d61 86#endif // AliPHOSV0_H