AliRoot Core  3dc7879 (3dc7879)
AliEMCAL.h
Go to the documentation of this file.
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 
19 
20 // --- ROOT system ---
21 class TString ;
22 class TFolder ;
23 class TRandom ;
24 class TGraph;
25 class TF1;
26 
27 // --- AliRoot header files ---
28 class AliRawReader;
29 #include "AliDetector.h"
30 #include "AliEMCALGeometry.h"
31 #include "AliEMCALRawUtils.h"
32 #include "AliReconstructor.h"
34 
35 class AliEMCAL : public AliDetector
36 {
37 
38  public:
39 
40  AliEMCAL();
41  AliEMCAL(const char* name, const char* title="", const Bool_t checkGeoAndRun = kTRUE);
42 
43  virtual ~AliEMCAL() ;
44 
46  virtual void AddHit(Int_t, Int_t*, Float_t *) {
47  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 )") ;
48  }
49 
50  virtual AliDigitizer* CreateDigitizer(AliDigitizationInput* digInput) const;
51 
52  virtual void CreateMaterials() ;
53 
54  virtual void Init() ;
55 
56  virtual void Digits2Raw();
57 
58  virtual void FinishRun() {}
59 
60  virtual AliEMCALGeometry * GetGeometry() const ;
61  // {return AliEMCALGeometry::GetInstance(GetTitle(),"") ; }
62 
63  virtual void Hits2SDigits();
64 
65  virtual Int_t IsVersion(void) const = 0 ;
66  virtual const TString Version() const { return TString(" ") ; }
67 
68  //
69  virtual AliLoader* MakeLoader(const char* topfoldername);
70 
71  virtual void SetCheckRunNumberAndGeoVersion(Bool_t check) { fCheckRunNumberAndGeoVersion = check ; }
72 
73  Bool_t Raw2SDigits(AliRawReader* rawReader);
74 
75 protected:
76 
77  void InitConstants();
78 
79  Int_t fBirkC0;
80  Double_t fBirkC1;
81  Double_t fBirkC2;
82 
84 
86 
87  // For embedding
89  TClonesArray * fTriggerData;
90 
91 private:
92 
93  AliEMCAL (const AliEMCAL & emcal);
94  AliEMCAL & operator = (const AliEMCAL & /*rvalue*/);
95 
97  ClassDef(AliEMCAL,13) ;
99 
100 } ;
101 
102 #endif // ALIEMCAL_H
virtual AliLoader * MakeLoader(const char *topfoldername)
Create/recover EMCal Loader.
Definition: AliEMCAL.cxx:454
void InitConstants()
Definition: AliEMCAL.cxx:105
virtual AliDigitizer * CreateDigitizer(AliDigitizationInput *digInput) const
Create and return the digitizer.
Definition: AliEMCAL.cxx:192
virtual const TString Version() const
Definition: AliEMCAL.h:66
virtual void FinishRun()
Definition: AliEMCAL.h:58
virtual Int_t IsVersion(void) const =0
virtual void SetCheckRunNumberAndGeoVersion(Bool_t check)
Definition: AliEMCAL.h:71
virtual void Digits2Raw()
Create raw samples from digits.
Definition: AliEMCAL.cxx:298
Bool_t checkGeoAndRun
check or not the year to configure the detector
Definition: Config.C:97
virtual void Init()
Init (not needed)
Definition: AliEMCAL.cxx:288
TClonesArray * fTriggerData
Trigger parameters data container.
Definition: AliEMCAL.h:89
virtual AliEMCALGeometry * GetGeometry() const
Definition: AliEMCAL.cxx:466
virtual ~AliEMCAL()
Destructor.
Definition: AliEMCAL.cxx:94
Double_t fBirkC1
Constant 1 for Birk's Law implementation.
Definition: AliEMCAL.h:80
Base Class for EMCAL description.
Definition: AliEMCAL.h:35
AliEMCAL()
Default Constructor.
Definition: AliEMCAL.cxx:56
Int_t fBirkC0
Constant 0 for Birk's Law implementation.
Definition: AliEMCAL.h:79
virtual void Hits2SDigits()
Create summable digits from hits.
Definition: AliEMCAL.cxx:312
virtual void CreateMaterials()
Definitions of materials to build EMCAL and associated tracking media.
Definition: AliEMCAL.cxx:200
Handling of raw data.
virtual void AddHit(Int_t, Int_t *, Float_t *)
See in AliEMCALv2.
Definition: AliEMCAL.h:46
Double_t fBirkC2
Constant 2 for Birk's Law implementation.
Definition: AliEMCAL.h:81
Bool_t fCheckRunNumberAndGeoVersion
Check if run number corresponds to the requested geometry and V1 is used.
Definition: AliEMCAL.h:83
AliEMCAL & operator=(const AliEMCAL &)
static AliEMCALRawUtils * fgRawUtils
Raw utilities class, for embedding.
Definition: AliEMCAL.h:88
EMCal geometry, singleton.
AliEMCALGeometry * fGeometry
! EMCal geometry access
Definition: AliEMCAL.h:85
Bool_t Raw2SDigits(AliRawReader *rawReader)
Definition: AliEMCAL.cxx:329