KaliVeda
Toolkit for HIC analysis
GTDataParameters.h
1 /***************************************************************************
19  ***************************************************************************
20  * *
21  * This program is free software; you can redistribute it and/or modify *
22  * it under the terms of the GNU General Public License as published by *
23  * the Free Software Foundation; either version 2 of the License, or *
24  * (at your option) any later version. *
25  * *
26  ***************************************************************************/
27 
28 #ifndef GTDataParameters_H
29 #define GTDataParameters_H
30 
31 #include "TNamed.h"
32 #include "TString.h"
33 
49 class GTDataPar : public TNamed {
50 public:
51  GTDataPar(const TString name, const int index, const int bits) :
52  TNamed(name, (TString)"")
53  {
54  fIndex = index;
55  fBits = bits;
56  }
57  int Index(void)const
58  {
59  return (fIndex);
60  };
61  int Bits(void) const
62  {
63  return fBits;
64  };
65 private:
66  int fIndex; // Parameter index in data array
67  int fBits; // number of bits used to represent parameter
68 };
69 
70 
72 class GTDataParameters : public TObject {
73 public:
74  GTDataParameters(void);
75  ~GTDataParameters(void);
76  int Fill(const char* buffParam);
77  int GetIndex(const TString parName) const;
78  const char* GetParName(const int index) const;
79  GTDataPar* GetPar(const int index) const;
80  GTDataPar* GetPar(const TString parName) const;
82  {
83  return fMaxIndex;
84  };
85  const TList* GetList() const
86  {
87  return fList;
88  };
89 private:
90  char* CopyParam(char* Dest, char* Source) const;
94 public:
95  ClassDef(GTDataParameters, 1) // Data Parameter names and index class
96 };
97 
98 #endif
int Int_t
#define ClassDef(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
char name[80]
Classes handling VME/VXI parameters in GANIL DAQ data.
int Bits(void) const
int Index(void) const
GTDataPar(const TString name, const int index, const int bits)
char * CopyParam(char *Dest, char *Source) const
Small utility routine to copy a char string.
GTDataPar * GetPar(const int index) const
Return the parameter corresponding to the parameter number.
Int_t fMaxIndex
but OK for now.
Int_t GetMaxIndex() const
const char * GetParName(const int index) const
Return the text label name corresponding to a parameter number.
int GetIndex(const TString parName) const
Return the index number corresponding to a text label.
const TList * GetList() const
GTDataParameters(void)
Default constructor. Don't create anything yet.
int Fill(const char *buffParam)