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

Public Types

enum  EFlags {
  kEventInspector = 0x001, kSharingFilter = 0x002, kDensityCalculator = 0x004, kCorrector = 0x008,
  kHistCollector = 0x010, kSteps = 0x020, kResults = 0x040, kCentral = 0x080,
  kESDFixer = 0x100, kNormal = 0x1FF
}
 
- 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 }
 

Public Member Functions

 SummaryAODDrawer ()
 
TFile * Init (const char *fname)
 
void SummarizeSharing (const char *fname, UShort_t what=0)
 
void SummarizeSteps (const char *fname, UShort_t what=0)
 
void Run (const char *fname, UShort_t what=kNormal)
 
- Public Member Functions inherited from SummaryDrawer
 SummaryDrawer ()
 
virtual ~SummaryDrawer ()
 

Protected Member Functions

void DrawTitlePage (TFile *f)
 
TGraphCreateCutGraph (Int_t method, Int_t iy, TH2 *cuts, TH1 *eloss, Int_t color)
 
const Char_tCutMethodName (Int_t lm) const
 
Int_t PrintCut (const TCollection *c, Double_t &y, const Char_t *name, Double_t size=0)
 
void DrawCut (TVirtualPad *parent, Int_t sub, TH2 *cuts)
 
void DrawSharingFilter ()
 
void ShowSliceFit (Bool_t inY, TH2 *h, Double_t nVar, TVirtualPad *p, Int_t sub, UShort_t flags=0, Double_t cut=-1)
 
void DrawDensityCalculator ()
 
void DrawCorrector ()
 
void DrawHistCollector ()
 
void DrawCentral ()
 
void AddToAll (THStack *all, const THStack *stack, Int_t curr, Int_t step)
 
void AddToAll (THStack *all, const THStack *stack)
 
void DrawStep (Int_t step, THStack *all, TObject *cur, TLegend *leg, const char *title, TVirtualPad *can, Int_t sub, Int_t nCol)
 
void FixStack (THStack *stack, const TString &title, const TString &extra, Int_t marker)
 
void AddLegendEntry (TLegend *l, const TH1 *h, const TString &title)
 
void DrawSteps ()
 
void DrawResults ()
 
void DrawCentralResults ()
 
void DrawBoth (TFile *file)
 
- 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")
 

Protected Attributes

TCollectionfSums
 
TCollectionfResults
 
- 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
 

Additional Inherited Members

- 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)
 

Detailed Description

Class to draw a summary of the AOD production

Input:
  • The merged forward.root file. If the file isn't merged, it should still work.
Output:
  • A PDF file named after the input, but with .root replaced with pdf

Definition at line 24 of file SummaryAODDrawer.C.

Member Enumeration Documentation

Enumerator
kEventInspector 
kSharingFilter 
kDensityCalculator 
kCorrector 
kHistCollector 
kSteps 
kResults 
kCentral 
kESDFixer 
kNormal 

Definition at line 27 of file SummaryAODDrawer.C.

Constructor & Destructor Documentation

SummaryAODDrawer::SummaryAODDrawer ( )
inline

Definition at line 39 of file SummaryAODDrawer.C.

Member Function Documentation

void SummaryAODDrawer::AddLegendEntry ( TLegend *  l,
const TH1 h,
const TString title 
)
inlineprotected

Definition at line 1347 of file SummaryAODDrawer.C.

Referenced by DrawSteps().

void SummaryAODDrawer::AddToAll ( THStack *  all,
const THStack *  stack,
Int_t  curr,
Int_t  step 
)
inlineprotected

Definition at line 1212 of file SummaryAODDrawer.C.

Referenced by DrawSteps().

void SummaryAODDrawer::AddToAll ( THStack *  all,
const THStack *  stack 
)
inlineprotected

Definition at line 1229 of file SummaryAODDrawer.C.

TGraph* SummaryAODDrawer::CreateCutGraph ( Int_t  method,
Int_t  iy,
TH2 cuts,
TH1 eloss,
Int_t  color 
)
inlineprotected

Definition at line 302 of file SummaryAODDrawer.C.

Referenced by DrawDensityCalculator(), DrawSharingFilter(), and SummarizeSharing().

const Char_t* SummaryAODDrawer::CutMethodName ( Int_t  lm) const
inlineprotected

Definition at line 338 of file SummaryAODDrawer.C.

