ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
macros
online_distribution
blob
master
newbasic
A_Event.cc
A_Event.h
all.h
BoolDefs.h
buffer.cc
buffer.h
BufferConstants.h
caen_correction.cc
caen_correction.h
Cframe.C
Cframe.h
CframeV1.C
CframeV1.h
changehitformat.cc
changeid.cc
Cpacket.C
Cpacket.h
CpacketV1.C
CpacketV1.h
dataBlock.C
dataBlock.h
dataBlockHdr.h
dataBlockPublic.h
date_filter_msg_buffer.cc
date_filter_msg_buffer.h
ddump.cc
decoding_routines.cc
decoding_routines.h
devicedefs.h
dlist.cc
dpipe.cc
dpipe_filter.h
errorBlock.C
errorBlock.h
Event.h
event_io.h
eventcombiner.cc
Eventiterator.h
eventLinkDef.h
EventTypes.h
evt_mnemonic.cc
EvtConstants.h
EvtStructures.h
fakeFrame.C
fakeFrame.h
fileEventiterator.cc
fileEventiterator.h
filter_msg_buffer.cc
filter_msg_buffer.h
formatError.C
formatError.h
formatIO.C
formatIO.h
frameHdr.h
frameHdrV1.h
framePackets.C
framePackets.h
framePublic.h
frameRoutines.C
frameRoutines.h
frameSourceIds.h
frameV1Public.h
gen_utilities.h
generalDefinitions.h
gzbuffer.cc
gzbuffer.h
listEventiterator.cc
listEventiterator.h
lzobuffer.cc
lzobuffer.h
md5.cc
md5.h
mizar.h
msg_buffer.cc
msg_buffer.h
msg_control.cc
msg_control.h
msg_profile.h
msgLinkDef.h
msgqueue.C
oamlBuffer.cc
oamlBuffer.h
oBuffer.cc
oBuffer.h
odd_filter.cc
oEvent.cc
oEvent.h
ogzBuffer.cc
ogzBuffer.h
olzoBuffer.cc
olzoBuffer.h
oncs_mnemonic.cc
oncsBuffer.cc
oncsBuffer.h
oncsCollection.h
oncsdefs.h
oncsEvent.cc
oncsEvent.h
oncsEventiterator.cc
oncsEventiterator.h
oncsEvtConstants.h
oncsEvtStructures.h
oncsStructures.h
oncsSub_id2evt.cc
oncsSub_id2evt.h
oncsSub_id4evt.cc
oncsSub_id4evt.h
oncsSub_idbspetdata.cc
oncsSub_idbspetdata.h
oncsSub_idcaenv1742.cc
oncsSub_idcaenv1742.h
oncsSub_idcaenv792.cc
oncsSub_idcaenv792.h
oncsSub_idcstr.cc
oncsSub_idcstr.h
oncsSub_iddigitizerv1.cc
oncsSub_iddigitizerv1.h
oncsSub_iddreamv0.cc
oncsSub_iddreamv0.h
oncsSub_iddrs4v1.cc
oncsSub_iddrs4v1.h
oncsSub_idfnalmwpc.cc
oncsSub_idfnalmwpc.h
oncsSub_idfnalmwpcv2.cc
oncsSub_idfnalmwpcv2.h
oncsSub_idmvtxv0.cc
oncsSub_idmvtxv0.h
oncsSub_idmvtxv1.cc
oncsSub_idmvtxv1.h
oncsSub_idmvtxv2.cc
oncsSub_idmvtxv2.h
oncsSub_idrcpetdata.cc
oncsSub_idrcpetdata.h
oncsSub_idsis3300.cc
oncsSub_idsis3300.h
oncsSub_idsis3300r.cc
oncsSub_idsis3300r.h
oncsSub_idsrs_v01.cc
oncsSub_idsrs_v01.h
oncsSub_idtpcfeev1.cc
oncsSub_idtpcfeev1.h
oncsSub_idtpcfeev2.cc
oncsSub_idtpcfeev2.h
oncsSub_iduppetdata.cc
oncsSub_iduppetdata.h
oncsSub_iduppetdata_v104.cc
oncsSub_iduppetdata_v104.h
oncsSub_iduppetparams.cc
oncsSub_iduppetparams.h
oncsSubConstants.h
oncsSubevent.cc
oncsSubevent.h
ophBuffer.cc
ophBuffer.h
ospBuffer.cc
ospBuffer.h
ospEvent.cc
ospEvent.h
packet.h
packet_A.cc
packet_A.h
packet_cdevbpm.cc
packet_cdevbpm.h
packet_cdevbuckets.cc
packet_cdevbuckets.h
packet_cdevdvm.cc
packet_cdevdvm.h
packet_cdevir.cc
packet_cdevir.h
packet_cdevmadch.cc
packet_cdevmadch.h
packet_cdevpolarimeter.cc
packet_cdevpolarimeter.h
packet_cdevpoltarget.cc
packet_cdevpoltarget.h
packet_cdevring.cc
packet_cdevring.h
packet_cdevringnopol.cc
packet_cdevringnopol.h
packet_cdevwcm.cc
packet_cdevwcm.h
packet_collection.h
packet_fvtx_dcm0.cc
packet_fvtx_dcm0.h
packet_gl1.cc
packet_gl1.h
packet_gl1_evclocks.cc
packet_gl1_evclocks.h
packet_gl1p.cc
packet_gl1p.h
packet_gl1psum.cc
packet_gl1psum.h
packet_hbd_fpga.cc
packet_hbd_fpga.h
packet_hbd_fpgashort.cc
packet_hbd_fpgashort.h
packet_id2evt.cc
packet_id2evt.h
packet_id4evt.cc
packet_id4evt.h
packet_id4scaler.cc
packet_id4scaler.h
packet_idcdevdescr.cc
packet_idcdevdescr.h
packet_idcstr.cc
packet_idcstr.h
packet_iddigitizerv2.cc
packet_iddigitizerv2.h
packet_mnemonic.cc
packet_starscaler.cc
packet_starscaler.h
packet_w124.cc
packet_w124.h
packetConstants.h
packetHdr.h
packetHdrV1.h
packetHeaders.h
packetPublic.h
packetRoutines.C
packetRoutines.h
packetV1Public.h
phenixOnline.h
phenixTypes.h
PHmd5Utils.cc
PHmd5Utils.h
PHmd5Value.cc
PHmd5Value.h
prdf2prdf.cc
prdfBuffer.cc
prdfBuffer.h
prdfcheck.cc
prdfsplit.cc
printmsg.h
rcdaqEventiterator.cc
rcdaqEventiterator.h
remote_msg_buffer.cc
remote_msg_buffer.h
simpleRandom.cc
simpleRandom.h
strnstr.cc
strnstr.h
strptime.cc
testEventiterator.cc
testEventiterator.h
pmonitor
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
packet_cdevringnopol.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file packet_cdevringnopol.cc
1
#include <
packet_cdevringnopol.h
>
2
3
Packet_cdevringnopol::Packet_cdevringnopol
(
PACKET_ptr
data
)
4
:
Packet_w4
(data)
5
{
6
ps
= 0;
7
hasfilldata
= 0;
8
decoded
= 0;
// only decode once...
9
}
10
11
12
int
*
Packet_cdevringnopol::decode
(
int
*nwout)
13
{
14
if
(
decoded
) {
15
*nwout = 0;
16
return
0;
17
}
18
19
decoded
= 1;
20
hasfilldata
= 1;
21
22
int
*
k
;
23
k = (
int
*)
findPacketDataStart
(
packet
);
24
if
(k == 0)
25
{
26
ps
= 0;
27
*nwout = 0;
28
return
0;
29
}
30
31
if
(
getHitFormat
() ==
IDCDEVRINGNOPOL
)
32
{
33
ps
= (
struct
cdevRingNoPolData
*) k;
34
35
}
36
37
38
39
*nwout = 0;
40
return
0;
41
}
42
43
int
Packet_cdevringnopol::iValue
(
const
int
ich,
const
char
*what)
44
{
45
int
i;
46
decode
(&i);
47
48
if
( strcmp(what,
"ringState"
) == 0 ) {
49
if
(ich >=0 && ich < 256) {
50
return
ps
->
m_ringState
[ich] ;
51
}
52
}
53
54
if
( strcmp(what,
"ionSpecies"
) == 0 ) {
55
if
(ich>=0 && ich<1024) {
56
return
ps
->
m_ionSpecies
[ich] ;
57
}
58
}
59
60
if
( strcmp(what,
"stoneType"
) == 0 )
return
ps
->
m_stoneType
;
61
62
63
if
( strcmp(what,
"timeOfFillStart"
) == 0 )
return
ps
->
m_timeOfFillStart
;
64
if
( strcmp(what,
"timeOfLuminosityStart"
) == 0 )
return
ps
->
m_timeOfLuminosityStart
;
65
66
if
(
hasfilldata
)
67
{
68
if
( strcmp(what,
"fillNumber"
) == 0 )
return
ps
->
m_fillNumber
;
69
if
( strcmp(what,
"datavalidMask"
) == 0 )
return
ps
->
m_datavalidMask
;
70
71
}
72
73
74
75
76
std::cout <<
"packet_cdevringnopol::iValue error unknown datum: "
<< what << std::endl;
77
return
0;
78
79
}
80
81
82
double
Packet_cdevringnopol::dValue
(
const
int
channel,
const
char
*what)
83
{
84
int
i;
85
decode
(&i);
86
87
if
( strcmp(what,
"beamEnergy"
) == 0 )
return
ps
->
m_beamEnergy
;
88
if
( strcmp(what,
"gamma"
) == 0 )
return
ps
->
m_gamma
;
89
if
( strcmp(what,
"momentumSpread"
) == 0 )
return
ps
->
m_momentumSpread
;
90
if
( strcmp(what,
"synchrotronTune"
) == 0 )
return
ps
->
m_synchrotronTune
;
91
if
( strcmp(what,
"chromaticityVertical"
) == 0 )
return
ps
->
m_chromaticityVertical
;
92
if
( strcmp(what,
"chromaticityHorizontal"
) == 0 )
return
ps
->
m_chromaticityHorizontal
;
93
if
( strcmp(what,
"emittanceVertical"
) == 0 )
return
ps
->
m_emittanceVertical
;
94
if
( strcmp(what,
"emittanceHorizontal"
) == 0 )
return
ps
->
m_emittanceHorizontal
;
95
if
( strcmp(what,
"betaIPMHorizontal"
) == 0 )
return
ps
->
m_betaIPMHorizontal
;
96
if
( strcmp(what,
"betaIPMVertical"
) == 0 )
return
ps
->
m_betaIPMVertical
;
97
98
std::cout <<
"packet_cdevringnopol::dValue error unknown datum: "
<< what << std::endl;
99
return
0;
100
}
101
102
103
104
void
Packet_cdevringnopol::dump
(
OSTREAM
& os)
105
{
106
int
i;
107
decode
(&i);
108
109
this->
identify
(os);
110
111
os <<
"m_ringState "
<<
ps
->
m_ringState
<< std::endl;
112
os <<
"m_ionSpecies "
<<
ps
->
m_ionSpecies
<< std::endl;
113
os <<
"m_beamEnergy "
<<
ps
->
m_beamEnergy
<< std::endl;
114
os <<
"m_gamma "
<<
ps
->
m_gamma
<< std::endl;
115
os <<
"m_stoneType "
<<
ps
->
m_stoneType
<< std::endl;
116
os <<
"m_momentumSpread "
<<
ps
->
m_momentumSpread
<< std::endl;
117
os <<
"m_chromaticityVertical "
<<
ps
->
m_chromaticityVertical
<< std::endl;
118
os <<
"m_chromaticityHorizontal "
<<
ps
->
m_chromaticityHorizontal
<< std::endl;
119
os <<
"m_emittanceVertical "
<<
ps
->
m_emittanceVertical
<< std::endl;
120
121
122
if
(
hasfilldata
)
123
{
124
os <<
"fillNumber "
<<
iValue
(i,
"fillNumber"
) << std::endl;
125
os <<
"datavalidMask "
<<
iValue
(i,
"datavalidMask"
) << std::endl;
126
127
}
128
129
130
131
}
132
online_distribution
blob
master
newbasic
packet_cdevringnopol.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:59
using
1.8.2 with
ECCE GitHub integration