ATLAS Offline Software
Trigger
TrigT1
TrigT1TGC
src
TGCPatchPanelOut.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigT1TGC/TGCPatchPanelOut.h
"
6
#include "
TrigT1TGC/TGCPatchPanel.h
"
7
#include "
TrigT1TGC/TGCHitPattern.h
"
8
#include <cstdlib>
9
#include <iostream>
10
11
namespace
LVL1TGCTrigger
{
12
13
TGCPatchPanelOut::TGCPatchPanelOut
()
14
{
15
for
(
int
i
=0;
i
<
NumberOfConnectorPerPPOut
;
i
+=1){
16
m_signalPattern
[
i
] = 0;
17
}
18
}
19
TGCPatchPanelOut::~TGCPatchPanelOut
()
20
{
21
for
(
int
i
=0;
i
<
NumberOfConnectorPerPPOut
;
i
+=1){
22
if
(
m_signalPattern
[
i
]!=0)
delete
m_signalPattern
[
i
];
23
}
24
}
25
26
TGCPatchPanelOut
&
TGCPatchPanelOut::operator=
(
const
TGCPatchPanelOut
& right)
27
{
28
if
(
this
!= &right) {
29
m_bid
= right.
m_bid
;
30
m_origin
= right.
m_origin
;
31
32
for
(
int
i
=0;
i
<
NumberOfConnectorPerPPOut
;
i
+=1){
33
if
(
m_signalPattern
[
i
]!=0)
delete
m_signalPattern
[
i
];
34
m_signalPattern
[
i
] =
new
TGCHitPattern
( *(right.
m_signalPattern
[
i
]) );
35
}
36
}
37
return
*
this
;
38
}
39
40
void
TGCPatchPanelOut::deleteHitPattern
(
int
i
)
41
{
42
if
(
m_signalPattern
[
i
]!=0)
delete
m_signalPattern
[
i
];
43
m_signalPattern
[
i
]=0;
44
}
45
46
void
TGCPatchPanelOut::print
()
const
47
{
48
#ifdef TGCCOUT
49
std::cout <<
"PatchPanelOut: bid= "
<<
m_bid
<<
" PPID= "
<<
m_origin
->
getId
()
50
<<
" PPType= "
<<
m_origin
->
getType
()<<
" PPRegion= "
<<
m_origin
->
getRegion
()<<std::endl;
51
#endif
52
int
i
;
53
for
(
i
=0;
i
<
NumberOfConnectorPerPPOut
;
i
++){
54
if
(
m_signalPattern
[
i
]!=0){
55
#ifdef TGCCOUT
56
std::cout <<
"Connector"
<<
i
<<std::endl;
57
#endif
58
m_signalPattern
[
i
]->
print
();
59
}
60
}
61
}
62
63
64
65
}
//end of namespace bracket
LVL1TGCTrigger::TGCPatchPanel::getId
int getId() const
Definition:
TGCPatchPanel.cxx:399
TGCPatchPanelOut.h
LVL1TGCTrigger::TGCHitPattern::print
void print(int unit) const
Definition:
TGCHitPattern.cxx:111
LVL1TGCTrigger::TGCPatchPanelOut::m_origin
const TGCPatchPanel * m_origin
pointer to Patch Panel generate this PatchPanelOut
Definition:
TGCPatchPanelOut.h:40
LVL1TGCTrigger::TGCPatchPanelOut::~TGCPatchPanelOut
~TGCPatchPanelOut()
Definition:
TGCPatchPanelOut.cxx:19
LVL1TGCTrigger::TGCPatchPanelOut::operator=
TGCPatchPanelOut & operator=(const TGCPatchPanelOut &right)
Definition:
TGCPatchPanelOut.cxx:26
TGCHitPattern.h
lumiFormat.i
int i
Definition:
lumiFormat.py:85
LVL1TGCTrigger::NumberOfConnectorPerPPOut
const int NumberOfConnectorPerPPOut
Definition:
TGCPatchPanelOut.h:13
LVL1TGCTrigger
Definition:
LVL1TGCTrigger.cxx:47
LVL1TGCTrigger::TGCPatchPanelOut::m_signalPattern
TGCHitPattern * m_signalPattern[NumberOfConnectorPerPPOut]
Definition:
TGCPatchPanelOut.h:41
LVL1TGCTrigger::TGCPatchPanelOut::print
void print() const
Definition:
TGCPatchPanelOut.cxx:46
LVL1TGCTrigger::TGCHitPattern
Definition:
TGCHitPattern.h:11
LVL1TGCTrigger::TGCPatchPanel::getType
int getType() const
Definition:
TGCPatchPanel.h:64
LVL1TGCTrigger::TGCPatchPanelOut::m_bid
int m_bid
bunch ID number
Definition:
TGCPatchPanelOut.h:39
LVL1TGCTrigger::TGCPatchPanel::getRegion
TGCRegionType getRegion() const
Definition:
TGCPatchPanel.h:66
LVL1TGCTrigger::TGCPatchPanelOut::deleteHitPattern
void deleteHitPattern(int i)
Definition:
TGCPatchPanelOut.cxx:40
LVL1TGCTrigger::TGCPatchPanelOut::TGCPatchPanelOut
TGCPatchPanelOut()
Definition:
TGCPatchPanelOut.cxx:13
TGCPatchPanel.h
LVL1TGCTrigger::TGCPatchPanelOut
Definition:
TGCPatchPanelOut.h:17
Generated on Sun Dec 22 2024 21:19:25 for ATLAS Offline Software by
1.8.18