]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALv2.h
Calibration data member fCalibData initialized in Init() calling to the AliEMCALLoade...
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALv2.h
1 #ifndef ALIEMCALV2_H
2 #define ALIEMCALV2_H
3 /* Copyright(c) 1998-2004, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                      
5          */
6 /* $Id$ */
7
8 //_________________________________________________________________________
9 // Implementation version v2 of EMCAL Manager class for Shish-Kebab case 
10 //*--                  
11 //*-- Author:  Aleksei Pavlinov
12
13 // --- ROOT system ---
14 class TClonesArray;
15 class TLorentzVector;
16 class TFile;
17 class TH1F;
18
19 class TBrowser;
20 class AliEMCALGeometry;
21
22 // --- AliRoot header files ---
23 #include "AliEMCALv1.h"
24
25 // for TRD2 case
26 //#include "TGeant3.h"
27
28 class AliEMCALv2 : public AliEMCALv1 {
29   
30 public:
31
32   AliEMCALv2(void) ; 
33   AliEMCALv2(const char *name, const char *title="") ;
34   virtual ~AliEMCALv2(void) ;
35
36   using AliEMCALv1::AddHit;
37   virtual void  AddHit( Int_t shunt, Int_t primary, Int_t track, Int_t iparent, Float_t ienergy,
38                         Int_t id, Float_t *hits, Float_t *p);
39
40   virtual void StepManager(void) ;
41   virtual void FinishEvent();
42
43   // Gives the version number 
44   virtual Int_t  IsVersion(void) const {return 2;}
45   virtual const TString Version(void)const {return TString("v2");}
46   // 23-mar-05
47   virtual Double_t GetDepositEnergy(int print=1); // *MENU*
48   // 30-aug-04
49   virtual void Browse(TBrowser* b);
50   // drawing
51   void DrawCalorimeterCut(const char *name="SMOD", int axis=3, double dcut=1.); // *MENU*
52   void DrawSuperModuleCut(const char *name="EMOD", int axis=2, double dcut=0.03, int fill = 6);//  *MENU*
53   void DrawTowerCut(const char *name="SCMY", int axis=2, double dcut=0., int fill=1, char *optShad="on");   //  *MENU*
54   void DrawAlicWithHits(int mode=1);                            // *MENU*
55   void SetVolumeAttributes(const char *name="SCM0", int seen=1, int color=1, int fill=1); // *MENU*
56   void TestIndexTransition(int pri=0, int idmax=0); // *MENU*
57
58  protected:
59   AliEMCALGeometry* fGeometry; //!
60   TH1F*             fHDe;      //!
61   TH1F*             fHNhits;      //!
62
63  private:
64   AliEMCALv2(const AliEMCALv2 & emcal);
65   AliEMCALv2 & operator = (const AliEMCALv2  & /*rvalue*/);
66  
67   ClassDef(AliEMCALv2,1)    //Implementation of EMCAL manager class to produce hits in a Shish-Kebab
68     
69 };
70
71 #endif // AliEMCALV2_H