KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVEBYEDAT_ACQParam.h
Go to the documentation of this file.
1 #ifndef KVACQPARAM_H
2 #define KVACQPARAM_H
3 
4 #include "KVBase.h"
5 #include "TRef.h"
6 
13 class KVDetector;
14 
15 class KVEBYEDAT_ACQParam: public KVBase {
16 
17 private:
22 
23 public:
24  void init();
26  KVEBYEDAT_ACQParam(const TString& name, const TString& type = "");
28  ROOT_COPY_ASSIGN_OP(KVEBYEDAT_ACQParam)
29  virtual ~ KVEBYEDAT_ACQParam() {}
30 
31  void Clear(Option_t* = "")
32  {
33  }
34 
36  {
39  return &fChannel;
40  }
42  {
45  return &fFired;
46  }
47 
48  Bool_t Fired() const
49  {
50  return (fFired ? *fFired : false);
51  }
52  void SetData(UShort_t val)
53  {
54  fData = val;
55  if (fChannel)
56  *fChannel = val;
57  }
58  UShort_t GetData() const
59  {
61  if (fChannel)
62  return (UShort_t)(*fChannel);
63  return (UShort_t) fData;
64  }
65 
66  void ls(Option_t* option = "") const;
67 
69  {
70  return &fData;
71  }
72 
73 #if ROOT_VERSION_CODE >= ROOT_VERSION(3,4,0)
74  virtual void Copy(TObject&) const;
75 #else
76  virtual void Copy(TObject&);
77 #endif
78  virtual void Print(Option_t* opt = "") const;
79 
81  {
82  fNbBits = n;
83  }
85  {
86  return fNbBits;
87  }
89  {
91  fChannel = &fData;
92  }
93 
94  ClassDef(KVEBYEDAT_ACQParam, 4) //Data acquisition parameters read from GANIL EBYEDAT data
95 };
96 
97 #endif
unsigned short UShort_t
unsigned char UChar_t
bool Bool_t
const char Option_t
#define ClassDef(name, id)
Base class for KaliVeda framework.
Definition: KVBase.h:141
Base class for detector geometry description.
Definition: KVDetector.h:159
GANIL VXI/VME 16 bit (maximum) EBYEDAT acquisition parameter.
UShort_t fData
Dummy used when reading back events from a TTree etc.
virtual void Copy(TObject &) const
Bool_t Fired() const
UShort_t * fChannel
pointer to raw data i.e. value read from coder (channel number)
UShort_t GetData() const
UChar_t fNbBits
number of bits (<=16) actually used by parameter
KVEBYEDAT_ACQParam()
default constructor
void init()
Default initialisations.
Bool_t * fFired
set when present in raw event
void SetData(UShort_t val)
void ls(Option_t *option="") const
Dump name of parameter, raw coder value, and "randomised" value.
UShort_t ** ConnectData()
UChar_t GetNbBits() const
virtual void Print(Option_t *opt="") const
void Clear(Option_t *="")
Clear object properties : name, type/title, number, label.
UShort_t * GetDataAddress()
void SetNbBits(UChar_t n)
const Int_t n