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
Fabrizio Salvatore
athena
Commits
bf4fbfc3
Commit
bf4fbfc3
authored
6 years ago
by
Christos Anastopoulos
Browse files
Options
Downloads
Patches
Plain Diff
xAODEventShape: Enable thread-safety checking.
parent
1515629d
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Event/xAOD/xAODEventShape/Root/EventShape_v1.cxx
+7
-8
7 additions, 8 deletions
Event/xAOD/xAODEventShape/Root/EventShape_v1.cxx
Event/xAOD/xAODEventShape/xAODEventShape/ATLAS_CHECK_THREAD_SAFETY
+1
-0
1 addition, 0 deletions
...D/xAODEventShape/xAODEventShape/ATLAS_CHECK_THREAD_SAFETY
with
8 additions
and
8 deletions
Event/xAOD/xAODEventShape/Root/EventShape_v1.cxx
+
7
−
8
View file @
bf4fbfc3
/*
Copyright (C) 2002-201
7
CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-201
9
CERN for the benefit of the ATLAS collaboration
*/
// $Id: EventShape_v1.cxx 639015 2015-01-12 21:15:26Z delsart $
// System include(s):
#include
<iostream>
...
...
@@ -15,7 +14,7 @@
#define DEFINE_ACCESSOR( NAME ) \
case xAOD::EventShape_v1::NAME: \
{ \
static SG::AuxElement::Accessor< float > a( #NAME ); \
static
const
SG::AuxElement::Accessor< float > a( #NAME ); \
return &a; \
} \
break
...
...
@@ -23,7 +22,7 @@
namespace
{
/// Helper function for getting the Accessor for a given EventShapeID
SG
::
AuxElement
::
Accessor
<
float
>*
const
SG
::
AuxElement
::
Accessor
<
float
>*
eventShapeAccessor
(
xAOD
::
EventShape_v1
::
EventShapeID
id
)
{
switch
(
id
)
{
...
...
@@ -44,7 +43,7 @@ namespace {
}
/// Helper function for getting the Accessor for a given EventDensityID
SG
::
AuxElement
::
Accessor
<
float
>*
const
SG
::
AuxElement
::
Accessor
<
float
>*
eventDensityAccessor
(
xAOD
::
EventShape_v1
::
EventDensityID
id
)
{
switch
(
id
)
{
...
...
@@ -63,7 +62,7 @@ namespace {
}
/// Helper function retrieving a float variable from the EventShape object
bool
getAttribute
(
SG
::
AuxElement
::
Accessor
<
float
>*
acc
,
bool
getAttribute
(
const
SG
::
AuxElement
::
Accessor
<
float
>*
acc
,
const
xAOD
::
EventShape_v1
&
es
,
double
&
v
)
{
if
(
acc
&&
acc
->
isAvailable
(
es
)
)
{
...
...
@@ -75,7 +74,7 @@ namespace {
}
/// Helper function retrieving a float variable from the EventShape object
double
getAttribute
(
SG
::
AuxElement
::
Accessor
<
float
>*
acc
,
double
getAttribute
(
const
SG
::
AuxElement
::
Accessor
<
float
>*
acc
,
const
xAOD
::
EventShape_v1
&
es
)
{
if
(
acc
)
{
...
...
@@ -87,7 +86,7 @@ namespace {
}
/// Helper function setting a float variable on the EventShape object
bool
setAttribute
(
SG
::
AuxElement
::
Accessor
<
float
>*
acc
,
bool
setAttribute
(
const
SG
::
AuxElement
::
Accessor
<
float
>*
acc
,
xAOD
::
EventShape_v1
&
es
,
double
v
)
{
if
(
acc
)
{
...
...
This diff is collapsed.
Click to expand it.
Event/xAOD/xAODEventShape/xAODEventShape/ATLAS_CHECK_THREAD_SAFETY
0 → 100644
+
1
−
0
View file @
bf4fbfc3
Event/xAOD/xAODEventShape
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