]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ANALYSIS/AliHEPDataParser.h
o add histograms for TPC + TOF
[u/mrichter/AliRoot.git] / ANALYSIS / AliHEPDataParser.h
CommitLineData
a5ae512a 1
2#ifndef ALIHEPDATAPARSER_H
3#define ALIHEPDATAPARSER_H
4
5/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * See cxx source for full Copyright notice */
7
8//-------------------------------------------------------------------------
9// Implementation of Class AliHEPDataParser
10//
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//-------------------------------------------------------------------------
15
16#include "TObject.h"
17#include "TString.h"
18
19class TH1;
20class TGraph;
21
22class AliHEPDataParser : public TObject{
23
24
25public:
26 AliHEPDataParser();
27 AliHEPDataParser(TH1 * hStat, TH1 * hSyst);
28 AliHEPDataParser(TGraph * grStat, TGraph * grSyst);
29 AliHEPDataParser(const char * hepfileName);
30
31 ~AliHEPDataParser();
32
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);
38
39 void SetName(const char * name) { fValueName = name;}
40
41protected:
42
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
49
50
51 ClassDef(AliHEPDataParser, 1);
52
53private:
54
55
56 AliHEPDataParser(const AliHEPDataParser&);
57 AliHEPDataParser& operator=(const AliHEPDataParser&);
58};
59
60#endif