ROOT logo
AliRoot » EMCAL » AliEMCALHistoUtilities

class AliEMCALHistoUtilities: public TNamed

 This is a set of histogram
 utilities for the EMCAL
 to make some common
 functions easier

*-- Authors: J.L. Klay (LLNL) & Aleksei Pavlinov (WSU)

Function Members (Methods)

public:
AliEMCALHistoUtilities(const AliEMCALHistoUtilities&)
AliEMCALHistoUtilities(const char* name = "emcalUtilitiesRoutines", const char* tit = "EMCAL utility routines")
virtual~AliEMCALHistoUtilities()
voidTObject::AbstractMethod(const char* method) const
static voidAddToNameAndTitle(TNamed* h = 0, const char* name = 0, const char* title = 0)
static voidAddToNameAndTitleToList(TList* l = 0, const char* name = 0, const char* title = 0)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
static TList*CreateProjectionsX(TList* l = 0, const Int_t ind = 2, const Char_t* name = "prox")
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
static TGraph*DrawGraph(Int_t n = 4, Double_t* x = 0, Double_t* y = 0, Int_t markerColor = 4, Int_t markerStyle = 4, const char* opt = "", const char* tit = "", const char* xTit = " jet E_{t} ", const char* yTit = "", Int_t ifun = 0, const char* optFit = "W+", const char* fun = "")
static TGraphErrors*DrawGraphErrors(const Int_t n = 4, Double_t* x = 0, Double_t* y = 0, Double_t* ex = 0, Double_t* ey = 0, Int_t markerColor = 4, Int_t markerStyle = 4, const char* opt = "", const char* tit = "", const char* xTit = " jet E_{t} ", const char* yTit = "", Int_t ifun = 0, const char* optFit = "W+", const char* fun = "")
static voidDrawHist(TH1* hid = 0, int lineWidth = 1, int lineColor = 1, const char* opt = "", int lineStyle = 1)
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
static voidFillH1(TList* l = 0, Int_t ind = 0, Double_t x = -99999., Double_t w = 1., Double_t error = 0.)
static voidFillH2(TList* l = 0, Int_t ind = 0, Double_t x = -99999., Double_t y = -99999., Double_t w = 1.)
static voidFillHnSparse(TList* l = 0, Int_t ind = 0, Double_t* x = 0, Double_t w = 1.)
static voidFillHProf(TList* l = 0, Int_t ind = 0, Double_t x = -99999., Double_t y = -99999., Double_t w = 1.)
static voidFillTriggersListOfHists(TList* l = 0, TArrayF* triggerPosition = 0, TArrayF* triggerAmplitudes = 0)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
static TF1*Gausi(const char* addName, double xmi, double xma, TH1* h)
static TF1*Gausi(const char* addName, double xmi, double xma, double N, double mean, double sig, double width)
static TF1*GausiPol2(const char* addName, double xmi, double xma, TF1* g, TF1* bg)
static Double_tGetCorrectedEnergyForGamma1(const Double_t eRec)
static Double_tGetCorrectionCoefficientForGamma1(const Double_t eRec)
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
static TList*GetJetsListOfHists(Int_t njet = 2, Bool_t toBrowser = kFALSE)
static Double_tGetMomentum(const char* nameListOfFiles)
virtual const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
static TF1*GetResolutionFunction(const char* opt, TString& latexName)
virtual const char*TNamed::GetTitle() const
static TList*GetTriggersListOfHists(const Int_t scale = 0, const Int_t nTrig = 5, const Bool_t toBrowser = kFALSE)
virtual UInt_tTObject::GetUniqueID() const
static Double_tGi(Double_t* x, Double_t* par)
static Double_tGiPol2(Double_t* x, Double_t* par)
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
static voidInitChain(TChain* chain = 0, const char* nameListOfFiles = 0, Int_t nFileMax = 0)
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
static TLatex*Lat(const char* text = "", Float_t x = 0.0, Float_t y = 0.0, Int_t align = 22, Float_t tsize = 0.05, short tcolor = 1)
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
static TList*MoveHistsToList(const char* name = "ListOfHists", Bool_t putToBrowser = kTRUE, Bool_t setOwner = kFALSE)
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
AliEMCALHistoUtilities&operator=(const AliEMCALHistoUtilities&)
virtual voidTObject::Paint(Option_t* option = "")
static intParseString(const TString& topt, TObjArray& Opt)
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
static voidResetListOfHists(TList* l)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
static intSaveListOfHists(TList* mylist = 0, const char* name = "test", Bool_t kSingleKey = kFALSE, const char* opt = "RECREATE")
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
static voidTitles(TH1* hid = 0, const char* titx = "", const char* tity = "")
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

