New calibration classes. They depend on TTable, so libTable.so is added to the list...
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALCell.h
CommitLineData
16d3c94d 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//
11//*-- Author: Aleksei Pavlinov (WSU, Detroit, USA)
12
13#include <TObjectSet.h>
14
15class TList;
16class TH1;
17class TF1;
18class TNtuple;
19
20class AliEMCALCalibData;
21class AliEMCALCalibCoefs;
22
23class AliEMCALCell : public TObjectSet {
24
25 public:
26
27 AliEMCALCell();
28 AliEMCALCell(const Int_t absId, const char* title="EMCAL cell");
29
30 virtual ~AliEMCALCell();
31
32 void SetCCfromDB(AliEMCALCalibData *ccDb); // obsolete
33 void SetCCfromCCTable(AliEMCALCalibCoefs *t);
34
35 TList* GetHists() {return (TList*)fObj;}
36 Int_t GetAbsId() const {return fAbsId;}
37 Int_t GetSupMod() const {return fSupMod;}
38 Int_t GetModule() const {return fModule;}
39
40 Double_t GetCcIn() {return fCcIn;}
41 Double_t GetCcOut() {return fCcOut;}
42 TF1* GetFunction() {return fFun;}
43
44 void FillEffMass(const Double_t mgg);
45 void FillCellNtuple(TNtuple *nt);
46
47 static void FitHist(TH1* h, const char* name="",const char* opt="");
48 // Menu
49 void FitEffMassHist(const char* opt=""); //*MENU*
50 void Print(); //*MENU*
51 protected:
52 Int_t fAbsId; // abs cell id
53 Int_t fSupMod; // super module number
54 Int_t fModule; // module number inside SM
55 Int_t fPhi; // phi number of cell inside module
56 Int_t fEta; // eta number of cell inside module
57 Int_t fPhiCell; // phi number of cell SM
58 Int_t fEtaCell; // eta number of cell SM
59 // CC staf
60 Double_t fCcIn; // input cc in GeV (from Db or table
61 Double_t fCcOut; // output cc in GeV (from fir now)
62
63 TF1* fFun; //! fitting function - gaus + pol2
64 //
65 TList* BookHists();
66
67 ClassDef(AliEMCALCell,1) // EMCAL cell
68
69};
70
71#endif // ALIEMCALCELL_H