]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCAL.h
New class to make V2 clusters starting from digits or hits (fast simulation). Origin...
[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
05a92d59 13#include <stdlib.h>
2012850d 14
15// --- ROOT system ---
05a92d59 16
2012850d 17class TString ;
05a92d59 18class TTask ;
19class TFolder ;
2012850d 20
21// --- AliRoot header files ---
05a92d59 22
2012850d 23#include "AliDetector.h"
24class AliEMCALGeometry ;
05a92d59 25//class AliEMCALQAChecker ;
2012850d 26
27class AliEMCAL : public AliDetector {
28
29 public:
30
b13bbe81 31 AliEMCAL();
2012850d 32 AliEMCAL(const char* name, const char* title="");
33 AliEMCAL(const AliEMCAL & emcal) {
34 // cpy ctor: no implementation yet
35 // requested by the Coding Convention
9859bfc0 36 Fatal("cpy ctor", "not implemented") ;
2012850d 37 }
38 virtual ~AliEMCAL() ;
b13bbe81 39 virtual void AddHit(Int_t, Int_t*, Float_t *) {
40 // do not use this definition but the one below
9859bfc0 41 Fatal("AddHit(Int_t, Int_t*, Float_t *",
42 "not to be used: use AddHit( Int_t shunt, Int_t primary, Int_t track,Int_t id, Float_t *hits )") ;
43
b13bbe81 44 }
05a92d59 45 virtual void AddHit( Int_t shunt, Int_t primary, Int_t track,
b13bbe81 46 Int_t id, Float_t *hits ) = 0 ;
05a92d59 47 virtual void CreateMaterials() ;
48 virtual void FinishRun() {WriteQA();}
49 virtual AliEMCALGeometry * GetGeometry() const ;
50 virtual Int_t IsVersion(void) const = 0 ;
51 //AliEMCALQAChecker * QAChecker() const {return fQATask;}
52 virtual void SetTreeAddress() ;
53 virtual TTree * TreeQA() const {return fTreeQA; }
54 virtual const TString Version() const {return TString(" ") ; }
55 virtual void WriteQA() ;
2012850d 56 AliEMCAL & operator = (const AliEMCAL & rvalue) {
57 // assignement operator requested by coding convention
58 // but not needed
9859bfc0 59 Fatal("operator =", "not implemented") ;
2012850d 60 return *this ;
61 }
62
63protected:
64
05a92d59 65 //AliEMCALQAChecker * fQATask ; //! PHOS checkers container
66 TTree * fTreeQA ; // the QA tree that contains the alarms
1d7b3dd6 67 AliEMCALGeometry * fGeom ; // the geometry object
2012850d 68
1d7b3dd6 69 ClassDef(AliEMCAL,3) // Electromagnetic calorimeter (base class)
2012850d 70
71} ;
72
73#endif // ALIEMCAL_H