Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
28df904b
Commit
28df904b
authored
3 years ago
by
Dominik Smith
Committed by
Florian Uhlig
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
CbmDeviceBuildRawEvents: Switched from root serializer to boost serializer.
parent
3874ee48
No related branches found
No related tags found
1 merge request
!712
Event builder device
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MQ/mcbm/CbmDeviceEventBuilder.cxx
+4
-13
4 additions, 13 deletions
MQ/mcbm/CbmDeviceEventBuilder.cxx
with
4 additions
and
13 deletions
MQ/mcbm/CbmDeviceEventBuilder.cxx
+
4
−
13
View file @
28df904b
...
...
@@ -323,6 +323,7 @@ std::vector<double> CbmDeviceEventBuilder::GetTriggerTimes(const CbmDigiTimeslic
}
default
:
LOG
(
fatal
)
<<
"CbmDeviceEventBuilder::GetTriggerTimes(): Reading digis from unknown detector type!"
;
}
LOG
(
debug
)
<<
"CbmDeviceEventBuilder::GetTriggerTimes(): Building triggers from "
<<
vDigiTimes
.
size
()
<<
" digis."
;
return
fTriggerAlgo
(
vDigiTimes
,
fTriggerWindow
,
fMinNumDigis
,
fDeadTime
);
}
...
...
@@ -330,28 +331,19 @@ bool CbmDeviceEventBuilder::SendEvents(FairMQParts& partsIn, const std::vector<C
{
LOG
(
debug
)
<<
"Vector size: "
<<
vEvents
.
size
();
/// Serialize the array of events into a single MQ message
/// FIXME: Find out if possible to use only the boost serializer
FairMQMessagePtr
message
(
NewMessage
());
Serialize
<
RootSerializer
>
(
*
message
,
&
(
vEvents
));
/*
std
::
stringstream
ossEvt
;
boost
::
archive
::
binary_oarchive
oaEvt
(
ossEvt
);
oaEvt << v
Out
Events;
oaEvt
<<
vEvents
;
std
::
string
*
strMsgEvt
=
new
std
::
string
(
ossEvt
.
str
());
*/
/// Add it at the end of the input composed message
/// FIXME: Find out if possible to use only the boost serializer
FairMQParts
partsOut
(
std
::
move
(
partsIn
));
partsOut
.
AddPart
(
std
::
move
(
message
));
/*
partsOut
.
AddPart
(
NewMessage
(
const_cast
<
char
*>
(
strMsgEvt
->
c_str
()),
// data
strMsgEvt
->
length
(),
// size
[](
void
*
,
void
*
object
)
{
delete
static_cast
<
std
::
string
*>
(
object
);
},
strMsgEvt
));
// object that manages the data
*/
if
(
Send
(
partsOut
,
fsChannelNameDataOutput
)
<
0
)
{
LOG
(
error
)
<<
"Problem sending data to "
<<
fsChannelNameDataOutput
;
return
false
;
...
...
@@ -359,7 +351,6 @@ bool CbmDeviceEventBuilder::SendEvents(FairMQParts& partsIn, const std::vector<C
return
true
;
}
CbmDeviceEventBuilder
::~
CbmDeviceEventBuilder
()
{
/// Clear metadata
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment