2 #ifndef ALIHEPDATAPARSER_H
3 #define ALIHEPDATAPARSER_H
5 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * See cxx source for full Copyright notice */
8 //-------------------------------------------------------------------------
9 // Implementation of Class AliHEPDataParser
11 // This class is used to save the content of hisograms/graphs in the
12 // HEP data format and viceversa
13 // Author: Michele Floris, CERN
14 //-------------------------------------------------------------------------
22 class AliHEPDataParser : public TObject{
27 AliHEPDataParser(TH1 * hStat, TH1 * hSyst);
28 AliHEPDataParser(TGraph * grStat, TGraph * grSyst);
29 AliHEPDataParser(const char * hepfileName);
33 TH1 * GetHistoStat() { return fHistStat;}
34 TH1 * GetHistoSyst() { return fHistSyst;}
35 TGraph * GetGraphStat() { return fGraphStat;}
36 TGraph * GetGraphSyst() { return fGraphSyst;}
37 void SaveHEPDataFile(const char * hepfileName, Bool_t trueUseGraphFalesUseHisto = 0);
39 void SetName(const char * name) { fValueName = name;}
43 TH1 * fHistStat; // statistical errors (hist)
44 TH1 * fHistSyst; // systematic errors (hist)
45 TGraph * fGraphStat; // statistical errors (hist)
46 TGraph * fGraphSyst; // systematic errors (hist)
47 TObjArray * fHEPDataFileLines;// TClones array of TObjString
48 TString fValueName; // title for the y axis on the ascii file
51 ClassDef(AliHEPDataParser, 1);
56 AliHEPDataParser(const AliHEPDataParser&);
57 AliHEPDataParser& operator=(const AliHEPDataParser&);