04-jul-2001 NvE Storage of calorimeters introduced in AliEvent and ResetVertices()
[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
fdeead01 12#include <stdlib.h>
13
d15a28e7 14// --- ROOT system ---
0e4b7936 15
16class TString ;
7b326aac 17class TTask ;
fa7cce36 18class TFolder ;
fe4da5cc 19
d15a28e7 20// --- AliRoot header files ---
fe4da5cc 21
0e4b7936 22#include "AliDetector.h"
23class AliPHOSGeometry ;
7b326aac 24class AliPHOSQAChecker ;
fe4da5cc 25
26class AliPHOS : public AliDetector {
27
28 public:
29
6b87d0dd 30 AliPHOS() ;
7b326aac 31 AliPHOS(const char* name, const char* title="") ;
839ffcb3 32 AliPHOS(const AliPHOS & phos) {
33 // cpy ctor: no implementation yet
34 // requested by the Coding Convention
0e4b7936 35 abort() ;
839ffcb3 36 }
7b326aac 37 virtual ~AliPHOS() ;
0a6d52e3 38 virtual void AddHit(Int_t, Int_t*, Float_t *) {
0e4b7936 39 // do not use this definition but the one below
40 abort() ;
0a6d52e3 41 }
88bdfa12 42 virtual void AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t id, Float_t *hits ) = 0 ;
9abb6731 43 virtual void CreateMaterials() ;
6b87d0dd 44 void CreatePHOSFolders();
fa7cce36 45 virtual AliPHOSGeometry * GetGeometry() const ;
46 virtual Int_t IsVersion(void) const = 0 ;
7b326aac 47 AliPHOSQAChecker * QAChecker() {return fQATask;}
0e4b7936 48 virtual void SetTreeAddress();
7c67e406 49 virtual TString Version() {return TString(" ") ; }
839ffcb3 50
51 AliPHOS & operator = (const AliPHOS & rvalue) {
7b326aac 52 // assignement operator requested by coding convention
53 // but not needed
0e4b7936 54 abort() ;
839ffcb3 55 return *this ;
56 }
57
b73f246d 58protected:
7b326aac 59
fa7cce36 60 TFolder * fFGeom ; //! Folder that holds the Geometry definition
61 AliPHOSGeometry * fGeom ; // Geometry definition
62 AliPHOSQAChecker * fQATask ; //! PHOS checkers container
63 TTask * fSDTask ; //! PHOS (S)Digitizer container
64 TTask * fReTask ; //! PHOS Reconstructioner container
fe4da5cc 65
b2a60966 66 ClassDef(AliPHOS,2) // Photon Spectrometer Detector (base class)
fe4da5cc 67
d15a28e7 68} ;
fe4da5cc 69
d15a28e7 70#endif // ALIPHOS_H