]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCALCell.h
filter out additional compile defines to fit into rootcints 1024 char limit
[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
0fc11500 10// Initial version was created with TDataSet staf
11// TObjectSet -> TFolder; Sep 6, 2007
16d3c94d 12//
13//*-- Author: Aleksei Pavlinov (WSU, Detroit, USA)
14
0fc11500 15#include <TFolder.h>
16d3c94d 16
17class TList;
18class TH1;
19class TF1;
20class TNtuple;
21
22class AliEMCALCalibData;
23class AliEMCALCalibCoefs;
24
0fc11500 25class AliEMCALCell : public TFolder {
16d3c94d 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
0fc11500 37 TList* GetHists() {return fLh;}
38 TObject* GetParent() {return fParent;}
39 void SetParent(TObject *parent) {fParent=parent;}
16d3c94d 40 Int_t GetAbsId() const {return fAbsId;}
41 Int_t GetSupMod() const {return fSupMod;}
42 Int_t GetModule() const {return fModule;}
43
b217491f 44 Double_t GetCcIn() const {return fCcIn;}
45 Double_t GetCcOut() const {return fCcOut;}
46 TF1* GetFunction() const {return fFun;}
16d3c94d 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*
0fc11500 54 void PrintInfo(); //*MENU*
16d3c94d 55 protected:
0fc11500 56 TObject* fParent; // parent
b217491f 57 TList* fLh; // list of hists
0fc11500 58 //
16d3c94d 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
0fc11500 68 Double_t fCcOut; // output cc in GeV (from fit now)
16d3c94d 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