Changes in display/DelphesHtmlSummary.h [1fa50c2:341014c] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
display/DelphesHtmlSummary.h
r1fa50c2 r341014c 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 29 { 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; 28 37 29 class DelphesHtmlObjTable : public TObject 30 { 31 public: // make them public for shorter code 38 TString fHtml; // HTML output code 32 39 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 40 TString fHtml; // HTML output code 41 42 void Build(); 43 void BuildTitle(); 44 void BuildLabels(); 45 void BuildTable(); 40 void Build(); 41 void BuildTitle(); 42 void BuildLabels(); 43 void BuildTable(); 46 44 47 45 public: 48 DelphesHtmlObjTable(const char *name, Int_t nfields, Int_t nvals, Bool_t exp=kTRUE);49 46 DelphesHtmlObjTable(const char *name, Int_t nfields, Int_t nvals, Bool_t exp = kTRUE); 47 virtual ~DelphesHtmlObjTable(); 50 48 51 voidSetLabel(Int_t col, const char *label) { fLabels[col] = label; }52 voidSetValue(Int_t col, Int_t row, Float_t val) { fValues[col].SetAt(val, row); }53 TStringHtml() const { return fHtml; }49 void SetLabel(Int_t col, const char *label) { fLabels[col] = label; } 50 void SetValue(Int_t col, Int_t row, Float_t val) { fValues[col].SetAt(val, row); } 51 TString Html() const { return fHtml; } 54 52 55 53 ClassDef(DelphesHtmlObjTable, 0); 56 54 }; 57 55 … … 60 58 class DelphesHtmlSummary 61 59 { 62 public: 63 Int_tfNTables;64 TOrdCollection *fObjTables;// ->array of object tables65 TString fHtml;// output HTML string66 TString fTitle;// page title67 TString fHeader;// HTML header68 TString fFooter;// HTML footer60 public: // make them public for shorter code 61 Int_t fNTables; 62 TOrdCollection *fObjTables; // ->array of object tables 63 TString fHtml; // output HTML string 64 TString fTitle; // page title 65 TString fHeader; // HTML header 66 TString fFooter; // HTML footer 69 67 70 voidMakeHeader();71 voidMakeFooter();68 void MakeHeader(); 69 void MakeFooter(); 72 70 73 71 public: 74 75 72 DelphesHtmlSummary(const char *title); 73 virtual ~DelphesHtmlSummary(); 76 74 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 voidBuild();81 void Clear(Option_t *option="");82 void Reset(Option_t *option="");83 TStringHtml() const { return fHtml; }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 void Build(); 79 void Clear(Option_t *option = ""); 80 void Reset(Option_t *option = ""); 81 TString Html() const { return fHtml; } 84 82 85 83 ClassDef(DelphesHtmlSummary, 0); 86 84 }; 87 85
Note:
See TracChangeset
for help on using the changeset viewer.