KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVEBYEDAT_ACQParam.h
1#ifndef KVACQPARAM_H
2#define KVACQPARAM_H
3
4#include "KVBase.h"
5#include "TRef.h"
6
14class KVDetector;
15
17
18private:
23
24public:
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* = "")
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 }
60 {
62 if (fChannel)
63 return (UShort_t)(*fChannel);
64 return (UShort_t) fData;
65 }
66
67 void ls(Option_t* option = "") const;
68
70 {
71 return &fData;
72 }
73
74#if ROOT_VERSION_CODE >= ROOT_VERSION(3,4,0)
75 virtual void Copy(TObject&) const;
76#else
77 virtual void Copy(TObject&);
78#endif
79 virtual void Print(Option_t* opt = "") const;
80
82 {
83 fNbBits = n;
84 }
86 {
87 return fNbBits;
88 }
90 {
92 fChannel = &fData;
93 }
94
95 ClassDef(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 ClassDef(name, id)
Base class for KaliVeda framework.
Definition KVBase.h:142
Base class for detector geometry description.
Definition KVDetector.h:160
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
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
UShort_t ** ConnectData()
KVEBYEDAT_ACQParam()
default constructor
void init()
Default initialisations.
UShort_t * GetDataAddress()
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.
UChar_t GetNbBits() const
virtual void Print(Option_t *opt="") const
void Clear(Option_t *="")
void SetNbBits(UChar_t n)
const Int_t n