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
Show more breadcrumbs
Peter Sherwood
athena
Commits
13c5dbbe
Verified
Commit
13c5dbbe
authored
4 years ago
by
Tadej Novak
Browse files
Options
Downloads
Patches
Plain Diff
Throw in CutFlowSvc errors
parent
36a2c6b9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Event/EventBookkeeperTools/Root/CutFlowSvc.cxx
+5
-5
5 additions, 5 deletions
Event/EventBookkeeperTools/Root/CutFlowSvc.cxx
with
5 additions
and
5 deletions
Event/EventBookkeeperTools/Root/CutFlowSvc.cxx
+
5
−
5
View file @
13c5dbbe
...
...
@@ -115,7 +115,7 @@ CutIdentifier CutFlowSvc::registerTopFilter( const std::string& name,
xAOD
::
CutBookkeeper
*
cbk
=
getCutBookkeeper
(
cutID
,
0
);
if
(
cbk
==
nullptr
)
{
ATH_MSG_ERROR
(
"Could not find CutBookkeeper with CutID "
<<
cutID
);
return
0
;
throw
std
::
runtime_error
(
"Could not find CutBookkeeper"
)
;
}
// Then set the logic and outputStream of the relevant CutBookkeeper
...
...
@@ -139,7 +139,7 @@ CutIdentifier CutFlowSvc::registerCut( const std::string& name,
xAOD
::
CutBookkeeper
*
parentCbk
=
getCutBookkeeper
(
parentCutID
,
0
);
if
(
parentCbk
==
nullptr
)
{
ATH_MSG_ERROR
(
"Could not find parent CutBookkeeper with CutID "
<<
parentCutID
);
return
0
;
throw
std
::
runtime_error
(
"Could not find CutBookkeeper"
)
;
}
// Call the registerFilter method and get the correct CutBookkeeper
...
...
@@ -148,7 +148,7 @@ CutIdentifier CutFlowSvc::registerCut( const std::string& name,
xAOD
::
CutBookkeeper
*
cbk
=
getCutBookkeeper
(
cutID
,
0
);
if
(
cbk
==
nullptr
)
{
ATH_MSG_ERROR
(
"Could not find CutBookkeeper with CutID "
<<
cutID
);
return
0
;
throw
std
::
runtime_error
(
"Could not find CutBookkeeper"
)
;
}
// Add child to parent
...
...
@@ -180,7 +180,7 @@ CutFlowSvc::addEvent( CutIdentifier cutID,
{
if
(
weights
.
size
()
!=
m_containers
.
size
())
{
ATH_MSG_ERROR
(
"Inconsistent weights and variation sizes "
<<
weights
.
size
()
<<
" and "
<<
m_containers
.
size
());
return
;
throw
std
::
runtime_error
(
"Inconsistent weights and variation sizes"
)
;
}
for
(
size_t
i
=
0
;
i
<
m_containers
.
size
();
++
i
)
{
...
...
@@ -217,7 +217,7 @@ CutFlowSvc::addEvent( CutIdentifier cutID,
xAOD
::
CutBookkeeper
*
cbk
=
getCutBookkeeper
(
cutID
,
index
);
if
(
cbk
==
nullptr
)
{
ATH_MSG_ERROR
(
"Could not find CutBookkeeper for CutID "
<<
cutID
<<
" and variation "
<<
index
);
return
;
throw
std
::
runtime_error
(
"Could not find CutBookkeeper"
)
;
}
cbk
->
addNAcceptedEvents
(
1
);
...
...
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