]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOS.h
new design: digits are not data members of AliPHOS anymore (use IndexToObject)
[u/mrichter/AliRoot.git] / PHOS / AliPHOS.h
CommitLineData
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
9//
10//*-- Author: Laurent Aphecetche & Yves Schutz (SUBATECH)
fe4da5cc 11
d15a28e7 12// --- ROOT system ---
0e4b7936 13
14class TString ;
fe4da5cc 15
d15a28e7 16// --- AliRoot header files ---
fe4da5cc 17
0e4b7936 18#include "AliDetector.h"
19class AliPHOSGeometry ;
fe4da5cc 20
21class AliPHOS : public AliDetector {
22
23 public:
24
0e4b7936 25 AliPHOS() {}
26 AliPHOS(const char* name, const char* title="") {}
839ffcb3 27 AliPHOS(const AliPHOS & phos) {
28 // cpy ctor: no implementation yet
29 // requested by the Coding Convention
0e4b7936 30 abort() ;
839ffcb3 31 }
0e4b7936 32 virtual ~AliPHOS() {}
0a6d52e3 33 virtual void AddHit(Int_t, Int_t*, Float_t *) {
0e4b7936 34 // do not use this definition but the one below
35 abort() ;
0a6d52e3 36 }
88bdfa12 37 virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) = 0 ;
9abb6731 38 virtual void CreateMaterials() ;
9abb6731 39 virtual AliPHOSGeometry * GetGeometry() = 0 ;
ed4205d8 40
ad8cfaf4 41 Int_t IsVersion(void) const { return -1 ; }
0e4b7936 42 virtual void SetTreeAddress();
7c67e406 43 virtual TString Version() {return TString(" ") ; }
839ffcb3 44
45 AliPHOS & operator = (const AliPHOS & rvalue) {
46 // assignement operator requested by coding convention
47 // but not needed
0e4b7936 48 abort() ;
839ffcb3 49 return *this ;
50 }
51
b73f246d 52protected:
fe4da5cc 53
b2a60966 54 ClassDef(AliPHOS,2) // Photon Spectrometer Detector (base class)
fe4da5cc 55
d15a28e7 56} ;
fe4da5cc 57
d15a28e7 58#endif // ALIPHOS_H