Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
atlas
athena
Commits
7db3871f
Commit
7db3871f
authored
Jul 12, 2021
by
scott snyder
Committed by
scott snyder
Aug 24, 2021
Browse files
L1TopoEvent: Fix cppcheck warnings.
Pass std::string by const reference, not by value.
parent
79ec0f26
Changes
4
Hide whitespace changes
Inline
Side-by-side
Trigger/TrigT1/L1Topo/L1TopoEvent/L1TopoEvent/jLargeRJetTOB.h
View file @
7db3871f
...
...
@@ -19,13 +19,13 @@ namespace TCS {
public:
// default constructor
jLargeRJetTOB
(
uint32_t
roiWord
=
0
,
std
::
string
tobName
=
"jLargeRJetTOB"
);
jLargeRJetTOB
(
uint32_t
roiWord
=
0
,
const
std
::
string
&
tobName
=
"jLargeRJetTOB"
);
// copy constructor
jLargeRJetTOB
(
const
jLargeRJetTOB
&
jet
);
// constructor with initial values
jLargeRJetTOB
(
unsigned
int
Et
,
int
eta
,
unsigned
phi
,
uint32_t
roiWord
=
0
,
std
::
string
tobName
=
"jLargeRJetTOB"
);
jLargeRJetTOB
(
unsigned
int
Et
,
int
eta
,
unsigned
phi
,
uint32_t
roiWord
=
0
,
const
std
::
string
&
tobName
=
"jLargeRJetTOB"
);
// destructor
virtual
~
jLargeRJetTOB
();
...
...
Trigger/TrigT1/L1Topo/L1TopoEvent/L1TopoEvent/jTauTOB.h
View file @
7db3871f
...
...
@@ -19,13 +19,13 @@ namespace TCS {
public:
// default constructor
jTauTOB
(
uint32_t
roiWord
=
0
,
std
::
string
tobName
=
"jTauTOB"
);
jTauTOB
(
uint32_t
roiWord
=
0
,
const
std
::
string
&
tobName
=
"jTauTOB"
);
// copy constructor
jTauTOB
(
const
jTauTOB
&
jet
);
// constructor with initial values
jTauTOB
(
unsigned
int
Et
,
int
eta
,
unsigned
phi
,
uint32_t
roiWord
=
0
,
std
::
string
tobName
=
"jTauTOB"
);
jTauTOB
(
unsigned
int
Et
,
int
eta
,
unsigned
phi
,
uint32_t
roiWord
=
0
,
const
std
::
string
&
tobName
=
"jTauTOB"
);
// destructor
virtual
~
jTauTOB
();
...
...
Trigger/TrigT1/L1Topo/L1TopoEvent/Root/jLargeRJetTOB.cxx
View file @
7db3871f
...
...
@@ -6,12 +6,12 @@ thread_local TCS::Heap<TCS::jLargeRJetTOB> TCS::jLargeRJetTOB::fg_heap("Jet");
// constructors
// default constructor
TCS
::
jLargeRJetTOB
::
jLargeRJetTOB
(
uint32_t
roiWord
,
std
::
string
tobName
)
:
TCS
::
jLargeRJetTOB
::
jLargeRJetTOB
(
uint32_t
roiWord
,
const
std
::
string
&
tobName
)
:
BaseTOB
(
roiWord
,
tobName
)
{}
// constructor with initial values
TCS
::
jLargeRJetTOB
::
jLargeRJetTOB
(
unsigned
int
Et
,
int
eta
,
unsigned
phi
,
uint32_t
roiWord
,
std
::
string
tobName
)
:
TCS
::
jLargeRJetTOB
::
jLargeRJetTOB
(
unsigned
int
Et
,
int
eta
,
unsigned
phi
,
uint32_t
roiWord
,
const
std
::
string
&
tobName
)
:
BaseTOB
(
roiWord
,
tobName
)
,
m_Et
(
Et
)
,
m_eta
(
eta
)
...
...
Trigger/TrigT1/L1Topo/L1TopoEvent/Root/jTauTOB.cxx
View file @
7db3871f
...
...
@@ -6,12 +6,12 @@ thread_local TCS::Heap<TCS::jTauTOB> TCS::jTauTOB::fg_heap("Jet");
// constructors
// default constructor
TCS
::
jTauTOB
::
jTauTOB
(
uint32_t
roiWord
,
std
::
string
tobName
)
:
TCS
::
jTauTOB
::
jTauTOB
(
uint32_t
roiWord
,
const
std
::
string
&
tobName
)
:
BaseTOB
(
roiWord
,
tobName
)
{}
// constructor with initial values
TCS
::
jTauTOB
::
jTauTOB
(
unsigned
int
Et
,
int
eta
,
unsigned
phi
,
uint32_t
roiWord
,
std
::
string
tobName
)
:
TCS
::
jTauTOB
::
jTauTOB
(
unsigned
int
Et
,
int
eta
,
unsigned
phi
,
uint32_t
roiWord
,
const
std
::
string
&
tobName
)
:
BaseTOB
(
roiWord
,
tobName
)
,
m_Et
(
Et
)
,
m_eta
(
eta
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment