//_________________________________________________________________________
// EMCAL cell - keep everyrhing for calibration task
+// Initial version was created with TDataSet staf
+// TObjectSet -> TFolder; Sep 6, 2007
//
//*-- Author: Aleksei Pavlinov (WSU, Detroit, USA)
-#include <TObjectSet.h>
+#include <TFolder.h>
class TList;
class TH1;
class AliEMCALCalibData;
class AliEMCALCalibCoefs;
-class AliEMCALCell : public TObjectSet {
+class AliEMCALCell : public TFolder {
public:
- AliEMCALCell();
+ AliEMCALCell(); //default ctor
+ AliEMCALCell(const AliEMCALCell& cell); //copy ctor
AliEMCALCell(const Int_t absId, const char* title="EMCAL cell");
virtual ~AliEMCALCell();
+ AliEMCALCell & operator = (const AliEMCALCell & /*rvalue*/) {
+ // assignement operator requested by coding convention but not
+ // needed
+ Fatal("operator =", "not implemented");
+ return *this;
+ };
+
void SetCCfromDB(AliEMCALCalibData *ccDb); // obsolete
void SetCCfromCCTable(AliEMCALCalibCoefs *t);
- TList* GetHists() {return (TList*)fObj;}
+ TList* GetHists() {return fLh;}
+ TObject* GetParent() {return fParent;}
+ void SetParent(TObject *parent) {fParent=parent;}
Int_t GetAbsId() const {return fAbsId;}
Int_t GetSupMod() const {return fSupMod;}
Int_t GetModule() const {return fModule;}
- Double_t GetCcIn() {return fCcIn;}
- Double_t GetCcOut() {return fCcOut;}
- TF1* GetFunction() {return fFun;}
+ Double_t GetCcIn() const {return fCcIn;}
+ Double_t GetCcOut() const {return fCcOut;}
+ TF1* GetFunction() const {return fFun;}
void FillEffMass(const Double_t mgg);
void FillCellNtuple(TNtuple *nt);
static void FitHist(TH1* h, const char* name="",const char* opt="");
// Menu
void FitEffMassHist(const char* opt=""); //*MENU*
- void Print(); //*MENU*
+ void PrintInfo(); //*MENU*
protected:
+ TObject* fParent; // parent
+ TList* fLh; // list of hists
+ //
Int_t fAbsId; // abs cell id
Int_t fSupMod; // super module number
Int_t fModule; // module number inside SM
Int_t fEtaCell; // eta number of cell SM
// CC staf
Double_t fCcIn; // input cc in GeV (from Db or table
- Double_t fCcOut; // output cc in GeV (from fir now)
+ Double_t fCcOut; // output cc in GeV (from fit now)
TF1* fFun; //! fitting function - gaus + pol2
//