Referenced by PrintCut().

void SummaryAODDrawer::DrawBoth ( TFile *  file)
inlineprotected

Definition at line 1620 of file SummaryAODDrawer.C.

Referenced by Run().

void SummaryAODDrawer::DrawCentral ( )
inlineprotected

Definition at line 1136 of file SummaryAODDrawer.C.

Referenced by Run().

void SummaryAODDrawer::DrawCentralResults ( )
inlineprotected

Definition at line 1585 of file SummaryAODDrawer.C.

Referenced by Run().

void SummaryAODDrawer::DrawCorrector ( )
inlineprotected

Definition at line 1005 of file SummaryAODDrawer.C.

Referenced by Run().

void SummaryAODDrawer::DrawCut ( TVirtualPad *  parent,
Int_t  sub,
TH2 cuts 
)
inlineprotected

Definition at line 379 of file SummaryAODDrawer.C.

Referenced by DrawDensityCalculator(), and DrawSharingFilter().

void SummaryAODDrawer::DrawDensityCalculator ( )
inlineprotected

Definition at line 736 of file SummaryAODDrawer.C.

Referenced by Run().

void SummaryAODDrawer::DrawHistCollector ( )
inlineprotected

Definition at line 1040 of file SummaryAODDrawer.C.

Referenced by Run().

void SummaryAODDrawer::DrawResults ( )
inlineprotected

Definition at line 1502 of file SummaryAODDrawer.C.

Referenced by Run().

void SummaryAODDrawer::DrawSharingFilter ( )
inlineprotected

Definition at line 404 of file SummaryAODDrawer.C.

Referenced by Run().

void SummaryAODDrawer::DrawStep ( Int_t  step,
THStack *  all,
TObject cur,
TLegend *  leg,
const char *  title,
TVirtualPad *  can,
Int_t  sub,
Int_t  nCol 
)
inlineprotected

Definition at line 1245 of file SummaryAODDrawer.C.

Referenced by DrawSteps().

void SummaryAODDrawer::DrawSteps ( )
inlineprotected

Definition at line 1362 of file SummaryAODDrawer.C.

Referenced by Run(), and SummarizeSteps().

void SummaryAODDrawer::DrawTitlePage ( TFile *  f)
inlineprotected

Definition at line 253 of file SummaryAODDrawer.C.

Referenced by Run().

void SummaryAODDrawer::FixStack ( THStack *  stack,
const TString title,
const TString extra,
Int_t  marker 
)
inlineprotected

Definition at line 1332 of file SummaryAODDrawer.C.

Referenced by DrawSteps().

TFile* SummaryAODDrawer::Init ( const char *  fname)
inline

Definition at line 45 of file SummaryAODDrawer.C.

Referenced by Run(), SummarizeSharing(), and SummarizeSteps().

Int_t SummaryAODDrawer::PrintCut ( const TCollection c,
Double_t y,
const Char_t name,
Double_t  size = 0 
)
inlineprotected

Definition at line 351 of file SummaryAODDrawer.C.

Referenced by DrawDensityCalculator(), and DrawSharingFilter().

void SummaryAODDrawer::Run ( const char *  fname,
UShort_t  what = kNormal 
)
inline
Parameters
fname
what

Definition at line 184 of file SummaryAODDrawer.C.

Referenced by DrawAODSummary().

void SummaryAODDrawer::ShowSliceFit ( Bool_t  inY,
TH2 h,
Double_t  nVar,
TVirtualPad *  p,
Int_t  sub,
UShort_t  flags = 0,
Double_t  cut = -1 
)
inlineprotected

Draw a slice fit on a 2D histogram

Parameters
inYWhether to slice in Y
h2D histogram
nVarNumber of variances
pMaster pad to draw in
subSub pad number
flagsFlags
cutCut value

Definition at line 603 of file SummaryAODDrawer.C.

Referenced by DrawCentral(), and DrawDensityCalculator().

void SummaryAODDrawer::SummarizeSharing ( const char *  fname,
UShort_t  what = 0 
)
inline

Definition at line 69 of file SummaryAODDrawer.C.

void SummaryAODDrawer::SummarizeSteps ( const char *  fname,
UShort_t  what = 0 
)
inline

Definition at line 163 of file SummaryAODDrawer.C.

Member Data Documentation

TCollection* SummaryAODDrawer::fResults
protected

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