]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - PHOS/AliPHOS.h
more debug output and bugfix for sub event number
[u/mrichter/AliRoot.git] / PHOS / AliPHOS.h
... / ...
CommitLineData
1#ifndef ALIPHOS_H
2#define ALIPHOS_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5/* $Id$ */
6
7//_________________________________________________________________________
8// Base Class for PHOS
9//
10//*-- Author: Laurent Aphecetche & Yves Schutz (SUBATECH)
11
12
13// --- ROOT system ---
14class TString ;
15class TTask ;
16class TFolder ;
17class TTree ;
18
19// --- AliRoot header files ---
20#include "AliDetector.h"
21class AliPHOSGeometry ;
22class AliPHOSQAChecker ;
23
24class AliPHOS : public AliDetector {
25
26 public:
27
28 AliPHOS() ;
29 AliPHOS(const char* name, const char* title="") ;
30 AliPHOS(const AliPHOS & phos) : AliDetector(phos) {
31 // cpy ctor: no implementation yet
32 // requested by the Coding Convention
33 Fatal("cpy ctor", "not implemented") ;
34 }
35 virtual ~AliPHOS() ;
36 virtual void AddHit(Int_t, Int_t*, Float_t *) {
37 // do not use this definition but the one below
38 Fatal("AddHit(Int_t, Int_t*, Float_t *)", "do not use") ;
39
40 }
41 virtual void AddHit( Int_t shunt, Int_t primary, Int_t track,
42 Int_t id, Float_t *hits ) = 0 ;
43 virtual void CreateMaterials() ;
44 virtual void FinishRun() {WriteQA();}
45 virtual AliPHOSGeometry * GetGeometry() const ;
46 virtual Int_t IsVersion(void) const = 0 ;
47 AliPHOSQAChecker * QAChecker() {return fQATask;}
48 virtual void SetTreeAddress();
49 virtual TTree * TreeQA() const {return fTreeQA; }
50 virtual const TString Version() const {return TString(" ") ; }
51 virtual void WriteQA() ;
52 AliPHOS & operator = (const AliPHOS & /*rvalue*/) {
53 Fatal("operator =", "not implemented") ; return *this ; }
54
55 virtual AliLoader* MakeLoader(const char* topfoldername);
56
57 virtual void Hits2SDigits();
58 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager);
59
60protected:
61
62 AliPHOSQAChecker * fQATask ; //! PHOS checkers container
63 TTree * fTreeQA ; // the QA tree that contains the alarms
64
65 ClassDef(AliPHOS,2) // Photon Spectrometer Detector (base class)
66
67} ;
68
69#endif // ALIPHOS_H