Elaborating split mode to write data only to the split files
[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 virtual void FinishRun() {WriteQA();}
fa7cce36 45 virtual AliPHOSGeometry * GetGeometry() const ;
46 virtual Int_t IsVersion(void) const = 0 ;
7b326aac 47 AliPHOSQAChecker * QAChecker() {return fQATask;}
7b7c1533 48 virtual void SetTreeAddress();
49 virtual TTree * TreeQA() const {return fTreeQA; }
7c67e406 50 virtual TString Version() {return TString(" ") ; }
4410223b 51 virtual void WriteQA() ;
839ffcb3 52 AliPHOS & operator = (const AliPHOS & rvalue) {
7b326aac 53 // assignement operator requested by coding convention
54 // but not needed
0e4b7936 55 abort() ;
839ffcb3 56 return *this ;
57 }
58
b73f246d 59protected:
7b326aac 60
fa7cce36 61 AliPHOSQAChecker * fQATask ; //! PHOS checkers container
7b7c1533 62 TTree * fTreeQA ; // the QA tree that contains the alarms
fe4da5cc 63
b2a60966 64 ClassDef(AliPHOS,2) // Photon Spectrometer Detector (base class)
fe4da5cc 65
d15a28e7 66} ;
fe4da5cc 67
d15a28e7 68#endif // ALIPHOS_H