AliPhysics  a1733f5 (a1733f5)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CorrDrawer Class Reference
Inheritance diagram for CorrDrawer:

Public Member Functions

 CorrDrawer ()
 
 ~CorrDrawer ()
 
void Run (const Char_t *what, const Char_t *extra, Option_t *options="", const Char_t *local="")
 
void Run (UShort_t what, const Char_t *extra, Option_t *options="", const Char_t *local="")
 
void Run (const Char_t *what, ULong_t runNo, const Char_t *sys, UShort_t sNN, UShort_t field, Bool_t mc=false, Bool_t sat=false, Option_t *options="", const char *local="")
 
void Run (UShort_t what, ULong_t runNo, UShort_t sys, UShort_t sNN, UShort_t field, Bool_t mc=false, Bool_t sat=false, Option_t *options="", const char *local="")
 
virtual void Draw (const TObject *o)
 
virtual void Draw (const AliFMDCorrAcceptance *acc)
 
virtual void Draw (const AliFMDCorrSecondaryMap *sec)
 
virtual void Draw (const AliFMDCorrELossFit *fits)
 
virtual void Summarize (const TString &what, ULong_t runNo, const Char_t *sys, UShort_t sNN, Short_t field, Bool_t mc=false, Bool_t sat=false, Option_t *options="", const char *local="")
 
virtual void Summarize (UShort_t what, ULong_t runNo, UShort_t sys, UShort_t sNN, Short_t field, Bool_t mc=false, Bool_t sat=false, Option_t *options="", const char *local="")
 
virtual void Summarize (const TObject *o, Bool_t pdf=true)
 
virtual void Summarize (const AliFMDCorrAcceptance *acc, Bool_t pdf=true)
 
virtual void Summarize (const AliFMDCorrSecondaryMap *sec, Bool_t pdf=true)
 
virtual void Summarize (const AliFMDCorrNoiseGain *corr, Bool_t pdf=true)
 
virtual void Summarize (const AliFMDCorrELossFit *fits, Bool_t pdf=true)
 
- Public Member Functions inherited from SummaryDrawer
 SummaryDrawer ()
 
virtual ~SummaryDrawer ()
 

Static Public Member Functions

static void MakeFileName (TString &out, const TString &prefix)
 
static void Summarize (const TString &what="", Bool_t=false, const TString &output="", const TString &local="fmd_corrections.root", Option_t *options="")
 
static void Summarize (UShort_t what, Bool_t=false, const TString &output="", const TString &local="fmd_corrections.root", Option_t *options="")
 

Public Attributes

TString fELossExtra
 
UShort_t fMinQuality
 

Protected Member Functions

void AppendName (TString &what, UShort_t which)
 
virtual Bool_t GetInformation (ULong_t &runNo, UShort_t &sys, UShort_t &sNN, Short_t &fld, Bool_t &mc, Bool_t &sat)
 
virtual TString CanvasName (const char *def)
 
virtual void DrawIt (const TObject *o)
 
virtual void DrawIt (const AliFMDCorrAcceptance *corr, Bool_t details=true)
 
virtual void DrawIt (const AliFMDCorrSecondaryMap *corr, bool details)
 
virtual void DrawIt (const AliFMDCorrNoiseGain *corr, bool)
 
virtual void DrawIt (const AliFMDCorrELossFit *corr, bool details, bool few=true)
 
void DrawELossFits (UShort_t d, Char_t r, TObjArray *ra, TList *dists, TList *resis, bool few)
 
TObjArrayCreateVtxStacks (const TAxis &vtxAxis)
 
Bool_t DrawVtxStacks (TObjArray *stacks, Double_t max=-1)
 
- Protected Member Functions inherited from SummaryDrawer
TLegend * DrawRingLegend (TVirtualPad *p, UInt_t flags)
 
void ClearCanvas ()
 
void CreateCanvas (const TString &pname, Bool_t landscape=false, Bool_t pdf=true, Bool_t useTop=true)
 
void CloseCanvas ()
 
void PrintCanvas (const TString &title, Float_t size=.7)
 
void MakeChapter (const TString &title)
 
TObjectDrawInPad (TVirtualPad *c, Int_t padNo, TObject *h, Option_t *opts="", UInt_t flags=0x0, const char *title="")
 
