KaliVeda
Toolkit for HIC analysis
KVEBYEDAT_ACQParam.h
1 #ifndef KVACQPARAM_H
2 #define KVACQPARAM_H
3 
4 #include "KVBase.h"
5 #include "TRef.h"
6 
14 class KVDetector;
15 
16 class KVEBYEDAT_ACQParam: public KVBase {
17 
18 private:
19  UShort_t* fChannel;
20  UShort_t fData;
21  UChar_t fNbBits;
22  Bool_t* fFired;
23 
24 public:
25  void init();
27  KVEBYEDAT_ACQParam(const TString& name, const TString& type = "");
29  ROOT_COPY_ASSIGN_OP(KVEBYEDAT_ACQParam)
30  virtual ~ KVEBYEDAT_ACQParam() {}
31 
32  void Clear(Option_t* = "") override
33  {
34  }
35 
37  {
40  return &fChannel;
41  }
43  {
46  return &fFired;
47  }
48 
49  Bool_t Fired() const
50  {
51  return (fFired ? *fFired : false);
52  }
53  void SetData(UShort_t val)
54  {
55  fData = val;
56  if (fChannel)
57  *fChannel = val;
58  }
59  UShort_t GetData() const
60  {
62  if (fChannel)
63  return (UShort_t)(*fChannel);
64  return (UShort_t) fData;
65  }
66 
67  void ls(Option_t* option = "") const override;
68 
70  {
71  return &fData;
72  }
73 
74 #if ROOT_VERSION_CODE >= ROOT_VERSION(3,4,0)
75  void Copy(TObject&) const override;
76 #else
77  virtual void Copy(TObject&);
78 #endif
79  void Print(Option_t* opt = "") const override;
80 
82  {
83  fNbBits = n;
84  }
86  {
87  return fNbBits;
88  }
90  {
92  fChannel = &fData;
93  }
94 
95  ClassDefOverride(KVEBYEDAT_ACQParam, 4) //Data acquisition parameters read from GANIL EBYEDAT data
96 };
97 
98 #endif
bool Bool_t
unsigned short UShort_t
unsigned char UChar_t
const char Option_t
#define ClassDefOverride(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 Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
char name[80]
Base class for KaliVeda framework.
Definition: KVBase.h:140
Base class for detector geometry description, interface to energy-loss calculations.
Definition: KVDetector.h:173
GANIL VXI/VME 16 bit (maximum) EBYEDAT acquisition parameter.
Bool_t Fired() const
UShort_t GetData() const
KVEBYEDAT_ACQParam()
default constructor
void init()
Default initialisations.
void SetData(UShort_t val)
void Clear(Option_t *="") override
UShort_t ** ConnectData()
UChar_t GetNbBits() const
void Print(Option_t *opt="") const override
UShort_t * GetDataAddress()
void ls(Option_t *option="") const override
Dump name of parameter, raw coder value, and "randomised" value.
void SetNbBits(UChar_t n)
void Copy(TObject &) const override
const Int_t n