3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
7 //_________________________________________________________________________
10 //*-- Author: Laurent Aphecetche & Yves Schutz (SUBATECH)
14 // --- ROOT system ---
20 // --- AliRoot header files ---
22 #include "AliDetector.h"
23 class AliPHOSGeometry ;
24 class AliPHOSQAChecker ;
26 class AliPHOS : public AliDetector {
31 AliPHOS(const char* name, const char* title="") ;
32 AliPHOS(const AliPHOS & phos) {
33 // cpy ctor: no implementation yet
34 // requested by the Coding Convention
35 Fatal("cpy ctor", "not implemented") ;
38 virtual void AddHit(Int_t, Int_t*, Float_t *) {
39 // do not use this definition but the one below
40 Fatal("AddHit(Int_t, Int_t*, Float_t *)", "do not use") ;
43 virtual void AddHit( Int_t shunt, Int_t primary, Int_t track,
44 Int_t id, Float_t *hits ) = 0 ;
45 virtual void CreateMaterials() ;
46 virtual void FinishRun() {WriteQA();}
47 virtual AliPHOSGeometry * GetGeometry() const ;
48 virtual Int_t IsVersion(void) const = 0 ;
49 AliPHOSQAChecker * QAChecker() {return fQATask;}
50 virtual void SetTreeAddress();
51 virtual TTree * TreeQA() const {return fTreeQA; }
52 virtual const TString Version() const {return TString(" ") ; }
53 virtual void WriteQA() ;
54 AliPHOS & operator = (const AliPHOS & rvalue) {
55 // assignement operator requested by coding convention but not needed
56 Fatal("operator =", "not implemented") ; return *this ;
61 AliPHOSQAChecker * fQATask ; //! PHOS checkers container
62 TTree * fTreeQA ; // the QA tree that contains the alarms
64 ClassDef(AliPHOS,2) // Photon Spectrometer Detector (base class)