Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Lawrence Davou Christopher
athena
Commits
e342d870
Commit
e342d870
authored
8 years ago
by
Atlas-Software Librarian
Committed by
Graeme Stewart
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
'CMakeLists.txt' (PixelConditionsServices-00-24-28)
Former-commit-id: 60b980b8c7b5fee854879eb86295e85bf59ef161
parent
3b002aef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
InnerDetector/InDetConditions/PixelConditionsServices/src/PixelByteStreamErrorsSvc.cxx
+19
-5
19 additions, 5 deletions
.../PixelConditionsServices/src/PixelByteStreamErrorsSvc.cxx
with
19 additions
and
5 deletions
InnerDetector/InDetConditions/PixelConditionsServices/src/PixelByteStreamErrorsSvc.cxx
+
19
−
5
View file @
e342d870
...
...
@@ -368,11 +368,25 @@ StatusCode PixelByteStreamErrorsSvc::readData() {
// record the data to Storegate: for one event, one entry per module with errors
StatusCode
PixelByteStreamErrorsSvc
::
recordData
()
{
InDetBSErrContainer
*
cont
=
new
InDetBSErrContainer
();
StatusCode
sc
=
m_storeGate
->
overwrite
(
cont
,
"PixelByteStreamErrs"
);
if
(
sc
.
isFailure
()
){
msg
(
MSG
::
ERROR
)
<<
"Failed to record/overwrite BSErrors to SG"
<<
endreq
;
return
sc
;
StatusCode
sc
(
StatusCode
::
SUCCESS
);
bool
recorded
=
m_storeGate
->
contains
<
InDetBSErrContainer
>
(
"PixelByteStreamErrs"
);
// check if already recorded (by a previous HLT call for example)
InDetBSErrContainer
*
cont
;
if
(
!
recorded
){
// create a new object
cont
=
new
InDetBSErrContainer
();
sc
=
m_storeGate
->
record
(
cont
,
"PixelByteStreamErrs"
);
if
(
sc
.
isFailure
()
){
msg
(
MSG
::
ERROR
)
<<
"Failed to record BSErrors to SG"
<<
endreq
;
return
sc
;
}
}
else
{
// already recorded, retrieve object and modify
sc
=
m_storeGate
->
retrieve
(
cont
,
"PixelByteStreamErrs"
);
if
(
sc
.
isFailure
()
){
msg
(
MSG
::
ERROR
)
<<
"Failed to retrieve BSErrors from SG, but contains() returns true"
<<
endreq
;
return
sc
;
}
cont
->
clear
();
// delete and fill anew
}
for
(
unsigned
int
i
=
0
;
i
<
m_max_hashes
;
i
++
)
{
...
...
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