]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCAL.h
cerr replaced by Error
[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() ;
fdebddeb 35 virtual void AddHit(Int_t, Int_t*, Float_t *) const{
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() ;
fdebddeb 39 virtual void FinishRun() {}
05a92d59 40 virtual AliEMCALGeometry * GetGeometry() const ;
fdebddeb 41 virtual Int_t IsVersion(void) const = 0 ;
42 virtual void SetTreeAddress() ;
43 virtual const TString Version() const {return TString(" ") ; }
9c0a4862 44 AliEMCAL & operator = (const AliEMCAL & /*rvalue*/) {
d64c959b 45 Fatal("operator =", "not implemented") ; return *this ; }
2012850d 46
88cb7938 47 virtual AliLoader* MakeLoader(const char* topfoldername);
48
85a5290f 49 virtual void Hits2SDigits();
c92eb8ad 50 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
85a5290f 51
2012850d 52protected:
1d7b3dd6 53 AliEMCALGeometry * fGeom ; // the geometry object
2012850d 54
fdebddeb 55 ClassDef(AliEMCAL,5) // Electromagnetic calorimeter (base class)
2012850d 56
57} ;
58
59#endif // ALIEMCAL_H