protected:
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title

Class Charts

Inheritance Chart:
TNamed
AliEMCALHistoUtilities

Function documentation

AliEMCALHistoUtilities(const char* name = "emcalUtilitiesRoutines", const char* tit = "EMCAL utility routines")
 constructor
~AliEMCALHistoUtilities()
destructor
TList* MoveHistsToList(const char* name = "ListOfHists", Bool_t putToBrowser = kTRUE, Bool_t setOwner = kFALSE)
 Move HIST to list
void FillH1(TList* l = 0, Int_t ind = 0, Double_t x = -99999., Double_t w = 1., Double_t error = 0.)
fill 1d histogram
void FillH2(TList* l = 0, Int_t ind = 0, Double_t x = -99999., Double_t y = -99999., Double_t w = 1.)
fill 2d histogram
void FillHProf(TList* l = 0, Int_t ind = 0, Double_t x = -99999., Double_t y = -99999., Double_t w = 1.)
 fill profile histogram
int SaveListOfHists(TList* mylist = 0, const char* name = "test", Bool_t kSingleKey = kFALSE, const char* opt = "RECREATE")
write histograms to file
void AddToNameAndTitle(TNamed* h = 0, const char* name = 0, const char* title = 0)
 Oct 15, 2007
void AddToNameAndTitleToList(TList* l = 0, const char* name = 0, const char* title = 0)
 Oct 15, 2007
void ResetListOfHists(TList* l)
 Oct 15, 2007
void Titles(TH1* hid = 0, const char* titx = "", const char* tity = "")
TList* CreateProjectionsX(TList* l = 0, const Int_t ind = 2, const Char_t* name = "prox")
 Sep 4 - seperate list for projections
TLatex * Lat(const char* text = "", Float_t x = 0.0, Float_t y = 0.0, Int_t align = 22, Float_t tsize = 0.05, short tcolor = 1)
 Oct 15, 2007
TGraph * DrawGraph(Int_t n = 4, Double_t* x = 0, Double_t* y = 0, Int_t markerColor = 4, Int_t markerStyle = 4, const char* opt = "", const char* tit = "", const char* xTit = " jet E_{t} ", const char* yTit = "", Int_t ifun = 0, const char* optFit = "W+", const char* fun = "")
 Drawing options
  chopt='L' :  A simple polyline between every points is drawn
  chopt='F' :  A fill area is drawn ('CF' draw a smooth fill area)
  chopt='A' :  Axis are drawn around the graph
  chopt='C' :  A smooth Curve is drawn
  chopt='*' :  A Star is plotted at each point
  chopt='P' :  Idem with the current marker
  chopt='B' :  A Bar chart is drawn at each point
  chopt='1' :  ylow=rwymin
  chopt='X+' : The X-axis is drawn on the top side of the plot.
  chopt='Y+' : The Y-axis is drawn on the right side of the plot.

    Fitting options
   The list of fit options is given in parameter option.
      option = "W"  Set all errors to 1
             = "U" Use a User specified fitting algorithm (via SetFCN)
             = "Q" Quiet mode (minimum printing)
             = "V" Verbose mode (default is between Q and V)
             = "B" Use this option when you want to fix one or more parameters
                   and the fitting function is like "gaus","expo","poln","landau".
             = "R" Use the Range specified in the function range
             = "N" Do not store the graphics function, do not draw
             = "0" Do not plot the result of the fit. By default the fitted function
                   is drawn unless the option"N" above is specified.
             = "+" Add this new fitted function to the list of fitted functions
                   (by default, any previous function is deleted)
             = "C" In case of linear fitting, not calculate the chisquare
                    (saves time)
             = "F" If fitting a polN, switch to minuit fitter
             = "ROB" In case of linear fitting, compute the LTS regression
                     coefficients (robust(resistant) regression), using
                     the default fraction of good points
               "ROB=0.x" - compute the LTS regression coefficients, using
                           0.x as a fraction of good points


