]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOS.h
more debug output and bugfix for sub event number
[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
d15a28e7 13// --- ROOT system ---
0e4b7936 14class TString ;
7b326aac 15class TTask ;
fa7cce36 16class TFolder ;
e957fea8 17class TTree ;
fe4da5cc 18
d15a28e7 19// --- AliRoot header files ---
0e4b7936 20#include "AliDetector.h"
21class AliPHOSGeometry ;
7b326aac 22class AliPHOSQAChecker ;
fe4da5cc 23
24class AliPHOS : public AliDetector {
25
26 public:
27
6b87d0dd 28 AliPHOS() ;
7b326aac 29 AliPHOS(const char* name, const char* title="") ;
a8c47ab6 30 AliPHOS(const AliPHOS & phos) : AliDetector(phos) {
839ffcb3 31 // cpy ctor: no implementation yet
32 // requested by the Coding Convention
f1611b7c 33 Fatal("cpy ctor", "not implemented") ;
839ffcb3 34 }
7b326aac 35 virtual ~AliPHOS() ;
0a6d52e3 36 virtual void AddHit(Int_t, Int_t*, Float_t *) {
0e4b7936 37 // do not use this definition but the one below
f1611b7c 38 Fatal("AddHit(Int_t, Int_t*, Float_t *)", "do not use") ;
39
0a6d52e3 40 }
a532e9d8 41 virtual void AddHit( Int_t shunt, Int_t primary, Int_t track,
42 Int_t id, Float_t *hits ) = 0 ;
9abb6731 43 virtual void CreateMaterials() ;
a532e9d8 44 virtual void FinishRun() {WriteQA();}
45 virtual AliPHOSGeometry * GetGeometry() const ;
fa7cce36 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; }
a532e9d8 50 virtual const TString Version() const {return TString(" ") ; }
4410223b 51 virtual void WriteQA() ;
8c140292 52 AliPHOS & operator = (const AliPHOS & /*rvalue*/) {
e957fea8 53 Fatal("operator =", "not implemented") ; return *this ; }
88cb7938 54
55 virtual AliLoader* MakeLoader(const char* topfoldername);
839ffcb3 56
85a5290f 57 virtual void Hits2SDigits();
58 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager);
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