]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALCell.h
Add Config/HighVoltage directory and entry
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALCell.h
1 #ifndef ALIEMCALCELL_H
2 #define ALIEMCALCELL_H
3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice     */
5
6 /* $Id$ */
7
8 //_________________________________________________________________________
9 //  EMCAL cell - keep everyrhing for calibration task     
10 //  Initial version was created with TDataSet staf
11 //  TObjectSet -> TFolder; Sep 6, 2007
12 //                  
13 //*-- Author: Aleksei Pavlinov (WSU, Detroit, USA) 
14
15 #include <TFolder.h>
16
17 class TList;
18 class TH1;
19 class TF1;
20 class TNtuple;
21
22 class AliEMCALCalibData;
23 class AliEMCALCalibCoefs;
24
25 class AliEMCALCell : public TFolder {
26
27  public:
28   
29   AliEMCALCell(); 
30   AliEMCALCell(const Int_t absId, const char* title="EMCAL cell");
31
32   virtual ~AliEMCALCell();
33
34   void SetCCfromDB(AliEMCALCalibData *ccDb);  // obsolete
35   void SetCCfromCCTable(AliEMCALCalibCoefs *t);
36
37   TList*   GetHists() {return fLh;}
38   TObject* GetParent() {return fParent;}
39   void     SetParent(TObject *parent) {fParent=parent;}
40   Int_t    GetAbsId()  const {return fAbsId;}
41   Int_t    GetSupMod() const {return fSupMod;}
42   Int_t    GetModule() const {return fModule;}
43
44   Double_t GetCcIn()  const {return  fCcIn;}
45   Double_t GetCcOut() const {return  fCcOut;}
46   TF1*     GetFunction() const {return fFun;}
47
48   void FillEffMass(const Double_t mgg);
49   void FillCellNtuple(TNtuple *nt);
50
51   static void FitHist(TH1* h, const char* name="",const char* opt="");
52   // Menu
53   void FitEffMassHist(const char* opt=""); //*MENU*
54   void PrintInfo();                            //*MENU*
55  protected:
56   TObject* fParent; // parent
57   TList* fLh;       // list of hists
58   //
59   Int_t fAbsId;   // abs cell id 
60   Int_t fSupMod;  // super module number
61   Int_t fModule;  // module number inside SM
62   Int_t fPhi;     // phi number of cell inside module  
63   Int_t fEta;     // eta number of cell inside module  
64   Int_t fPhiCell; // phi number of cell SM  
65   Int_t fEtaCell; // eta number of cell SM  
66   // CC staf
67   Double_t fCcIn;  // input  cc in GeV (from Db or table
68   Double_t fCcOut; // output cc  in GeV (from fit now)
69
70   TF1*   fFun;     //! fitting function - gaus + pol2
71   //
72   TList* BookHists();
73
74   ClassDef(AliEMCALCell,1) // EMCAL cell
75     
76 };
77
78 #endif // ALIEMCALCELL_H