New code for EMCAL (B.Nilsen)
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALv0.h
CommitLineData
2012850d 1#ifndef ALIEMCALV0_H
2#define ALIEMCALV0_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// Implementation version v0 of EMCAL Manager class
10//*--
11//*-- Author: Yves Schutz (SUBATECH)
b13bbe81 12//*-- and : Sahal Yacoob (LBL / UCT)
13//#include <assert.h>
2012850d 14
15// --- ROOT system ---
16
b13bbe81 17class TFile;
18
2012850d 19// --- AliRoot header files ---
20#include "AliEMCAL.h"
b13bbe81 21
22//class AliEMCALGeometry ;
2012850d 23
24class AliEMCALv0 : public AliEMCAL {
25
26 public:
27
b13bbe81 28 AliEMCALv0():AliEMCAL() {}
2012850d 29 AliEMCALv0(const char *name, const char *title="") ;
30 AliEMCALv0(const AliEMCALv0 & emcal) {
31 // cpy ctor: no implementation yet
32 // requested by the Coding Convention
b13bbe81 33 abort() ;
2012850d 34 }
b13bbe81 35 virtual ~AliEMCALv0(){}
36
37 virtual void AddHit( Int_t shunt, Int_t primary, Int_t track,
38 Int_t id, Float_t *hits ) {
39 // no hits - useless
40 }
41
42 virtual void BuildGeometry();// creates the geometry for the ROOT display
43 virtual void CreateGeometry() ;// creates the geometry for GEANT
44
45 virtual AliEMCALGeometry * GetGeometry() {
46 // gets the pointer to the AliEMCALGeometry unique instance
47 return fGeom ;
48 }
49
2012850d 50
2012850d 51
52 virtual void Init(void) ; // does nothing
53 virtual Int_t IsVersion(void) const {
54 // Gives the version number
55 return 0 ;
56 }
57 virtual TString Version(void){
58 // As above
59 return TString("v0") ;
60 }
61
62 AliEMCALv0 & operator = (const AliEMCALv0 & rvalue) {
63 // assignement operator requested by coding convention but not needed
b13bbe81 64 abort() ;
2012850d 65 return *this ;
66 }
67
68 protected:
b13bbe81 69
2012850d 70 ClassDef(AliEMCALv0,1) // Implementation of EMCAL manager class for layout EMC+PPSD
71
72 };
73
74#endif // AliEMCALV0_H