Code for simulation, sdigitization and digitization moved from macros to compiled...
[u/mrichter/AliRoot.git] / EMCAL / AliEMCAL.h
CommitLineData
2012850d 1#ifndef ALIEMCAL_H
2#define ALIEMCAL_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8//_________________________________________________________________________
9// Base Class for EMCAL
10//
11//*-- Author: Yves Schutz (SUBATECH)
12
2012850d 13// --- ROOT system ---
05a92d59 14
2012850d 15class TString ;
05a92d59 16class TTask ;
17class TFolder ;
2012850d 18
19// --- AliRoot header files ---
05a92d59 20
2012850d 21#include "AliDetector.h"
22class AliEMCALGeometry ;
2012850d 23class AliEMCAL : public AliDetector {
24
25 public:
26
b13bbe81 27 AliEMCAL();
2012850d 28 AliEMCAL(const char* name, const char* title="");
39200c71 29 AliEMCAL(const AliEMCAL& emcal) : AliDetector(emcal) {
2012850d 30 // cpy ctor: no implementation yet
31 // requested by the Coding Convention
9859bfc0 32 Fatal("cpy ctor", "not implemented") ;
2012850d 33 }
34 virtual ~AliEMCAL() ;
b13bbe81 35 virtual void AddHit(Int_t, Int_t*, Float_t *) {
d64c959b 36 Fatal("AddHit(Int_t, Int_t*, Float_t *", "not to be used: use AddHit( Int_t shunt, Int_t primary, Int_t track,Int_t id, Float_t *hits )") ;
b13bbe81 37 }
05a92d59 38 virtual void CreateMaterials() ;
39 virtual void FinishRun() {WriteQA();}
40 virtual AliEMCALGeometry * GetGeometry() const ;
41 virtual Int_t IsVersion(void) const = 0 ;
42 //AliEMCALQAChecker * QAChecker() const {return fQATask;}
43 virtual void SetTreeAddress() ;
44 virtual TTree * TreeQA() const {return fTreeQA; }
45 virtual const TString Version() const {return TString(" ") ; }
46 virtual void WriteQA() ;
9c0a4862 47 AliEMCAL & operator = (const AliEMCAL & /*rvalue*/) {
d64c959b 48 Fatal("operator =", "not implemented") ; return *this ; }
2012850d 49
88cb7938 50 virtual AliLoader* MakeLoader(const char* topfoldername);
51
85a5290f 52 virtual void Hits2SDigits();
53 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager);
54
2012850d 55protected:
56
05a92d59 57 //AliEMCALQAChecker * fQATask ; //! PHOS checkers container
58 TTree * fTreeQA ; // the QA tree that contains the alarms
1d7b3dd6 59 AliEMCALGeometry * fGeom ; // the geometry object
2012850d 60
39200c71 61 ClassDef(AliEMCAL,4) // Electromagnetic calorimeter (base class)
2012850d 62
63} ;
64
65#endif // ALIEMCAL_H