Changes in display/DelphesHtmlSummary.h [341014c:1fa50c2] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
display/DelphesHtmlSummary.h
r341014c r1fa50c2 17 17 */ 18 18 19 // Delphes HTML table for the event display. 19 // Delphes HTML table for the event display. 20 20 // Based on the ROOT example "alice_esd_html_summary.C" 21 21 22 22 #ifndef DelphesHtmlSummary_h 23 #define DelphesHtmlSummary_h 23 #define DelphesHtmlSummary_h 24 24 25 25 #include "TArrayF.h" 26 26 #include "TOrdCollection.h" 27 27 28 class DelphesHtmlObjTable: public TObject 28 29 class DelphesHtmlObjTable : public TObject 29 30 { 30 public: // make them public for shorter code 31 TString fName; 32 Int_t fNValues; // number of values 33 Int_t fNFields; // number of fields 34 TArrayF *fValues; 35 TString *fLabels; 36 Bool_t fExpand; 31 public: // make them public for shorter code 37 32 38 TString fHtml; // HTML output code 33 TString fName; 34 Int_t fNValues; // number of values 35 Int_t fNFields; // number of fields 36 TArrayF *fValues; 37 TString *fLabels; 38 Bool_t fExpand; 39 39 40 void Build(); 41 void BuildTitle(); 42 void BuildLabels(); 43 void BuildTable(); 40 TString fHtml; // HTML output code 41 42 void Build(); 43 void BuildTitle(); 44 void BuildLabels(); 45 void BuildTable(); 44 46 45 47 public: 46 DelphesHtmlObjTable(const char *name, Int_t nfields, Int_t nvals, Bool_t exp =kTRUE);47 virtual ~DelphesHtmlObjTable();48 DelphesHtmlObjTable(const char *name, Int_t nfields, Int_t nvals, Bool_t exp=kTRUE); 49 virtual ~DelphesHtmlObjTable(); 48 50 49 voidSetLabel(Int_t col, const char *label) { fLabels[col] = label; }50 voidSetValue(Int_t col, Int_t row, Float_t val) { fValues[col].SetAt(val, row); }51 TStringHtml() const { return fHtml; }51 void SetLabel(Int_t col, const char *label) { fLabels[col] = label; } 52 void SetValue(Int_t col, Int_t row, Float_t val) { fValues[col].SetAt(val, row); } 53 TString Html() const { return fHtml; } 52 54 53 ClassDef(DelphesHtmlObjTable, 0);55 ClassDef(DelphesHtmlObjTable, 0); 54 56 }; 55 57 … … 58 60 class DelphesHtmlSummary 59 61 { 60 public: // make them public for shorter code61 Int_tfNTables;62 TOrdCollection *fObjTables;// ->array of object tables63 TString fHtml;// output HTML string64 TString fTitle;// page title65 TString fHeader;// HTML header66 TString fFooter;// HTML footer62 public: // make them public for shorter code 63 Int_t fNTables; 64 TOrdCollection *fObjTables; // ->array of object tables 65 TString fHtml; // output HTML string 66 TString fTitle; // page title 67 TString fHeader; // HTML header 68 TString fFooter; // HTML footer 67 69 68 voidMakeHeader();69 voidMakeFooter();70 void MakeHeader(); 71 void MakeFooter(); 70 72 71 73 public: 72 DelphesHtmlSummary(const char *title);73 virtual ~DelphesHtmlSummary();74 DelphesHtmlSummary(const char *title); 75 virtual ~DelphesHtmlSummary(); 74 76 75 DelphesHtmlObjTable *AddTable(const char *name, Int_t nfields, Int_t nvals,76 Bool_t exp = kTRUE, Option_t *opt ="");77 DelphesHtmlObjTable*GetTable(Int_t at) const { return (DelphesHtmlObjTable *)fObjTables->At(at); }78 voidBuild();79 void Clear(Option_t *option ="");80 void Reset(Option_t *option ="");81 TStringHtml() const { return fHtml; }77 DelphesHtmlObjTable *AddTable(const char *name, Int_t nfields, Int_t nvals, 78 Bool_t exp=kTRUE, Option_t *opt=""); 79 DelphesHtmlObjTable *GetTable(Int_t at) const { return (DelphesHtmlObjTable *)fObjTables->At(at); } 80 void Build(); 81 void Clear(Option_t *option=""); 82 void Reset(Option_t *option=""); 83 TString Html() const { return fHtml; } 82 84 83 ClassDef(DelphesHtmlSummary, 0);85 ClassDef(DelphesHtmlSummary, 0); 84 86 }; 85 87
Note:
See TracChangeset
for help on using the changeset viewer.