Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
atlas
athena
Merge requests
!64213
23.0-cppcheck-ActsGeometry
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
23.0-cppcheck-ActsGeometry
sroe/athena:23.0-cppcheck-ActsGeometry
into
23.0
Overview
3
Commits
1
Pipelines
1
Changes
1
Merged
Shaun Roe
requested to merge
sroe/athena:23.0-cppcheck-ActsGeometry
into
23.0
1 year ago
Overview
3
Commits
1
Pipelines
1
Changes
1
Expand
cppcheck defect: dont take c_str of a temporary
0
0
Merge request reports
Compare
23.0
23.0 (base)
and
latest version
latest version
48daa54b
1 commit,
1 year ago
1 file
+
3
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Tracking/Acts/ActsGeometry/scripts/util/Geant_Following.C
+
3
−
2
Options
/*
Copyright (C) 2020-202
2
CERN for the benefit of the ATLAS collaboration
Copyright (C) 2020-202
3
CERN for the benefit of the ATLAS collaboration
*/
#include
<TROOT.h>
@@ -95,7 +95,8 @@ void Geant_Following(const std::string& File = "", const std::string& Detector =
for
(
auto
const
&
id
:
detectors
)
{
TCut
c1
=
detSelection
;
TCut
c2
=
(
"ActsVolumeId == "
+
to_string
(
id
)).
c_str
();
std
::
string
cutString
=
"ActsVolumeId == "
+
to_string
(
id
);
TCut
c2
(
cutString
.
c_str
());
detSelection
=
c1
||
c2
;
}
Loading