Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
oec-middleware
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
yangyixiang@ihep.ac.cn
oec-middleware
Commits
e82d616f
Commit
e82d616f
authored
1 year ago
by
git_yyx
Browse files
Options
Downloads
Patches
Plain Diff
fix acceptable
parent
f555aed0
Branches
v0.2.8_fix
Tags
v0.2.8_fix
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CppSniper4HOEC/src/HOECProcessor.cc
+5
-9
5 additions, 9 deletions
CppSniper4HOEC/src/HOECProcessor.cc
CppSniper4HOEC/src/HOECProcessor.h
+0
-1
0 additions, 1 deletion
CppSniper4HOEC/src/HOECProcessor.h
with
5 additions
and
10 deletions
CppSniper4HOEC/src/HOECProcessor.cc
+
5
−
9
View file @
e82d616f
...
...
@@ -23,11 +23,6 @@ m_processPatience(5)
HOECProcessor
::~
HOECProcessor
()
{
LogInfo
<<
"*************************The input l1id*********"
<<
std
::
endl
;
for
(
auto
num
:
m_l1idOrder
){
LogInfo
<<
num
<<
" "
<<
std
::
endl
;
}
m_mainThread
->
detach
();
m_workerThread
->
detach
();
...
...
@@ -92,7 +87,7 @@ void HOECProcessor::mainThreadFunc(){
oec
::
OECRecEvt
*
_firstEvt
=
((
oec
::
OECRecEvt
*
)(
*
evtsPtr
->
begin
()));
assert
(
_firstEvt
->
marker
==
0x12345678
);
LogInfo
<<
"*************************The l1id is "
<<
_firstEvt
->
l1id
<<
"**************"
<<
std
::
endl
;
m_l1idOrder
.
push_back
(
_firstEvt
->
l1id
);
m_newestTime
=
_firstEvt
->
sec
;
m_fragmentPool
.
insertFrag
(
evtsPtr
,
_firstEvt
->
l1id
,
_firstEvt
->
sec
,
_firstEvt
->
nanoSec
);
m_processPointer
.
locate
=
_firstEvt
->
l1id
%
m_processPointer
.
arrayLen
;
//初始化m_processPointer
...
...
@@ -119,7 +114,7 @@ void HOECProcessor::mainThreadFunc(){
assert
(
_firstEvt
->
marker
==
0x12345678
);
LogInfo
<<
"*******************Mian thread insert one TF, TFid is "
<<
_firstEvt
->
l1id
<<
"**************"
<<
std
::
endl
;
m_l1idOrder
.
push_back
(
_firstEvt
->
l1id
);
m_fragmentPool
.
insertFrag
(
evtsPtr
,
_firstEvt
->
l1id
,
_firstEvt
->
sec
,
_firstEvt
->
nanoSec
);
m_newestTime
=
std
::
max
(
m_newestTime
,
_firstEvt
->
sec
);
...
...
@@ -253,8 +248,9 @@ bool HOECProcessor::isAcceptable(oec::OECRecEvt* evt){
return
false
;
}
else
{
if
(
locate
>=
rightBound
||
locate
<=
leftBound
)
return
false
;
return
true
;
if
(
locate
>
leftBound
||
locate
<
rightBound
)
return
true
;
LogFatal
<<
"leftBound: "
<<
leftBound
<<
" rightBound: "
<<
rightBound
<<
std
::
endl
;
return
false
;
}
}
...
...
This diff is collapsed.
Click to expand it.
CppSniper4HOEC/src/HOECProcessor.h
+
0
−
1
View file @
e82d616f
...
...
@@ -27,7 +27,6 @@ public:
bool
virtual
put
(
const
oec
::
EvsInTimeFragment
&
,
oec
::
TimeoutInMs
=
1000
)
override
;
bool
virtual
get
(
oec
::
EvsInTimeFragment
&
,
oec
::
TimeoutInMs
=
1000
)
override
;
std
::
vector
<
uint32_t
>
m_l1idOrder
;
//对功能无用,debug专用
private:
//成员变量的初始化顺序,依照此顺序
...
...
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