virtual TObjectDrawObjClone (TObject *o, Option_t *options, const char *title)
 
virtual TObjectDrawObjClone (THStack *o, Option_t *options, const char *title)
 
virtual TObjectDrawObjClone (TH1 *o, Option_t *options, const char *title)
 
TLegend * MakeLegend (TVirtualPad *p, UInt_t flags, Bool_t autoFill)
 
TObjectDrawInPad (TVirtualPad *p, TObject *h, Option_t *opts="", UInt_t flags=0x0, const char *title="")
 
void DrawTwoInPad (TVirtualPad *c, Int_t padNo, TH1 *h1, TH1 *h2, Option_t *opts="", UShort_t flags=0x0)
 
void DrawParameter (Double_t &y, const TString &name, const TString &value, Double_t size=0)
 
template<typename T >
void DrawTParameter (Double_t &y, TList *list, const TString &name)
 
void DivideForRings (Bool_t commonX, Bool_t commonY)
 
TVirtualPad * RingPad (UShort_t d, Char_t r) const
 
TVirtualPad * RingPad (const char *name) const
 
void DrawInRingPad (UShort_t d, Char_t r, TObject *h, Option_t *opts="", UShort_t flags=0x0, const char *title="")
 
void DrawInRingPad (const char *name, TObject *h, Option_t *opts="", UShort_t flags=0x0, const char *title="")
 
void DrawInRingPad (TObject *h, Option_t *opts="", UShort_t flags=0x0, const char *title="")
 
void Pause ()
 
virtual void DrawEventInspector (TCollection *parent)
 
virtual void DrawESDFixer (TCollection *parent)
 
void DrawTrackDensity (TCollection *parent, const char *folderName="mcTrackDensity")
 

Additional Inherited Members

- Public Types inherited from SummaryDrawer
enum  {
  kLogx = 0x1, kLogy = 0x2, kLogz = 0x4, kLegend = 0x10,
  kGridx = 0x100, kGridy = 0x200, kGridz = 0x400, kSilent = 0x800,
  kNorth = 0x1000, kMiddle = 0x2000, kSouth = 0x3000, kEast = 0x10000,
  kCenter = 0x20000, kWest = 0x30000
}
 
enum  { kLandscape = 0x100, kPause = 0x200 }
 
- Static Protected Member Functions inherited from SummaryDrawer
static const Char_t ** GetRingNames (Bool_t lower=false)
 
static Color_t RingColor (UShort_t d, Char_t r)
 
static void SysString (UShort_t sys, TString &str)
 
static void SNNString (UShort_t sNN, TString &str)
 
static void AppendAnd (TString &trg, const TString &what)
 
static void TriggerString (ULong_t trigger, TString &str)
 
static TObjectGetObject (const TObject *parent, const TString &name, Bool_t verb=true)
 
static Bool_t CheckType (const TObject *o, const TClass *cl, const TString &src)
 
template<typename T >
static TDoGetObject (TObject *o, const TObject *p)
 
template<typename T >
static Bool_t DoGetParameter (TObject *o, const TObject *p, T &value)
 
static Bool_t GetParameter (const TObject *c, const TString &name, Short_t &value, Bool_t verb=true)
 
static Bool_t GetParameter (const TObject *c, const TString &name, UShort_t &value, Bool_t verb=true)
 
static Bool_t GetParameter (const TObject *c, const TString &name, ULong_t &value, Bool_t verb=true)
 
static Bool_t GetParameter (const TObject *c, const TString &name, Int_t &value, Bool_t verb=true)
 
static Bool_t GetParameter (const TObject *c, const TString &name, Double_t &value, Bool_t verb=true)
 
static Bool_t GetParameter (const TObject *c, const TString &name, Bool_t &value, Bool_t verb=true)
 
static TCollectionGetCollection (const TObject *parent, const TString &name, Bool_t verb=true)
 
static TH1GetH1 (const TObject *parent, const TString &name, Bool_t verb=true)
 
static TH2GetH2 (const TObject *parent, const TString &name, Bool_t verb=true)
 
static TH3GetH3 (const TCollection *parent, const TString &name, Bool_t verb=true)
 
