]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOS.h
A lot of changes here:
[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() ;
7b7c1533 44 void CreatePHOSWhiteBoard();
45 virtual void FinishRun() {WriteQA();}
fa7cce36 46 virtual AliPHOSGeometry * GetGeometry() const ;
47 virtual Int_t IsVersion(void) const = 0 ;
7b326aac 48 AliPHOSQAChecker * QAChecker() {return fQATask;}
7b7c1533 49 virtual void SetTreeAddress();
50 virtual TTree * TreeQA() const {return fTreeQA; }
7c67e406 51 virtual TString Version() {return TString(" ") ; }
7b7c1533 52 virtual void AliPHOS::WriteQA() ;
839ffcb3 53 AliPHOS & operator = (const AliPHOS & rvalue) {
7b326aac 54 // assignement operator requested by coding convention
55 // but not needed
0e4b7936 56 abort() ;
839ffcb3 57 return *this ;
58 }
59
b73f246d 60protected:
7b326aac 61
fa7cce36 62 AliPHOSQAChecker * fQATask ; //! PHOS checkers container
7b7c1533 63 TTree * fTreeQA ; // the QA tree that contains the alarms
fe4da5cc 64
b2a60966 65 ClassDef(AliPHOS,2) // Photon Spectrometer Detector (base class)
fe4da5cc 66
d15a28e7 67} ;
fe4da5cc 68
d15a28e7 69#endif // ALIPHOS_H