AliRoot Core  3dc7879 (3dc7879)
AliTreeTrending.h
Go to the documentation of this file.
1 #ifndef ALITREETRENDING_H
2 #define ALITREETRENDING_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 /* $Id$ */
10 
16 class TTree;
17 class TObjArray;
18 class TNamed;
19 class TStyle;
20 class TMultiGraph;
21 class TLegend;
22 
23 class AliTreeTrending : public TNamed {
24 public:
26  AliTreeTrending(const char *name, const char *title, const char *cssStyle="");
28  void SetTree(TTree * tree) {fTree=tree;};
29  void AddUserDescription(TNamed *description); //
30  Bool_t InitSummaryTrending(TString statusDescription[3], Float_t descriptionSize=0.015, TString cutString="");
31  void SetDefaultStyle(); // own style to be used - not yet
32  Bool_t SetCssStyle(const char *cssStyle="");
33  void AppendStatusPad(Float_t padRatio, Float_t bottomMargin, Float_t rightMargin);
34  //
35  void MakePlot(const char* outputDir, const char *figureName, const char *LegendTitle, std::vector<Double_t>& legendPos, const char *groupName, const char* expr, const char * cut, const char * markers, const char *colors, Bool_t drawSparse, Float_t markerSize, Float_t sigmaRange, Bool_t comp);
36  void AppendBand(const char* outputDir, const char *figureName, const char* expr, const char * cut, const char * lineStyle, const char *colors, Bool_t drawSparse, Float_t sigmaRange, Bool_t comp) ;
37  void AppendDefaultBands(const char *outputDir, const char *figureName,const char * refVariable,const char * bandNamePrefix, const char * selection, const char* groupName);
38  void AppendDefaultBandsMinMax(const char *outputDir, const char *figureName, const char * bandNamePrefix, const char * selection, const char* groupName);
39 
40  void MakeStatusPlot(const char* outputDir, const char *figureName, TString expression, TString varTitle, TCut cutString, TString sCriteria, TString friendName="");
41  static TMultiGraph * MakeMultiGraphStatus(TTree *fTree, TString mgrName, TString expression, TString varTitle, TCut cutString, TString sCriteria, Bool_t setAxis=kFALSE);
42  static void DecomposeStatusAlias(TTree* tree, TString currentString, TString &statusVar, TString &statusTitle, TPRegexp &suffix, Int_t &counter, TString &maskAlias);
43  // TODO void MakeHtml(char *htmlName, char *varList)
44  // JSROOT export related helper functions
45  static TString ArrayNameToString(TCollection *array, TString sRegExp, TString separator);
46  static void AddJSROOTHtmlLink(FILE * pFile, TString title, TString prefix, TString items);
47 public:
48  TObjArray * GetTexDescription(TLatex *latex);
49  TTree * fTree;
52  TCanvas * fWorkingCanvas;
53  TMultiGraph *fStatusGraphM;
54  TStyle * fDrawStyle;
55  TString fCurrentCssStyle;
56  TFile * fReport;
57  ClassDef(AliTreeTrending,2)
58 };
59 
60 
61 #endif
62 
Int_t colors[3]
Definition: CalibCosmic.C:62
#define TObjArray
const Float_t markerSize[5]
Definition: makeBBFit.C:59
TObjArray * array
Definition: AnalyzeLaser.C:12
TTree * tree
char * prefix
AliComparisonDraw comp
Definition: TestAnalisys.C:74
TLatex latex
TCut cut
Definition: MakeGlobalFit.C:75
const Int_t markers[5]
Definition: makeBBFit.C:58