Transition to NewIO
[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
88cb7938 12#include <stdlib.h>
fdeead01 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
f1611b7c 35 Fatal("cpy ctor", "not implemented") ;
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
f1611b7c 40 Fatal("AddHit(Int_t, Int_t*, Float_t *)", "do not use") ;
41
0a6d52e3 42 }
a532e9d8 43 virtual void AddHit( Int_t shunt, Int_t primary, Int_t track,
44 Int_t id, Float_t *hits ) = 0 ;
9abb6731 45 virtual void CreateMaterials() ;
a532e9d8 46 virtual void FinishRun() {WriteQA();}
47 virtual AliPHOSGeometry * GetGeometry() const ;
fa7cce36 48 virtual Int_t IsVersion(void) const = 0 ;
7b326aac 49 AliPHOSQAChecker * QAChecker() {return fQATask;}
7b7c1533 50 virtual void SetTreeAddress();
51 virtual TTree * TreeQA() const {return fTreeQA; }
a532e9d8 52 virtual const TString Version() const {return TString(" ") ; }
4410223b 53 virtual void WriteQA() ;
839ffcb3 54 AliPHOS & operator = (const AliPHOS & rvalue) {
88cb7938 55 // assignement operator requested by coding convention
56 // but not needed
57 Fatal("operator =", "not implemented") ;
58 return *this ;
839ffcb3 59 }
88cb7938 60
61 virtual AliLoader* MakeLoader(const char* topfoldername);
839ffcb3 62
b73f246d 63protected:
7b326aac 64
fa7cce36 65 AliPHOSQAChecker * fQATask ; //! PHOS checkers container
7b7c1533 66 TTree * fTreeQA ; // the QA tree that contains the alarms
fe4da5cc 67
b2a60966 68 ClassDef(AliPHOS,2) // Photon Spectrometer Detector (base class)
fe4da5cc 69
d15a28e7 70} ;
fe4da5cc 71
d15a28e7 72#endif // ALIPHOS_H