removing EMCAL arm from geometry and and updating digitizer so we can store 200GeV...
[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="") ;
780fda6d 30 AliPHOS(AliPHOS & phos) : AliDetector(phos) {
31 Copy(*this) ;
839ffcb3 32 }
7b326aac 33 virtual ~AliPHOS() ;
780fda6d 34 virtual void Copy(AliPHOS & phos) ;
0a6d52e3 35 virtual void AddHit(Int_t, Int_t*, Float_t *) {
0e4b7936 36 // do not use this definition but the one below
f1611b7c 37 Fatal("AddHit(Int_t, Int_t*, Float_t *)", "do not use") ;
38
0a6d52e3 39 }
a532e9d8 40 virtual void AddHit( Int_t shunt, Int_t primary, Int_t track,
41 Int_t id, Float_t *hits ) = 0 ;
9abb6731 42 virtual void CreateMaterials() ;
a532e9d8 43 virtual void FinishRun() {WriteQA();}
44 virtual AliPHOSGeometry * GetGeometry() const ;
fa7cce36 45 virtual Int_t IsVersion(void) const = 0 ;
7b326aac 46 AliPHOSQAChecker * QAChecker() {return fQATask;}
7b7c1533 47 virtual void SetTreeAddress();
48 virtual TTree * TreeQA() const {return fTreeQA; }
a532e9d8 49 virtual const TString Version() const {return TString(" ") ; }
4410223b 50 virtual void WriteQA() ;
8c140292 51 AliPHOS & operator = (const AliPHOS & /*rvalue*/) {
e957fea8 52 Fatal("operator =", "not implemented") ; return *this ; }
88cb7938 53
54 virtual AliLoader* MakeLoader(const char* topfoldername);
839ffcb3 55
85a5290f 56 virtual void Hits2SDigits();
c92eb8ad 57 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
85a5290f 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