AliPhysics  a56b849 (a56b849)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MultCutDrawer Struct Reference
Inheritance diagram for MultCutDrawer:

Public Member Functions

 MultCutDrawer ()
 
 MultCutDrawer (const MultCutDrawer &o)
 
MultCutDraweroperator= (const MultCutDrawer &o)
 
 ~MultCutDrawer ()
 
void Run (ULong_t runNo=999, UShort_t sys=0, UShort_t sNN=0, Short_t field=999, Bool_t mc=false, const Char_t *local=0)
 
void DrawMethodLegend (Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 
void DrawValueLegend (THStack *stack, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 
THStack * AllStack (Int_t i)
 
TMultiGraph * AllSummary (const TString &method, const TString &title)
 
TGraphErrorsFindSummary (TMultiGraph *summaries, const TString &n, const TString &method, Color_t col, Style_t style)
 
THStack * CutStack (const TString &method, Double_t *param, THStack *all, TMultiGraph *summaries)
 
Bool_t Init (ULong_t runNo=999, UShort_t sys=0, UShort_t sNN=0, Short_t field=999, Bool_t mc=false, Bool_t sat=false, const Char_t *local=0)
 
- Public Member Functions inherited from SummaryDrawer
 SummaryDrawer ()
 
virtual ~SummaryDrawer ()
 

Static Public Member Functions

static Style_t CutStyle (UShort_t m)
 
static void Statistics (Double_t y, Int_t &cnt, Double_t &mean, Double_t &var)
 
static void HistStatistics (const TH1 *h, Double_t &mean, Double_t &var, Double_t &min, Double_t &max, Int_t &rCnt, Double_t &rMean, Double_t &rVar)
 

Public Attributes

UShort_t fMinQuality
 
TList fCuts
 
TList fStacks
 
TList fMultiGraphs
 
Bool_t fMC
 

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 }
 
- 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")
 
- 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 25 of file MultCutDrawer.C.

Constructor & Destructor Documentation

MultCutDrawer::MultCutDrawer ( )
inline

Constructor

Definition at line 36 of file MultCutDrawer.C.

MultCutDrawer::MultCutDrawer ( const MultCutDrawer o)
inline

Copy constructor

Parameters
oObject to copy from

Definition at line 71 of file MultCutDrawer.C.

MultCutDrawer::~MultCutDrawer ( )
inline

Destructor

Definition at line 98 of file MultCutDrawer.C.

Member Function Documentation

THStack* MultCutDrawer::AllStack ( Int_t  i)
inline

Get stack at i. If the stack doesn't exist, make it

Parameters
iLocation (0-based)
Returns
Stack

Definition at line 324 of file MultCutDrawer.C.

Referenced by Run().

TMultiGraph* MultCutDrawer::AllSummary ( const TString method,
const TString title 
)
inline

Get multigraph at i. If the stack doesn't exist, make it

Parameters
methodMethod used
titleTitle on plot
Returns
Stack

Definition at line 341 of file MultCutDrawer.C.

Referenced by Run().

THStack* MultCutDrawer::CutStack ( const TString method,
Double_t param,
THStack *  all,
TMultiGraph *  summaries 
)
inline

Create a stack from cuts

Parameters
methodMethod to use
paramParameters
allStack to add for this set of parameters
summariesList of summaries
Returns
Newly created stack

Definition at line 470 of file MultCutDrawer.C.

Referenced by Run().

static Style_t MultCutDrawer::CutStyle ( UShort_t  m)
inlinestatic

Get the marker styoe associated with a cut

Parameters
mCut identifier
Returns
Marker style

Definition at line 391 of file MultCutDrawer.C.

Referenced by CutStack(), DrawMethodLegend(), and DrawValueLegend().

void MultCutDrawer::DrawMethodLegend ( Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2 
)
inline

Draw legend of methods

Parameters
x1Left x
y1Lower y
x2Right x
y2Upper y

Definition at line 255 of file MultCutDrawer.C.

Referenced by Run().

void MultCutDrawer::DrawValueLegend ( THStack *  stack,
Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2 
)
inline

Draw a value legend

Parameters
stackStack to take values from
x1Left x
y1Lower y
x2Right x
y2Upper y

Definition at line 286 of file MultCutDrawer.C.

Referenced by Run().

TGraphErrors* MultCutDrawer::FindSummary ( TMultiGraph *  summaries,
const TString n,
const TString method,
Color_t  col,
Style_t  style 
)
inline

Find summary

Parameters
summariesList of summaries
nWhich name
methodWhich method
colThe color to use
styleThe style to use
Returns
Found graph or null

Definition at line 360 of file MultCutDrawer.C.

Referenced by CutStack().

static void MultCutDrawer::HistStatistics ( const TH1 h,
Double_t mean,
Double_t var,
Double_t min,
Double_t max,
Int_t rCnt,
Double_t rMean,
Double_t rVar 
)
inlinestatic

Calculate statistics for a histogram

Parameters
hHistogram
meanOn return, the mean of y
varOn return, the variance in y
minOn return, the least y
maxOn return, the largest y
rCntIn/out: Current count
rMeanIn/out: Current mean
rVarIn/out: Current variance

Definition at line 434 of file MultCutDrawer.C.

Referenced by CutStack().

Bool_t MultCutDrawer::Init ( ULong_t  runNo = 999,
UShort_t  sys = 0,
UShort_t  sNN = 0,
Short_t  field = 999,
Bool_t  mc = false,
Bool_t  sat = false,
const Char_t local = 0 
)
inline

Initialize

Parameters
runNoRun number (or 999 for don't care)
sysSystem (or 0 for don't care)
sNNCollision energy in GeV (or 0 for don't care)
fieldL3 Field in kG (or 999 for don't care)
mcTrue of MC
satTrue for including satellite collisions
localPossible local database
Returns
true on sucess

Definition at line 584 of file MultCutDrawer.C.

Referenced by Run().

MultCutDrawer& MultCutDrawer::operator= ( const MultCutDrawer o)
inline

Assignment operator

Parameters
oObejct to assign from
Returns
Reference to this

Definition at line 86 of file MultCutDrawer.C.

void MultCutDrawer::Run ( ULong_t  runNo = 999,
UShort_t  sys = 0,
UShort_t  sNN = 0,
Short_t  field = 999,
Bool_t  mc = false,
const Char_t local = 0 
)
inline

Run the class

Parameters
runNoRun number (or 999 for don't care)
sysSystem (or 0 for don't care)
sNNCollision energy in GeV (or 0 for don't care)
fieldL3 Field in kG (or 999 for don't care)
mcTrue of MC
localPossible local database

Definition at line 113 of file MultCutDrawer.C.

Referenced by DrawMultCuts().

static void MultCutDrawer::Statistics ( Double_t  y,
Int_t cnt,
Double_t mean,
Double_t var 
)
inlinestatic

Update statistics

Parameters
yCurrent value
cntCurrent count
meanCurrent mean
varCurrent variance

Definition at line 412 of file MultCutDrawer.C.

Referenced by HistStatistics().

Member Data Documentation

TList MultCutDrawer::fCuts

Definition at line 28 of file MultCutDrawer.C.

Referenced by DrawMethodLegend(), MultCutDrawer(), operator=(), and Run().

Bool_t MultCutDrawer::fMC

Definition at line 31 of file MultCutDrawer.C.

Referenced by CutStack(), and Init().

UShort_t MultCutDrawer::fMinQuality

Definition at line 27 of file MultCutDrawer.C.

Referenced by operator=().

TList MultCutDrawer::fMultiGraphs

Definition at line 30 of file MultCutDrawer.C.

Referenced by AllSummary(), and Run().

TList MultCutDrawer::fStacks

Definition at line 29 of file MultCutDrawer.C.

Referenced by AllStack(), operator=(), and Run().


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