]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCAL.h
Fixes needed for the TRD production (M.Ivanov)
[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 ;
f51151a0 18class TRandom ;
2012850d 19
20// --- AliRoot header files ---
05a92d59 21
2012850d 22#include "AliDetector.h"
8367ce9a 23#include "AliEMCALGeometry.h"
2012850d 24class AliEMCAL : public AliDetector {
25
26 public:
27
b13bbe81 28 AliEMCAL();
2012850d 29 AliEMCAL(const char* name, const char* title="");
39200c71 30 AliEMCAL(const AliEMCAL& emcal) : AliDetector(emcal) {
2012850d 31 // cpy ctor: no implementation yet
32 // requested by the Coding Convention
9859bfc0 33 Fatal("cpy ctor", "not implemented") ;
2012850d 34 }
35 virtual ~AliEMCAL() ;
fdebddeb 36 virtual void AddHit(Int_t, Int_t*, Float_t *) const{
d64c959b 37 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 38 }
f51151a0 39 virtual void Copy(AliEMCAL & emcal) ;
8367ce9a 40 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
f51151a0 41 virtual void CreateMaterials() ;
42 virtual void Digits2Raw();
fdebddeb 43 virtual void FinishRun() {}
8367ce9a 44 virtual AliEMCALGeometry * GetGeometry() const
45 {return AliEMCALGeometry::GetInstance(GetTitle(),"") ; }
46 virtual void Hits2SDigits();
fdebddeb 47 virtual Int_t IsVersion(void) const = 0 ;
8367ce9a 48 virtual AliLoader* MakeLoader(const char* topfoldername);
8367ce9a 49 virtual void SetTreeAddress() ;
fdebddeb 50 virtual const TString Version() const {return TString(" ") ; }
9c0a4862 51 AliEMCAL & operator = (const AliEMCAL & /*rvalue*/) {
d64c959b 52 Fatal("operator =", "not implemented") ; return *this ; }
2012850d 53
88cb7938 54
85a5290f 55
2012850d 56protected:
f51151a0 57
58 //AliEMCALGeometry * fGeom ; // the geometry object
59 Int_t fBirkC0; // constants for Birk's Law implementation
60 Double_t fBirkC1; // constants for Birk's Law implementation
61 Double_t fBirkC2; // constants for Birk's Law implementation
62 TRandom * fRan ; //! random number generator
2012850d 63
d4a6dca8 64 ClassDef(AliEMCAL,7) // Electromagnetic calorimeter (base class)
2012850d 65
66} ;
67
68#endif // ALIEMCAL_H