TGraphErrors * DrawGraphErrors(const Int_t n = 4, Double_t* x = 0, Double_t* y = 0, Double_t* ex = 0, Double_t* ey = 0, Int_t markerColor = 4, Int_t markerStyle = 4, const char* opt = "", const char* tit = "", const char* xTit = " jet E_{t} ", const char* yTit = "", Int_t ifun = 0, const char* optFit = "W+", const char* fun = "")
 Oct 15, 2007
TF1* GetResolutionFunction(const char* opt, TString& latexName)
 Oct 15, 2007
void InitChain(TChain* chain = 0, const char* nameListOfFiles = 0, Int_t nFileMax = 0)
 Read name of files from text file with nameListOfFiles and added to the chain
Double_t GetMomentum(const char* nameListOfFiles)
 Get momentum value from string  - like /....100GEV/..
int ParseString(const TString& topt, TObjArray& Opt)
 Moved from AliEMCALGeometry
 Feb 06, 2006
void DrawHist(TH1* hid = 0, int lineWidth = 1, int lineColor = 1, const char* opt = "", int lineStyle = 1)
 Oct 15, 2007
TF1* Gausi(const char* addName, double xmi, double xma, double N, double mean, double sig, double width)
 Fit by gaus where first parameter is the number of events under ga
 Oct 15, 2007
TF1* Gausi(const char* addName, double xmi, double xma, TH1* h)
 You can change parameters after that if you don't like this assumption
TF1* GausiPol2(const char* addName, double xmi, double xma, TF1* g, TF1* bg)
 Fit by gaus where first parameter is the number of events under ga
Double_t Gi(Double_t* x, Double_t* par)
 First parameter is integral (number events under gaus)
 Forth parameter (par[3]) is width of histogram bin
 gaus(0) is a substitute for [0]*exp(-0.5*((x-[1])/[2])**2)
Double_t GiPol2(Double_t* x, Double_t* par)
 First parameter is integral (number events under gaus)
 Forth parameter (par[3]) is width of histogram bin
 gaus(0) is a substitute for [0]*exp(-0.5*((x-[1])/[2])**2)
 + pol2 -> 7 parameters
Double_t GetCorrectionCoefficientForGamma1(const Double_t eRec)
 Correction to rec.energy - Jul 15, 2007
 E(gamma) = corr * E(eRec);
 corr = p0*(eRec-7.5)+p1*(eRec-7.5)*(eRec-7.5)+p2; 0.0<eRec<10.0
   1  p0           6.07157e-05   1.15179e-04  -0.00000e+00   1.20997e-03
   2  p1           1.50019e-04   3.13566e-05  -0.00000e+00   1.22531e-02
   3  p2           9.99019e-01   4.08251e-04  -0.00000e+00   1.40606e-03

     corr = p3 + p4*eRec + p5*eRec*eRec
   1  p3           9.97135e-01   5.31970e-04   1.37962e-09   1.68120e-08
   2  p4           3.15740e-04   2.53371e-05   1.11475e-11   1.74192e-04
   3  p5          -1.35383e-06   2.19495e-07  -5.82864e-13   4.52277e-02

Double_t GetCorrectedEnergyForGamma1(const Double_t eRec)
TList* GetTriggersListOfHists(const Int_t scale = 0, const Int_t nTrig = 5, const Bool_t toBrowser = kFALSE)
 Oct 22, 2007 - trigger technical assurance
void FillTriggersListOfHists(TList* l = 0, TArrayF* triggerPosition = 0, TArrayF* triggerAmplitudes = 0)
 Oct 22, 2007 - trigger technical assurance
TList* GetJetsListOfHists(Int_t njet = 2, Bool_t toBrowser = kFALSE)
 Oct 30, 2007
public: AliEMCALHistoUtilities(const char* name = "emcalUtilitiesRoutines", const char* tit = "EMCAL utility routines")
void FillHnSparse(TList* l = 0, Int_t ind = 0, Double_t* x = 0, Double_t w = 1.)