]>
Commit | Line | Data |
---|---|---|
d15a28e7 | 1 | #ifndef ALIPHOS_H |
2 | #define ALIPHOS_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
6ad0bfa0 | 4 | * See cxx source for full Copyright notice */ |
6ad0bfa0 | 5 | /* $Id$ */ |
3da30618 | 6 | |
b2a60966 | 7 | //_________________________________________________________________________ |
8 | // Base Class for PHOS | |
783fdef6 | 9 | // PHOS consists of a PbWO4 calorimeter (EMCA) and a gazeous charged |
10 | // particles detector (CPV or PPSD). | |
11 | // The only provided method here is CreateMaterials, | |
12 | // which defines the materials common to all PHOS versions. | |
b2a60966 | 13 | // |
14 | //*-- Author: Laurent Aphecetche & Yves Schutz (SUBATECH) | |
fe4da5cc | 15 | |
d15a28e7 | 16 | // --- ROOT system --- |
0e4b7936 | 17 | |
18 | class TString ; | |
fe4da5cc | 19 | |
d15a28e7 | 20 | // --- AliRoot header files --- |
fe4da5cc | 21 | |
0e4b7936 | 22 | #include "AliDetector.h" |
23 | class AliPHOSGeometry ; | |
fe4da5cc | 24 | |
25 | class AliPHOS : public AliDetector { | |
26 | ||
27 | public: | |
28 | ||
783fdef6 | 29 | AliPHOS(); |
30 | AliPHOS(const char* name, const char* title=""); | |
839ffcb3 | 31 | AliPHOS(const AliPHOS & phos) { |
32 | // cpy ctor: no implementation yet | |
33 | // requested by the Coding Convention | |
0e4b7936 | 34 | abort() ; |
839ffcb3 | 35 | } |
0e4b7936 | 36 | virtual ~AliPHOS() {} |
0a6d52e3 | 37 | virtual void AddHit(Int_t, Int_t*, Float_t *) { |
0e4b7936 | 38 | // do not use this definition but the one below |
39 | abort() ; | |
0a6d52e3 | 40 | } |
88bdfa12 | 41 | virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) = 0 ; |
9abb6731 | 42 | virtual void CreateMaterials() ; |
783fdef6 | 43 | virtual AliPHOSGeometry * GetGeometry() const = 0 ; |
ed4205d8 | 44 | |
ad8cfaf4 | 45 | Int_t IsVersion(void) const { return -1 ; } |
0e4b7936 | 46 | virtual void SetTreeAddress(); |
7c67e406 | 47 | virtual TString Version() {return TString(" ") ; } |
839ffcb3 | 48 | |
49 | AliPHOS & operator = (const AliPHOS & rvalue) { | |
783fdef6 | 50 | // assignement operator requested by coding convention but not needed |
0e4b7936 | 51 | abort() ; |
839ffcb3 | 52 | return *this ; |
53 | } | |
54 | ||
b73f246d | 55 | protected: |
fe4da5cc | 56 | |
b2a60966 | 57 | ClassDef(AliPHOS,2) // Photon Spectrometer Detector (base class) |
fe4da5cc | 58 | |
d15a28e7 | 59 | } ; |
fe4da5cc | 60 | |
d15a28e7 | 61 | #endif // ALIPHOS_H |