3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //_________________________________________________________________________
9 // EMCAL cell - keep everyrhing for calibration task
10 // Initial version was created with TDataSet staf
11 // TObjectSet -> TFolder; Sep 6, 2007
13 //*-- Author: Aleksei Pavlinov (WSU, Detroit, USA)
22 class AliEMCALCalibData;
23 class AliEMCALCalibCoefs;
25 class AliEMCALCell : public TFolder {
30 AliEMCALCell(const Int_t absId, const char* title="EMCAL cell");
32 virtual ~AliEMCALCell();
34 void SetCCfromDB(AliEMCALCalibData *ccDb); // obsolete
35 void SetCCfromCCTable(AliEMCALCalibCoefs *t);
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;}
44 Double_t GetCcIn() const {return fCcIn;}
45 Double_t GetCcOut() const {return fCcOut;}
46 TF1* GetFunction() const {return fFun;}
48 void FillEffMass(const Double_t mgg);
49 void FillCellNtuple(TNtuple *nt);
51 static void FitHist(TH1* h, const char* name="",const char* opt="");
53 void FitEffMassHist(const char* opt=""); //*MENU*
54 void PrintInfo(); //*MENU*
56 TObject* fParent; // parent
57 TList* fLh; // list of hists
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
67 Double_t fCcIn; // input cc in GeV (from Db or table
68 Double_t fCcOut; // output cc in GeV (from fit now)
70 TF1* fFun; //! fitting function - gaus + pol2
74 ClassDef(AliEMCALCell,1) // EMCAL cell
78 #endif // ALIEMCALCELL_H