]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSv0.h
Corrections for gcc 4.0
[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
702ab87e 6/* $Id$ */
7
8/* History of cvs commits:
9 *
10 * $Log$
11 */
12
b2a60966 13//_________________________________________________________________________
14// Implementation version v0 of PHOS Manager class
a3dfe79c 15// Layout EMC + CPV has name IHEP
16//*--
b2a60966 17//*-- Author: Yves Schutz (SUBATECH)
d15a28e7 18
19// --- ROOT system ---
d15a28e7 20
2ab0c725 21class TFile;
fa7cce36 22class TFolder;
2ab0c725 23
d15a28e7 24// --- AliRoot header files ---
fe4da5cc 25#include "AliPHOS.h"
d15a28e7 26
27class AliPHOSv0 : public AliPHOS {
28
1c7b564f 29 public:
d15a28e7 30
fa7cce36 31 AliPHOSv0() {}
d15a28e7 32 AliPHOSv0(const char *name, const char *title="") ;
780fda6d 33 AliPHOSv0(AliPHOSv0 & phos) : AliPHOS(phos) {
34 phos.Copy(*this) ;
5f20d3fb 35 }
36 virtual ~AliPHOSv0(void){
37 // dtor
38 }
702ab87e 39 virtual void Copy(TObject &phos) const;
d15a28e7 40
a8c47ab6 41// virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) {
702ab87e 42 //this function is not a final-overrider for AliPHOS::AddHit, to
43 //supress warning, I use using-declaration :)
44 using AliPHOS::AddHit;
a8c47ab6 45 virtual void AddHit( Int_t, Int_t, Int_t, Int_t, Float_t*) {
f78d91b7 46 // useless since there are no hits
f1611b7c 47 Fatal("AddHit", "not to be used with v0") ;
f78d91b7 48 }
ed4205d8 49 virtual void BuildGeometry(void) ; // creates the geometry for the ROOT display
85218d13 50 void BuildGeometryforEMC(void) ; // creates the PHOS geometry for the ROOT display
51 // void BuildGeometryforPPSD(void) ; // creates the PPSD geometry for the ROOT display
ed4205d8 52 void BuildGeometryforCPV(void) ; // creates the CPV geometry for the ROOT display
53 virtual void CreateGeometry(void) ; // creates the geometry for GEANT
85218d13 54 void CreateGeometryforEMC(void) ; // creates the PHOS geometry for GEANT
55 // void CreateGeometryforPPSD(void) ; // creates the PPSD geometry for GEANT
ed4205d8 56 void CreateGeometryforCPV(void) ; // creates the CPV geometry for GEANT
57 void CreateGeometryforSupport(void) ; // creates the Support geometry for GEANT
58 virtual Float_t ZMin() const; // overall dimension of the module (min)
59 virtual Float_t ZMax() const; // overall dimension of the module (max)
60
fa7cce36 61 virtual void Init(void) ; // does nothing
e04976bd 62 virtual Int_t IsVersion(void) const {
f78d91b7 63 // Gives the version number
64 return 0 ;
65 }
bd46a237 66 virtual const TString Version(void)const {
f78d91b7 67 // As above
68 return TString("v0") ;
69 }
5f20d3fb 70
8c140292 71 AliPHOSv0 & operator = (const AliPHOSv0 & /*rvalue*/) {
a3dfe79c 72 // assignement operator requested by coding convention but not needed
f1611b7c 73 Fatal("operator =", "not implemented") ;
839ffcb3 74 return *this ;
75 }
5f20d3fb 76
77 protected:
78
fa7cce36 79
b2a60966 80 ClassDef(AliPHOSv0,1) // Implementation of PHOS manager class for layout EMC+PPSD
5f20d3fb 81
82 };
83
9f616d61 84#endif // AliPHOSV0_H