static THStack * GetStack (const TObject *parent, const TString &name, const char *sub=0, Bool_t verb=true)
 
static void GetLegendPosition (UInt_t flags, TVirtualPad *p, Double_t &x1, Double_t &y1, Double_t &x2, Double_t &y2)
 
static void CompileScript (const TString &name, const TString &sub, const TString &check, Bool_t force)
 
- Protected Attributes inherited from SummaryDrawer
TCanvas * fCanvas
 
TPad * fTop
 
TPad * fBody
 
TLatex * fHeader
 
TLatex * fParName
 
TLatex * fParVal
 
Bool_t fPause
 
Bool_t fLandscape
 
TVirtualPad ** fRingMap
 
Bool_t fPDF
 
TString fLastTitle
 

Detailed Description

Definition at line 23 of file CorrDrawer.C.

Constructor & Destructor Documentation

CorrDrawer::CorrDrawer ( )
inline

Constructor

Definition at line 31 of file CorrDrawer.C.

Referenced by Summarize().

CorrDrawer::~CorrDrawer ( )
inline

Destructor. Closes the PDF

Definition at line 39 of file CorrDrawer.C.

Member Function Documentation

void CorrDrawer::AppendName ( TString what,
UShort_t  which 
)
inlineprotected

Append a name to output prefix

Parameters
whatWhat to append to
whichWhich string to append

Definition at line 415 of file CorrDrawer.C.

Referenced by Run().

virtual TString CorrDrawer::CanvasName ( const char *  def)
inlineprotectedvirtual

Get the canvas name. If the auxillary file has been set, use that as the base of the canvas name. Otherwise use def.

Parameters
defDefault value
Returns
Canvas name

Definition at line 491 of file CorrDrawer.C.

Referenced by Summarize().

TObjArray* CorrDrawer::CreateVtxStacks ( const TAxis vtxAxis)
inlineprotected

Create an array of per-vertex bin stacks

Parameters
vtxAxisVertex axis
Returns
Array of stacks

Definition at line 1064 of file CorrDrawer.C.

Referenced by DrawIt().

virtual void CorrDrawer::Draw ( const TObject o)
inlinevirtual

Fall-back method

Parameters
oObject to draw

Definition at line 223 of file CorrDrawer.C.

virtual void CorrDrawer::Draw ( const AliFMDCorrAcceptance acc)
inlinevirtual

Draw a single plot of the mean acceptance correction

Parameters
accAcceptance correction

Definition at line 234 of file CorrDrawer.C.

virtual void CorrDrawer::Draw ( const AliFMDCorrSecondaryMap sec)
inlinevirtual

Draw a single plot of the mean secondary correction

Parameters
secSecondary correction

Definition at line 240 of file CorrDrawer.C.

virtual void CorrDrawer::Draw ( const AliFMDCorrELossFit fits)
inlinevirtual

Draw a single plot summarizing the energy loss fits

Parameters
fitsEnergy loss fits

Definition at line 246 of file CorrDrawer.C.

void CorrDrawer::DrawELossFits ( UShort_t  d,
Char_t  r,
TObjArray ra,
TList dists,
TList resis,
bool  few 
)
inlineprotected

CINT does too much when optimizing on a loop, so we take this out to force CINT to not optimize the third nested loop.

Parameters
dDetector
rRing
raRing array
distsDistributions (optional)
resisResiduals (optional)
fewA few

Definition at line 955 of file CorrDrawer.C.

Referenced by DrawIt().

virtual void CorrDrawer::DrawIt ( const TObject o)
inlineprotectedvirtual

Fall-back method

Parameters
oObject to summarize

Definition at line 505 of file CorrDrawer.C.

Referenced by Run(), and Summarize().

virtual void CorrDrawer::DrawIt ( const AliFMDCorrAcceptance corr,
Bool_t  details = true 
)
inlineprotectedvirtual

Draw the acceptance correction

Parameters
corrCorrection
detailsIf true, make a multipage PDF, otherwise plot the mean.

Definition at line 517 of file CorrDrawer.C.

virtual void CorrDrawer::DrawIt ( const AliFMDCorrSecondaryMap corr,
bool  details 
)
inlineprotectedvirtual

Draw the secondary correction

