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