Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
scdaq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
scouting-demonstrator
scdaq
Commits
657015be
Commit
657015be
authored
4 years ago
by
Thomas Owen James
Browse files
Options
Downloads
Patches
Plain Diff
doZS bug fix
parent
103e0408
No related branches found
No related tags found
1 merge request
!59
CMSSW json file
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/processor.cc
+6
-6
6 additions, 6 deletions
src/processor.cc
src/processor.h
+1
-1
1 addition, 1 deletion
src/processor.h
with
7 additions
and
7 deletions
src/processor.cc
+
6
−
6
View file @
657015be
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
#include
"slice.h"
#include
"slice.h"
#include
"log.h"
#include
"log.h"
StreamProcessor
::
StreamProcessor
(
size_t
max_size_
,
bool
n
oZS_
)
:
StreamProcessor
::
StreamProcessor
(
size_t
max_size_
,
bool
d
oZS_
)
:
tbb
::
filter
(
parallel
),
tbb
::
filter
(
parallel
),
max_size
(
max_size_
),
max_size
(
max_size_
),
nbPackets
(
0
),
nbPackets
(
0
),
n
oZS
(
n
oZS_
)
d
oZS
(
d
oZS_
)
{
{
LOG
(
TRACE
)
<<
"Created transform filter at "
<<
static_cast
<
void
*>
(
this
);
LOG
(
TRACE
)
<<
"Created transform filter at "
<<
static_cast
<
void
*>
(
this
);
}
}
...
@@ -61,13 +61,13 @@ Slice* StreamProcessor::process(Slice& input, Slice& out)
...
@@ -61,13 +61,13 @@ Slice* StreamProcessor::process(Slice& input, Slice& out)
uint32_t
orbit
=
bl
->
orbit
[
i
];
uint32_t
orbit
=
bl
->
orbit
[
i
];
orbitmatch
+=
(
orbit
==
bl
->
orbit
[
0
])
<<
i
;
orbitmatch
+=
(
orbit
==
bl
->
orbit
[
0
])
<<
i
;
uint32_t
pt
=
(
bl
->
mu1f
[
i
]
>>
shifts
::
pt
)
&
masks
::
pt
;
uint32_t
pt
=
(
bl
->
mu1f
[
i
]
>>
shifts
::
pt
)
&
masks
::
pt
;
AblocksOn
[
i
]
=
(
pt
>
0
||
n
oZS
);
AblocksOn
[
i
]
=
(
pt
>
0
||
(
d
oZS
==
0
)
);
if
(
pt
>
0
){
if
(
pt
>
0
||
(
doZS
==
0
)
){
mAcount
++
;
mAcount
++
;
}
}
pt
=
(
bl
->
mu2f
[
i
]
>>
shifts
::
pt
)
&
masks
::
pt
;
pt
=
(
bl
->
mu2f
[
i
]
>>
shifts
::
pt
)
&
masks
::
pt
;
BblocksOn
[
i
]
=
(
pt
>
0
||
n
oZS
);
BblocksOn
[
i
]
=
(
pt
>
0
||
(
d
oZS
==
0
)
);
if
(
pt
>
0
){
if
(
pt
>
0
||
(
doZS
==
0
)
){
mBcount
++
;
mBcount
++
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/processor.h
+
1
−
1
View file @
657015be
...
@@ -19,7 +19,7 @@ private:
...
@@ -19,7 +19,7 @@ private:
private:
private:
size_t
max_size
;
size_t
max_size
;
uint64_t
nbPackets
;
uint64_t
nbPackets
;
bool
n
oZS
;
bool
d
oZS
;
};
};
#endif
#endif
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