]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - EMCAL/AliEMCAL.h
correct z shift for C side
[u/mrichter/AliRoot.git] / EMCAL / AliEMCAL.h
... / ...
CommitLineData
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/* History of cvs commits:
8 *
9 * $Log$
10 * Revision 1.43 2007/03/10 22:19:01 pavlinov
11 * move one varibels from AliEMCALv2 to AliEMCAL
12 *
13 * Revision 1.42 2007/02/24 20:42:35 pavlinov
14 * fixed error of Geant3 parameters initialisation
15 *
16 * Revision 1.41 2007/02/05 10:43:25 hristov
17 * Changes for correct initialization of Geant4 (Mihaela)
18 *
19 * Revision 1.40 2006/12/05 17:19:26 gustavo
20 * Updated AliEMCAL::Digits2Raw, reads first provisional RCU mapping files to make Raw data with new AliCaloAltroMapping and AliCaloRawStream
21 *
22 *
23 */
24//_________________________________________________________________________
25// Base Class for EMCAL
26// holds all geant information of
27// materials, etc.
28//
29//*-- Author: Yves Schutz (SUBATECH)
30
31// --- ROOT system ---
32
33class TString ;
34class TTask ;
35class TFolder ;
36class TRandom ;
37class TGraph;
38class TF1;
39
40// --- AliRoot header files ---
41class AliRawReader;
42#include "AliDetector.h"
43#include "AliEMCALGeometry.h"
44#include "AliEMCALTrigger.h"
45
46class AliEMCAL : public AliDetector {
47
48 public:
49
50 AliEMCAL();
51 AliEMCAL(const char* name, const char* title="");
52
53 virtual ~AliEMCAL() ;
54 virtual void AddHit(Int_t, Int_t*, Float_t *) {
55 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 )") ;
56 }
57 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
58 virtual void CreateMaterials() ;
59 virtual void Init() ;
60 virtual void Digits2Raw();
61
62 virtual void FinishRun() {}
63 virtual AliEMCALGeometry * GetGeometry() const
64 {return AliEMCALGeometry::GetInstance(GetTitle(),"") ; }
65 virtual void Hits2SDigits();
66 virtual Int_t IsVersion(void) const = 0 ;
67
68 virtual AliTriggerDetector* CreateTriggerDetector() const
69 { return new AliEMCALTrigger(); }
70
71 //
72 virtual AliLoader* MakeLoader(const char* topfoldername);
73 virtual const TString Version() const {return TString(" ") ; }
74
75protected:
76 void InitConstants(); //initializes some params
77 //void DefineMediumParameters(); // define tracking medium parameters; not needed set in galice.cuts
78
79 Int_t fBirkC0; // constants for Birk's Law implementation
80 Double_t fBirkC1; // constants for Birk's Law implementation
81 Double_t fBirkC2; // constants for Birk's Law implementation
82
83 AliEMCALGeometry* fGeometry; //!
84
85private:
86 AliEMCAL(const AliEMCAL& emcal);
87 AliEMCAL & operator = (const AliEMCAL & /*rvalue*/);
88
89 ClassDef(AliEMCAL,10) // Electromagnetic calorimeter (base class)
90
91} ;
92
93#endif // ALIEMCAL_H