]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - PHOS/AliPHOSv0.h
Copy constructor is corrected (by T.P.)
[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 + CPV has name IHEP
9//*--
10//*-- Author: Yves Schutz (SUBATECH)
11
12// --- ROOT system ---
13
14class TFile;
15class TFolder;
16
17// --- AliRoot header files ---
18#include "AliPHOS.h"
19
20class AliPHOSv0 : public AliPHOS {
21
22 public:
23
24 AliPHOSv0() {}
25 AliPHOSv0(const char *name, const char *title="") ;
26 AliPHOSv0(AliPHOSv0 & phos) : AliPHOS(phos) {
27 phos.Copy(*this) ;
28 }
29 virtual ~AliPHOSv0(void){
30 // dtor
31 }
32 virtual void Copy(AliPHOSv0 & phos) ;
33
34// virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) {
35 virtual void AddHit( Int_t, Int_t, Int_t, Int_t, Float_t*) {
36 // useless since there are no hits
37 Fatal("AddHit", "not to be used with v0") ;
38 }
39 virtual void BuildGeometry(void) ; // creates the geometry for the ROOT display
40 void BuildGeometryforEMC(void) ; // creates the PHOS geometry for the ROOT display
41 // void BuildGeometryforPPSD(void) ; // creates the PPSD geometry for the ROOT display
42 void BuildGeometryforCPV(void) ; // creates the CPV geometry for the ROOT display
43 virtual void CreateGeometry(void) ; // creates the geometry for GEANT
44 void CreateGeometryforEMC(void) ; // creates the PHOS geometry for GEANT
45 // void CreateGeometryforPPSD(void) ; // creates the PPSD geometry for GEANT
46 void CreateGeometryforCPV(void) ; // creates the CPV geometry for GEANT
47 void CreateGeometryforSupport(void) ; // creates the Support geometry for GEANT
48 virtual Float_t ZMin() const; // overall dimension of the module (min)
49 virtual Float_t ZMax() const; // overall dimension of the module (max)
50
51 virtual void Init(void) ; // does nothing
52 virtual Int_t IsVersion(void) const {
53 // Gives the version number
54 return 0 ;
55 }
56 virtual const TString Version(void)const {
57 // As above
58 return TString("v0") ;
59 }
60
61 AliPHOSv0 & operator = (const AliPHOSv0 & /*rvalue*/) {
62 // assignement operator requested by coding convention but not needed
63 Fatal("operator =", "not implemented") ;
64 return *this ;
65 }
66
67 protected:
68
69
70 ClassDef(AliPHOSv0,1) // Implementation of PHOS manager class for layout EMC+PPSD
71
72 };
73
74#endif // AliPHOSV0_H