Parameters
corrCorrection
detailsIf true, make a multipage PDF, otherwise plot the mean.

Definition at line 640 of file CorrDrawer.C.

virtual void CorrDrawer::DrawIt ( const AliFMDCorrNoiseGain corr,
bool   
)
inlineprotectedvirtual

Definition at line 732 of file CorrDrawer.C.

virtual void CorrDrawer::DrawIt ( const AliFMDCorrELossFit corr,
bool  details,
bool  few = true 
)
inlineprotectedvirtual

Draw the energy loss fits correction

Parameters
corrCorrection
detailsIf true, make a multipage PDF, otherwise plot the parameters.
fewOnly a few

Definition at line 780 of file CorrDrawer.C.

Bool_t CorrDrawer::DrawVtxStacks ( TObjArray stacks,
Double_t  max = -1 
)
inlineprotected

Draw the vertex stacks in the canvas

Parameters
stacksStacks to draw
maxPossible maximum of the stacks
Returns
true on success

Definition at line 1086 of file CorrDrawer.C.

Referenced by DrawIt().

virtual Bool_t CorrDrawer::GetInformation ( ULong_t runNo,
UShort_t sys,
UShort_t sNN,
Short_t fld,
Bool_t mc,
Bool_t sat 
)
inlineprotectedvirtual

Get information from auxillary file

Parameters
runNoOn return, the run number
sysOn return, the collision system
sNNOn return, the collision energy
fldOn return, the L3 magnetic field
mcOn return, true for MC input
satOn return, true for satellite input enabled
Returns
true on success, false otherwise

Definition at line 444 of file CorrDrawer.C.

Referenced by Run().

static void CorrDrawer::MakeFileName ( TString out,
const TString prefix 
)
inlinestatic

Create output file name

Parameters
outOutput file name on return
prefixPrefix of the file name

Definition at line 49 of file CorrDrawer.C.

Referenced by Run().

void CorrDrawer::Run ( const Char_t what,
const Char_t extra,
Option_t options = "",
const Char_t local = "" 
)
inline

Run the correction drawer, fetching information from extra file

Parameters
whatWhat to draw
extraExtra file
optionsOptions
localLocal DB

Definition at line 63 of file CorrDrawer.C.

Referenced by DrawCorrAcc(), DrawCorrSecMap(), Run(), and Summarize().

void CorrDrawer::Run ( UShort_t  what,
const Char_t extra,
Option_t options = "",
const Char_t local = "" 
)
inline

Run the correction drawer, fetching information from extra file

Parameters
whatWhat to draw
extraExtra file
optionsOptions
localLocal DB

Definition at line 79 of file CorrDrawer.C.

void CorrDrawer::Run ( const Char_t what,
ULong_t  runNo,
const Char_t sys,
UShort_t  sNN,
UShort_t  field,
Bool_t  mc = false,
Bool_t  sat = false,
Option_t options = "",
const char *  local = "" 
)
inline

Draw corrections using the correction manager to get them

Parameters
whatWhat to draw
runNoRun Number
sysCollision system
sNNCenter of mass energy
fieldL3 Field
mcSimulations or not
satSatellite interactions or not
optionsOptions
localLocal database file

Definition at line 109 of file CorrDrawer.C.

void CorrDrawer::Run ( UShort_t  what,
ULong_t  runNo,
UShort_t  sys,
UShort_t  sNN,
UShort_t  field,
Bool_t  mc = false,
Bool_t  sat = false,
Option_t options = "",
const char *  local = "" 
)
inline

Draw corrections using the correction manager to get them

Parameters
whatWhat to draw
runNoRun Number
sysCollision system
sNNCenter of mass energy
fieldL3 Field
mcSimulations or not
satSatellite interactions or not
optionsOptions
localLocal database file

Definition at line 136 of file CorrDrawer.C.

virtual void CorrDrawer::Summarize ( const TString what,
ULong_t  runNo,
const Char_t sys,
UShort_t  sNN,
Short_t  field,
Bool_t  mc = false,
Bool_t  sat = false,
Option_t options = "",
const char *  local = "" 
)
inlinevirtual

A generalized entry to the summarization functions

