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
MbdOut.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file MbdOut.cc
1
#include "
MbdOut.h
"
2
#include "
MbdReturnCodes.h
"
3
4
#include <cmath>
5
#include <iostream>
6
7
void
MbdOut::identify
(std::ostream&
os
)
const
8
{
9
os <<
"virtual MbdOut object"
<< std::endl;
10
return
;
11
}
12
13
void
MbdOut::Reset
()
14
{
15
std::cout <<
"ERROR MbdOut: Reset() not implemented by daughter class"
<< std::endl;
16
return
;
17
}
18
19
int
MbdOut::isValid
()
const
20
{
21
virtual_warning
(
"isValid()"
);
22
return
0;
23
}
24
25
Float_t
MbdOut::get_zvtx
()
const
26
{
27
virtual_warning
(
"get_zvtx()"
);
28
return
NAN;
29
}
30
31
Float_t
MbdOut::get_zvtxerr
()
const
32
{
33
virtual_warning
(
"get_zvtxerr()"
);
34
return
NAN;
35
}
36
37
Float_t
MbdOut::get_t0
()
const
38
{
39
virtual_warning
(
"get_t0()"
);
40
return
NAN;
41
}
42
43
//__________________________________________
44
Float_t
MbdOut::get_t0err
()
const
45
{
46
virtual_warning
(
"get_t0err()"
);
47
return
NAN;
48
}
49
50
//__________________________________________
51
void
MbdOut::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
MbdOut::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
MbdOut::set_zvtxerr
(
const
Float_t
/*unused*/
)
66
{
67
virtual_warning
(
"set_zvtxerr(const Float_t vtxerr)"
);
68
return
;
69
}
70
71
//________________________________________________________________
72
void
MbdOut::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 iMBD, const Short_t npmt, const Float_t energy, const Float_t timing)"
);
75
return
;
76
}
77
78
void
MbdOut::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
MbdOut::get_npmt
(
const
int
/*iarm*/
)
const
85
{
86
virtual_warning
(
"get_npmt(const int iarm)"
);
87
return
MbdReturnCodes::MBD_INVALID_SHORT
;
88
}
89
90
Float_t
MbdOut::get_q
(
const
int
/*iarm*/
)
const
91
{
92
virtual_warning
(
"get_q(const int iarm)"
);
93
return
NAN;
94
}
95
96
Float_t
MbdOut::get_time
(
const
int
/*iarm*/
)
const
97
{
98
virtual_warning
(
"get_time(const int iarm)"
);
99
return
NAN;
100
}
101
102
Int_t
MbdOut::get_evt
()
const
103
{
104
virtual_warning
(
"get_evt()"
);
105
return
0;
106
}
107
108
UShort_t
MbdOut::get_clock
()
const
109
{
110
virtual_warning
(
"get_clock()"
);
111
return
0;
112
}
113
114
UShort_t
MbdOut::get_femclock
()
const
115
{
116
virtual_warning
(
"get_femclock(const int iarm)"
);
117
return
0;
118
}
119
120
void
MbdOut::virtual_warning
(
const
std::string
& funcsname)
const
121
{
122
std::cout <<
"MbdOut::"
<< funcsname <<
" is virtual, doing nothing"
<< std::endl;
123
return
;
124
}
125
126
void
MbdOut::FillFromClass
(
const
MbdOut
& 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
MbdOut.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:07
using
1.8.2 with
sPHENIX GitHub integration