AliRoot Core  edcc906 (edcc906)
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 MakeStatusPlot(const char* outputDir, const char *figureName, TString expression, TString varTitle, TCut cutString, TString sCriteria, TString friendName="");
39  static TMultiGraph * MakeMultiGraphStatus(TTree *fTree, TString mgrName, TString expression, TString varTitle, TCut cutString, TString sCriteria, Bool_t setAxis=kFALSE);
40  static void DecomposeStatusAlias(TTree* tree, TString currentString, TString &statusVar, TString &statusTitle, TPRegexp &suffix, Int_t &counter, TString &maskAlias);
41  // TODO void MakeHtml(char *htmlName, char *varList)
42  // JSROOT export related helper functions
43  static TString ArrayNameToString(TCollection *array, TString sRegExp, TString separator);
44  static void AddJSROOTHtmlLink(FILE * pFile, TString title, TString prefix, TString items);
45 public:
46  TObjArray * GetTexDescription(TLatex *latex);
47  TTree * fTree;
50  TCanvas * fWorkingCanvas;
51  TMultiGraph *fStatusGraphM;
52  TStyle * fDrawStyle;
53  TString fCurrentCssStyle;
54  TFile * fReport;
55  ClassDef(AliTreeTrending,2)
56 };
57 
58 
59 #endif
60 
Int_t colors[3]
Definition: CalibCosmic.C:62
#define TObjArray
const Float_t markerSize[5]
Definition: makeBBFit.C:59
TTree * tree
TObjArray * array
Definition: AnalyzeLaser.C:12
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