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