KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVEBYEDAT_ACQParam.cpp
1/***************************************************************************
2 kvacqparam.cpp - description
3 -------------------
4 begin : Wed Nov 20 2002
5 copyright : (C) 2002 by J.D. Frankland
6 email : frankland@ganil.fr
7
8$Id: KVACQParam.cpp,v 1.23 2007/12/06 15:12:54 franklan Exp $
9 ***************************************************************************/
10
11/***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. *
17 * *
18 ***************************************************************************/
19
20#include "Riostream.h"
21#include "KVEBYEDAT_ACQParam.h"
22#include "TRandom.h"
23
24using namespace std;
25
27
28
29
31
33{
34//Default initialisations
35 fChannel = nullptr;
36 fFired = nullptr;
37 fData = 0;
38 fNbBits = 16;
39}
40
41
42
45
47 : KVBase()
48{
49 //default constructor
50 init();
51}
52
53
54
57
59 : KVBase(name, type)
60{
61 // Make acquisition parameter with given name & type.
62 init();
63}
64
65
66//
67
70
72{
73 //Copy ctor
74 init();
75#if ROOT_VERSION_CODE >= ROOT_VERSION(3,4,0)
76 obj.Copy(*this);
77#else
78 ((KVEBYEDAT_ACQParam&) obj).Copy(*this);
79#endif
80}
81
82
84#if ROOT_VERSION_CODE >= ROOT_VERSION(3,4,0)
85
90
92#else
94#endif
95{
96 //
97 //Copy this to obj
98 //
99 KVBase::Copy(obj);
100 ((KVEBYEDAT_ACQParam&) obj).SetData(GetData());
101 ((KVEBYEDAT_ACQParam&) obj).SetNbBits(GetNbBits());
102}
103
104
105
107
109{
110 cout << "_________________________________________" << endl;
111 cout << " KVACQParam: " << GetName() << " " << GetType() << endl;
112 cout << " Data = " << GetData() << endl;
113 cout << "_________________________________________" << endl;
114}
115
116
117
120
122{
123 //Dump name of parameter, raw coder value, and "randomised" value
124 cout << ClassName() << " : " << GetName() << " raw=" << GetData() << endl;
125}
126
127
const char Option_t
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:142
virtual void Copy(TObject &) const
Make a copy of this object.
Definition KVBase.cpp:394
virtual const Char_t * GetType() const
Definition KVBase.h:177
GANIL VXI/VME 16 bit (maximum) EBYEDAT acquisition parameter.
virtual void Copy(TObject &) const
UShort_t GetData() const
KVEBYEDAT_ACQParam()
default constructor
void init()
Default initialisations.
void ls(Option_t *option="") const
Dump name of parameter, raw coder value, and "randomised" value.
virtual void Print(Option_t *opt="") const
const char * GetName() const override
virtual const char * ClassName() const
ClassImp(TPyArg)