AliPhysics  ed43440 (ed43440)
Trend Struct Reference
Inheritance diagram for Trend:

Public Member Functions

 Trend ()
 
void AddSLCut (const TString &name, const TString &values)
 
void AddSHCut (const TString &name, const TString &values)
 
void AddDCCut (const TString &name, const TString &values)
 
void AddRun (const TString &name)
 
void AddCentrality (UShort_t l, UShort_t h)
 
void SetOrder (const TString &order)
 
void Run (const char *output="trending.root", UShort_t sys=2, UShort_t sNN=2760, UShort_t trg=1)
 
void LoopCuts (const TString &run, const TString &cur, const TList *cuts1, const TList *cuts2, const TList *cuts3, TDirectory *out, Int_t upBin=0, THStack *upMean=0, THStack *upRatios=0)
 
Bool_t NextFile (const TString &run, const TString &now, TDirectory *out, Int_t binx, THStack *mean, THStack *ratios)
 
void MakeStacks (const TString &run, const TObjArray *values, THStack *&mean, THStack *&ratios)
 
void UpdateStacks (TH1 *h, Int_t i, Int_t binx, THStack *stack)
 
void BuildCentLegend (TVirtualPad *p, UInt_t where, THStack *stack=0)
 
void BuildCutLegend (TVirtualPad *p, UInt_t where, THStack *stack)
 
void DrawStacks (TVirtualPad *p, THStack *stack, UInt_t cent=0, UInt_t cuts=0)
 
- Public Member Functions inherited from SummaryDrawer
 SummaryDrawer ()
 
virtual ~SummaryDrawer ()
 

Static Public Member Functions

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)
 
static void FixMinMax (THStack *stack)
 
static TH1G2H (const TGraph *g, const TAxis &axis)
 
static TGraphGetOther (UShort_t sys, UShort_t sNN, UShort_t trg, UShort_t lowC, UShort_t highC)
 

Public Attributes

TList fSLCuts
 
TList fSHCuts
 
TList fDCCuts
 
TList fRuns
 
TList fCents
 
TList fOthers
 
TListfOrder [3]
 
Bool_t fRebinned
 

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

Structure to make trendind plots from cut scans

Definition at line 16 of file Trend.C.

Constructor & Destructor Documentation

Trend::Trend ( )
inline

Constructor

Definition at line 22 of file Trend.C.

Member Function Documentation

void Trend::AddCentrality ( UShort_t  l,
UShort_t  h 
)
inline

Add a centrality bin to analyse

Parameters
lLower bound
hUpper bound

Definition at line 81 of file Trend.C.

Referenced by MakeTrend().

void Trend::AddDCCut ( const TString name,
const TString values 
)
inline

Add a density calculator threshold

Parameters
nameName of the cut type (fix,mpv,sig,xi,prob)
valuesSpace-separated cut parameters

Definition at line 60 of file Trend.C.

Referenced by MakeTrend().

void Trend::AddRun ( const TString name)
inline

Add a run to analyse

Parameters
nameRun number

Definition at line 70 of file Trend.C.

Referenced by MakeTrend().

void Trend::AddSHCut ( const TString name,
const TString values 
)
inline

Add a sharing filter high cut

Parameters
nameName of the cut type (fix,mpv,sig,xi,prob)
valuesSpace-separated cut parameters

Definition at line 49 of file Trend.C.

Referenced by MakeTrend().

void Trend::AddSLCut ( const TString name,
const TString values 
)
inline

Add a sharing filter low cut

Parameters
nameName of the cut type (fix,mpv,sig,xi,prob)
valuesSpace-separated cut parameters

Definition at line 38 of file Trend.C.

Referenced by MakeTrend().

void Trend::BuildCentLegend ( TVirtualPad *  p,
UInt_t  where,
THStack *  stack = 0 
)
inline

Build a centrality legend

Parameters
pPad
whereSee above
stackStack to make legend for

Definition at line 537 of file Trend.C.

Referenced by DrawStacks().

void Trend::BuildCutLegend ( TVirtualPad *  p,
UInt_t  where,
THStack *  stack 
)
inline

Make a cut legend.

Parameters
pPad
whereSee above
stackStack to make legend for

Definition at line 571 of file Trend.C.

Referenced by DrawStacks().

void Trend::DrawStacks ( TVirtualPad *  p,
THStack *  stack,
UInt_t  cent = 0,
UInt_t  cuts = 0 
)
inline

Draw stacks

Parameters
pPad
stackStacks
centCentrality legend location
cutsCut legend location

Definition at line 617 of file Trend.C.

Referenced by LoopCuts(), and NextFile().

static void Trend::FixMinMax ( THStack *  stack)
inlinestatic

Fix the min/max of a stack

Parameters
stack

