1 #ifndef GW_EGCONVERTER_H
2 #define GW_EGCONVERTER_H
22 std::ifstream fStreamIN;
27 unsigned long magic_number;
28 unsigned long version;
29 char spectrum_name[32];
31 char creation_date[20];
32 char modification_date[20];
33 unsigned long base_info[8];
34 unsigned long range[8];
35 unsigned long fip[32];
36 int anotation_pointer[8];
37 int calibration_pointer[8];
38 int efficiency_pointer[8];
39 unsigned long data_array_descriptor1[5];
45 unsigned long data_array_descriptor2[5];
46 int base_address_string_space;
47 int string_free_space;
48 unsigned long top_string_space;
49 unsigned long base_address_count_space;
50 unsigned long count_free_space;
51 unsigned long top_count_space;
52 unsigned long unused[20];
57 bool IsEG(
const char *filename, Option_t *o =
"")
const;
59 void PrintHeader()
const;
61 void ReadHeader(
char *, HeaderEG &);
63 void InitHeader(
int,
int, HeaderEG &,
const char *,
int);
72 bool OpenEG(
const char *);
73 void CloseEG() {
if ( fStreamIN.is_open() ) fStreamIN.close(); fStreamIN.clear(); }
80 virtual TH1 *Get(
int);
81 virtual TH1 *Get(
const char *);
83 virtual bool Read(TH1 &);
84 virtual bool Write(
const TH1 &);
86 virtual bool Read(TH2 &);
87 virtual bool Write(
const TH2 &);
89 virtual bool Read(THStack &);
90 virtual bool Write(
const THStack &);
95 virtual void ls(Option_t *)
const;
97 virtual const char *
GetType()
const {
return fType.Data(); }
header file for the HistoDB facility
virtual const char * GetType() const
to know what type of HistoConverter system it is