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