Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
BbcOut.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file BbcOut.cc
1
#include "
BbcOut.h
"
2
#include "
BbcReturnCodes.h
"
3
4
#include <cmath>
5
#include <iostream>
6
7
void
BbcOut::identify
(std::ostream&
os
)
const
8
{
9
os <<
"virtual BbcOut object"
<< std::endl;
10
return
;
11
}
12
13
void
BbcOut::Reset
()
14
{
15
std::cout <<
"ERROR BbcOut: Reset() not implemented by daughter class"
<< std::endl;
16
return
;
17
}
18
19
int
BbcOut::isValid
()
const
20
{
21
virtual_warning
(
"isValid()"
);
22
return
0;
23
}
24
25
Float_t
BbcOut::get_zvtx
()
const
26
{
27
virtual_warning
(
"get_zvtx()"
);
28
return
NAN;
29
}
30
31
Float_t
BbcOut::get_zvtxerr
()
const
32
{
33
virtual_warning
(
"get_zvtxerr()"
);
34
return
NAN;
35
}
36
37
Float_t
BbcOut::get_t0
()
const
38
{
39
virtual_warning
(
"get_t0()"
);
40
return
NAN;
41
}
42
43
//__________________________________________
44
Float_t
BbcOut::get_t0err
()
const
45
{
46
virtual_warning
(
"get_t0err()"
);
47
return
NAN;
48
}
49
50
//__________________________________________
51
void
BbcOut::set_t0
(
const
Float_t
/*unused*/
,
const
Float_t
/*unused*/
)
52
{
53
virtual_warning
(
"set_t0(const Float_t t0, const Float_t t0err)"
);
54
return
;
55
}
56
57
//__________________________________________
58
void
BbcOut::set_zvtx
(
const
Float_t
/*unused*/
,
const
Float_t
/*unused*/
)
59
{
60
virtual_warning
(
"set_zvtx(const Float_t vtx, const Float_t vtxerr)"
);
61
return
;
62
}
63
64
//__________________________________________
65
void
BbcOut::set_zvtxerr
(
const
Float_t
/*unused*/
)
66
{
67
virtual_warning
(
"set_zvtxerr(const Float_t vtxerr)"
);
68
return
;
69
}
70
71
//________________________________________________________________
72
void
BbcOut::set_arm
(
const
int
/*iarm*/
,
const
Short_t
/*npmt*/
,
const
Float_t
/*energy*/
,
const
Float_t
/*timing*/
)
73
{
74
virtual_warning
(
"set_arm(const int iBBC, const Short_t npmt, const Float_t energy, const Float_t timing)"
);
75
return
;
76
}
77
78
void
BbcOut::set_clocks
(
const
Int_t
/*evt*/
,
const
UShort_t
/*iclk*/
,
const
UShort_t
/*ifemclk*/
)
79
{
80
virtual_warning
(
"set_clocks(const Int_t ievt, const UShort_t iclk, const UShort_t ifemclk"
);
81
return
;
82
}
83
84
Short_t
BbcOut::get_npmt
(
const
int
/*iarm*/
)
const
85
{
86
virtual_warning
(
"get_npmt(const int iarm)"
);
87
return
BbcReturnCodes::BBC_INVALID_SHORT
;
88
}
89
90
Float_t
BbcOut::get_q
(
const
int
/*iarm*/
)
const
91
{
92
virtual_warning
(
"get_q(const int iarm)"
);
93
return
NAN;
94
}
95
96
Float_t
BbcOut::get_time
(
const
int
/*iarm*/
)
const
97
{
98
virtual_warning
(
"get_time(const int iarm)"
);
99
return
NAN;
100
}
101
102
Int_t
BbcOut::get_evt
()
const
103
{
104
virtual_warning
(
"get_evt()"
);
105
return
0;
106
}
107
108
UShort_t
BbcOut::get_clock
()
const
109
{
110
virtual_warning
(
"get_clock()"
);
111
return
0;
112
}
113
114
UShort_t
BbcOut::get_femclock
()
const
115
{
116
virtual_warning
(
"get_femclock(const int iarm)"
);
117
return
0;
118
}
119
120
void
BbcOut::virtual_warning
(
const
std::string
& funcsname)
const
121
{
122
std::cout <<
"BbcOut::"
<< funcsname <<
" is virtual, doing nothing"
<< std::endl;
123
return
;
124
}
125
126
void
BbcOut::FillFromClass
(
const
BbcOut
& old)
127
{
128
for
(
int
iarm = 0; iarm < 2; iarm++)
129
{
130
set_arm
(iarm, old.
get_npmt
(iarm), old.
get_q
(iarm), old.
get_time
(iarm));
131
}
132
133
set_t0zvtx
(old.
get_t0
(), old.
get_t0err
(), old.
get_zvtx
(), old.
get_zvtxerr
());
134
}
coresoftware
blob
master
offline
packages
mbd
BbcOut.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:07
using
1.8.2 with
sPHENIX GitHub integration