Definition at line 701 of file Trend.C.

Referenced by DrawStacks(), LoopCuts(), and NextFile().

static TH1* Trend::G2H ( const TGraph g,
const TAxis axis 
)
inlinestatic

Turn a graph into a histogram

Parameters
gGraph
axisAxis to use
Returns
Newly allocated histogram

Definition at line 726 of file Trend.C.

Referenced by NextFile().

static TGraph* Trend::GetOther ( UShort_t  sys,
UShort_t  sNN,
UShort_t  trg,
UShort_t  lowC,
UShort_t  highC 
)
inlinestatic

Get other data

Parameters
sysCollision system
sNNCollision energy
trgTrigger
lowCLow centrality
highCHigh centrality
Returns
Newly allocated histogram

Definition at line 764 of file Trend.C.

Referenced by Run().

static void Trend::HistStatistics ( const TH1 h,
Double_t mean,
Double_t var,
Double_t min,
Double_t max 
)
inlinestatic

Calculate histogram statistics

Parameters
hHistogram
meanOn return, the Y-mean
varOn return, the Y variance
minOn return, the least Y
maxOn return, the largest Y

Definition at line 674 of file Trend.C.

Referenced by UpdateStacks().

void Trend::LoopCuts ( const TString run,
const TString cur,
const TList cuts1,
const TList cuts2,
const TList cuts3,
TDirectory *  out,
Int_t  upBin = 0,
THStack *  upMean = 0,
THStack *  upRatios = 0 
)
inline

Loop over cuts. Recursively calls self.

Parameters
runRun number
curCurrent path
cuts1Cuts
cuts2Cuts (or null)
cuts3Cuts (or null)
outOutput diretory
upBinParents bin number
upMeanParents mean
upRatiosParents ratios

Definition at line 198 of file Trend.C.

Referenced by Run().

void Trend::MakeStacks ( const TString run,
const TObjArray values,
THStack *&  mean,
THStack *&  ratios 
)
inline

Make stacks

Parameters
runRun number
valuesCut parameters
meanStack of means
ratiosStack of ratios

Definition at line 443 of file Trend.C.

Referenced by LoopCuts().

Bool_t Trend::NextFile ( const TString run,
const TString now,
TDirectory *  out,
Int_t  binx,
THStack *  mean,
THStack *  ratios 
)
inline

Process the next file

Parameters
runRun
nowTime
outOutput directory
binxBin number
meanGraphs of mean +/- variance
ratiosRatios stack
Returns
true on success

Definition at line 321 of file Trend.C.

Referenced by LoopCuts().

void Trend::Run ( const char *  output = "trending.root",
UShort_t  sys = 2,
UShort_t  sNN = 2760,
UShort_t  trg = 1 
)
inline

Run it

Parameters
output
sys
sNN
trg

Definition at line 129 of file Trend.C.

Referenced by MakeTrend().

void Trend::SetOrder ( const TString order)
inline

Set the order in which to do the comparison. Most important should be last.

Parameters
orderPermutation of sl, sh, and dc, space separated

Definition at line 96 of file Trend.C.

Referenced by MakeTrend().

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

Update statistics

Parameters
yCurrent observation
cntOn entry, last count, on return current count
meanOn entry, last mean, on return current mean
varOn entry, last variance, on return current variance

Definition at line 655 of file Trend.C.

Referenced by HistStatistics().

void Trend::UpdateStacks ( TH1 h,
Int_t  i,
Int_t  binx,
THStack *  stack 
)
inline

Update stacks

Parameters
hHistogram
iIndex
binxBin number
stackStack to update

Definition at line 501 of file Trend.C.

Referenced by LoopCuts(), and NextFile().

Member Data Documentation

TList Trend::fCents

Definition at line 807 of file Trend.C.

Referenced by AddCentrality(), BuildCentLegend(), LoopCuts(), MakeStacks(), NextFile(), and Run().

TList Trend::fDCCuts

Definition at line 805 of file Trend.C.

Referenced by AddDCCut(), SetOrder(), and Trend().

TList* Trend::fOrder[3]

Definition at line 809 of file Trend.C.

Referenced by Run(), SetOrder(), and Trend().

TList Trend::fOthers

Definition at line 808 of file Trend.C.

Referenced by NextFile(), and Run().

Bool_t Trend::fRebinned

Definition at line 810 of file Trend.C.

Referenced by NextFile().

TList Trend::fRuns

Definition at line 806 of file Trend.C.

Referenced by AddRun(), and Run().

TList Trend::fSHCuts

Definition at line 804 of file Trend.C.

Referenced by AddSHCut(), SetOrder(), and Trend().

TList Trend::fSLCuts

Definition at line 803 of file Trend.C.

Referenced by AddSLCut(), SetOrder(), and Trend().


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