]>
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 | |
a3dfe79c | 9 | // Layout EMC + CPV has name IHEP |
10 | //*-- | |
b2a60966 | 11 | //*-- Author: Yves Schutz (SUBATECH) |
d15a28e7 | 12 | |
13 | // --- ROOT system --- | |
d15a28e7 | 14 | |
2ab0c725 | 15 | class TFile; |
16 | ||
d15a28e7 | 17 | // --- AliRoot header files --- |
fe4da5cc | 18 | #include "AliPHOS.h" |
d15a28e7 | 19 | |
20 | class AliPHOSv0 : public AliPHOS { | |
21 | ||
1c7b564f | 22 | public: |
d15a28e7 | 23 | |
f78d91b7 | 24 | AliPHOSv0() { |
25 | //ctor | |
bb05128a | 26 | fGeom=0; |
f78d91b7 | 27 | } |
d15a28e7 | 28 | AliPHOSv0(const char *name, const char *title="") ; |
839ffcb3 | 29 | AliPHOSv0(const AliPHOSv0 & phos) { |
30 | // cpy ctor: no implementation yet | |
31 | // requested by the Coding Convention | |
13add4de | 32 | abort() ; |
5f20d3fb | 33 | } |
34 | virtual ~AliPHOSv0(void){ | |
35 | // dtor | |
36 | } | |
d15a28e7 | 37 | |
f78d91b7 | 38 | virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) { |
39 | // useless since there are no hits | |
13add4de | 40 | abort() ; |
f78d91b7 | 41 | } |
ed4205d8 | 42 | virtual void BuildGeometry(void) ; // creates the geometry for the ROOT display |
43 | void BuildGeometryforPHOS(void) ; // creates the PHOS geometry for the ROOT display | |
44 | void BuildGeometryforPPSD(void) ; // creates the PPSD geometry for the ROOT display | |
45 | void BuildGeometryforCPV(void) ; // creates the CPV geometry for the ROOT display | |
46 | virtual void CreateGeometry(void) ; // creates the geometry for GEANT | |
47 | void CreateGeometryforPHOS(void) ; // creates the PHOS geometry for GEANT | |
48 | void CreateGeometryforPPSD(void) ; // creates the PPSD geometry for GEANT | |
49 | void CreateGeometryforCPV(void) ; // creates the CPV geometry for GEANT | |
50 | void CreateGeometryforSupport(void) ; // creates the Support geometry for GEANT | |
51 | virtual Float_t ZMin() const; // overall dimension of the module (min) | |
52 | virtual Float_t ZMax() const; // overall dimension of the module (max) | |
53 | ||
f78d91b7 | 54 | virtual AliPHOSGeometry * GetGeometry() { |
55 | // gets the pointer to the AliPHOSGeometry unique instance | |
56 | return fGeom ; | |
57 | } | |
d15a28e7 | 58 | virtual void Init(void) ; // does nothing |
e04976bd | 59 | virtual Int_t IsVersion(void) const { |
f78d91b7 | 60 | // Gives the version number |
61 | return 0 ; | |
62 | } | |
63 | virtual TString Version(void){ | |
64 | // As above | |
65 | return TString("v0") ; | |
66 | } | |
5f20d3fb | 67 | |
839ffcb3 | 68 | AliPHOSv0 & operator = (const AliPHOSv0 & rvalue) { |
a3dfe79c | 69 | // assignement operator requested by coding convention but not needed |
13add4de | 70 | abort() ; |
839ffcb3 | 71 | return *this ; |
72 | } | |
5f20d3fb | 73 | |
74 | protected: | |
75 | ||
b2a60966 | 76 | AliPHOSGeometry * fGeom ; // Geometry definition |
5f20d3fb | 77 | |
b2a60966 | 78 | ClassDef(AliPHOSv0,1) // Implementation of PHOS manager class for layout EMC+PPSD |
5f20d3fb | 79 | |
80 | }; | |
81 | ||
9f616d61 | 82 | #endif // AliPHOSV0_H |