ATLAS Offline Software
Trigger
TrigT1
TrigT1RPClogic
src
PATTERNidentity.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigT1RPClogic/PATTERNidentity.h
"
6
7
using namespace
std;
8
9
const
char
PATTERNidentity::s_inputTag
[4][9] =
10
{ {
"Low Pt"
},{
"Pivot"
},{
"High Pt"
},{
"No input"
} };
11
12
13
PATTERNidentity::PATTERNidentity
(
CMAinput
io,
int
layer
) :
14
m_input_id(io),m_layer_id(
layer
) {}
15
16
PATTERNidentity::PATTERNidentity
(
const
PATTERNidentity
&
id
)
17
{
18
m_input_id
=
id
.input_id();
19
m_layer_id
=
id
.layer_id();
20
}
21
22
PATTERNidentity
23
PATTERNidentity::operator=
(
const
PATTERNidentity
&
id
)
24
{
25
m_input_id
=
id
.input_id();
26
m_layer_id
=
id
.layer_id();
27
return
*
this
;
28
}
29
30
bool
31
PATTERNidentity::operator ==
(
const
PATTERNidentity
&
id
)
const
32
{
33
if
(
m_input_id
==
id
.
input_id
() &&
m_layer_id
==
id
.
layer_id
())
return
true
;
34
return
false
;
35
}
36
37
bool
38
PATTERNidentity::operator !=
(
const
PATTERNidentity
&
id
)
const
39
{
40
return
!(*
this
==
id
);
41
}
42
43
bool
44
PATTERNidentity::operator <
(
const
PATTERNidentity
&
id
)
const
45
{
46
if
(
m_input_id
<
id
.
input_id
() &&
m_layer_id
<
id
.
layer_id
() )
return
true
;
47
return
false
;
48
}
49
50
void
PATTERNidentity::Print
(ostream&
stream
,
bool
detail
)
const
51
{
52
detail
=
true
;
53
if
(
detail
)
54
{
55
stream
<<
s_inputTag
[
input_id
()] <<
", layer "
<<
layer_id
();
56
}
57
}
detail
Definition:
extract_histogram_tag.cxx:14
AthenaPoolTestWrite.stream
string stream
Definition:
AthenaPoolTestWrite.py:12
PATTERNidentity::input_id
CMAinput input_id(void) const
Definition:
PATTERNidentity.h:30
PATTERNidentity
Definition:
PATTERNidentity.h:13
PATTERNidentity::Print
void Print(std::ostream &, bool) const
Definition:
PATTERNidentity.cxx:50
PATTERNidentity::operator!=
bool operator!=(const PATTERNidentity &) const
Definition:
PATTERNidentity.cxx:38
TRT::Hit::layer
@ layer
Definition:
HitInfo.h:79
PATTERNidentity::layer_id
int layer_id(void) const
Definition:
PATTERNidentity.h:31
PATTERNidentity::operator=
PATTERNidentity operator=(const PATTERNidentity &)
Definition:
PATTERNidentity.cxx:23
CMAinput
CMAinput
Definition:
CMAparameters.h:18
PATTERNidentity.h
PATTERNidentity::PATTERNidentity
PATTERNidentity(CMAinput, int)
Definition:
PATTERNidentity.cxx:13
id
SG::auxid_t id
Definition:
Control/AthContainers/Root/debug.cxx:220
PATTERNidentity::operator==
bool operator==(const PATTERNidentity &) const
Definition:
PATTERNidentity.cxx:31
PATTERNidentity::s_inputTag
static const char s_inputTag[4][9]
Definition:
PATTERNidentity.h:15
PATTERNidentity::operator<
bool operator<(const PATTERNidentity &) const
Definition:
PATTERNidentity.cxx:44
PATTERNidentity::m_layer_id
int m_layer_id
Definition:
PATTERNidentity.h:18
PATTERNidentity::m_input_id
CMAinput m_input_id
Definition:
PATTERNidentity.h:17
Generated on Thu Nov 7 2024 21:23:21 for ATLAS Offline Software by
1.8.18