Parameters
whatWhat to show - only one field
runNoRun number
sysSystem
sNNCenter of mass energy in GeV
fieldL3 magnetic field
mcSimulation flag
satSatellite interaction flag
optionsOptions
localLocal storage
Deprecated:
See Run instead

Definition at line 262 of file CorrDrawer.C.

Referenced by Draw(), and DrawCorrELoss().

virtual void CorrDrawer::Summarize ( UShort_t  what,
ULong_t  runNo,
UShort_t  sys,
UShort_t  sNN,
Short_t  field,
Bool_t  mc = false,
Bool_t  sat = false,
Option_t options = "",
const char *  local = "" 
)
inlinevirtual

A generalized entry to the summarization functions

Parameters
whatWhat to show - only one field
runNoRun number
sysSystem
sNNCenter of mass energy in GeV
fieldL3 magnetic field
mcSimulation flag
satSatellite interaction flag
optionsOptions
localLocal storage
Deprecated:
See Run instead

Definition at line 291 of file CorrDrawer.C.

virtual void CorrDrawer::Summarize ( const TObject o,
Bool_t  pdf = true 
)
inlinevirtual

Fall-back method

Parameters
oObject to draw
pdfNot used

Definition at line 309 of file CorrDrawer.C.

virtual void CorrDrawer::Summarize ( const AliFMDCorrAcceptance acc,
Bool_t  pdf = true 
)
inlinevirtual

Draw a single summary plot or multiple plots of the acceptance correction. A new Canvas is created for this.

Parameters
accAcceptance correction
pdfIf true, do multiple plots. Otherwise a single summary plot

Definition at line 322 of file CorrDrawer.C.

virtual void CorrDrawer::Summarize ( const AliFMDCorrSecondaryMap sec,
Bool_t  pdf = true 
)
inlinevirtual

Draw a single summary plot multiple plots of the secondary correction. A new canvas is created for this.

Parameters
secSecondary correction
pdfIf true, do multiple plots. Otherwise a single summary plot

Definition at line 335 of file CorrDrawer.C.

virtual void CorrDrawer::Summarize ( const AliFMDCorrNoiseGain corr,
Bool_t  pdf = true 
)
inlinevirtual

Draw a single summary plot multiple plots of the energy loss fits. A new canvas is created for this.

Parameters
corrEnergy loss fits
pdfIf true, do multiple plots. Otherwise a single summary plot

Definition at line 348 of file CorrDrawer.C.

virtual void CorrDrawer::Summarize ( const AliFMDCorrELossFit fits,
Bool_t  pdf = true 
)
inlinevirtual

Draw a single summary plot multiple plots of the energy loss fits. A new canvas is created for this.

Parameters
fitsEnergy loss fits
pdfIf true, do multiple plots. Otherwise a single summary plot

Definition at line 361 of file CorrDrawer.C.

static void CorrDrawer::Summarize ( const TString what = "",
Bool_t  = false,
const TString output = "",
const TString local = "fmd_corrections.root",
Option_t options = "" 
)
inlinestatic

Draw a single summary plot/multiple plots of the correction. A new canvas is created for this.

Parameters
whatWhat to plot
outputOutput of correction pass (must exist)
localLocal storage of correction
optionsVarious options
Deprecated:
Use Run instead

Definition at line 378 of file CorrDrawer.C.

static void CorrDrawer::Summarize ( UShort_t  what,
Bool_t  = false,
const TString output = "",
const TString local = "fmd_corrections.root",
Option_t options = "" 
)
inlinestatic

Draw a single summary plot/multiple plots of the correction. A new canvas is created for this.

Parameters
whatWhat to plot
outputOutput of correction pass (must exist)
localLocal storage of correction
optionsVarious options
Deprecated:
Use Run instead

Definition at line 399 of file CorrDrawer.C.

Member Data Documentation

TString CorrDrawer::fELossExtra

Definition at line 26 of file CorrDrawer.C.

Referenced by CanvasName(), CorrDrawer(), DrawCorrELoss(), DrawIt(), GetInformation(), and Run().

UShort_t CorrDrawer::fMinQuality

Definition at line 27 of file CorrDrawer.C.

Referenced by CorrDrawer(), DrawCorrELoss(), DrawELossFits(), and DrawIt().


The documentation for this class was generated from the following file: