Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
blob
master
calibrations
generators
offline
database
framework
packages
CaloBase
CaloEmbedding
CaloReco
centrality
ClusterIso
compressor
decayfinder
epd
eventplaneinfo
globalvertex
Half
HFTrackEfficiency
intt
jetbackground
jetbase
KFParticle_sPHENIX
mbd
BbcDefs.h
BbcGeom.h
BbcGeomLinkDef.h
BbcGeomV1.cc
BbcGeomV1.h
BbcGeomV1LinkDef.h
BbcOut.cc
BbcOut.h
BbcOutLinkDef.h
BbcOutV1.cc
BbcOutV1.h
BbcOutV1LinkDef.h
BbcOutV2.cc
BbcOutV2.h
BbcOutV2LinkDef.h
BbcPmtContainer.cc
BbcPmtContainer.h
BbcPmtContainerLinkDef.h
BbcPmtContainerV1.cc
BbcPmtContainerV1.h
BbcPmtContainerV1LinkDef.h
BbcPmtHit.cc
BbcPmtHit.h
BbcPmtHitLinkDef.h
BbcPmtHitV1.cc
BbcPmtHitV1.h
BbcPmtHitV1LinkDef.h
BbcPmtInfoContainerV1.cc
BbcPmtInfoContainerV1.h
BbcPmtInfoContainerV1LinkDef.h
BbcPmtInfoV1.cc
BbcPmtInfoV1.h
BbcPmtInfoV1LinkDef.h
BbcReturnCodes.h
BbcVertex.h
BbcVertexLinkDef.h
BbcVertexMap.cc
BbcVertexMap.h
BbcVertexMapLinkDef.h
BbcVertexMapv1.cc
BbcVertexMapv1.h
BbcVertexMapv1LinkDef.h
BbcVertexv1.cc
BbcVertexv1.h
BbcVertexv1LinkDef.h
BbcVertexv2.cc
BbcVertexv2.h
BbcVertexv2LinkDef.h
MbdCalib.cc
MbdCalib.h
MbdDefs.h
MbdEvent.cc
MbdEvent.h
MbdGeom.h
MbdGeomLinkDef.h
MbdGeomV1.cc
MbdGeomV1.h
MbdGeomV1LinkDef.h
MbdOut.cc
MbdOut.h
MbdOutLinkDef.h
MbdOutV1.cc
MbdOutV1.h
MbdOutV1LinkDef.h
MbdOutV2.cc
MbdOutV2.h
MbdOutV2LinkDef.h
MbdPmtContainer.cc
MbdPmtContainer.h
MbdPmtContainerLinkDef.h
MbdPmtContainerV1.cc
MbdPmtContainerV1.h
MbdPmtContainerV1LinkDef.h
MbdPmtHit.cc
MbdPmtHit.h
MbdPmtHitLinkDef.h
MbdPmtHitV1.cc
MbdPmtHitV1.h
MbdPmtHitV1LinkDef.h
MbdReco.cc
MbdReco.h
MbdReturnCodes.h
MbdSig.cc
MbdSig.h
micromegas
mvtx
NodeDump
particleflow
PHField
PHGenFitPkg
PHGeometry
QAUtils
rawtodst
ResonanceJetTagging
tpc
tpccalib
tpcdaq
TPCHitTrackDisplay
trackbase
trackbase_historic
TrackerMillepedeAlignment
TrackingDiagnostics
trackreco
trigger
vararray
QA
simulation
validation
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
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