ATLAS Offline Software
Loading...
Searching...
No Matches
TGCConnectionPPToSB.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace LVL1TGCTrigger {
8
10{
11 for (int i=0; i < N_PP_PORTS; i++) {
12 for (int j=0; j<TGCSector::NumberOfPatchPanelType; j+=1){
13 if (m_SBIdToPP[i][j]!=0) delete [] m_SBIdToPP[i][j];
14 m_SBIdToPP[i][j]=0;
15 }
16 }
17}
18
26
29{
30 for (int i=0; i < N_PP_PORTS; i+=1) {
31 for (int j=0; j<TGCSector::NumberOfPatchPanelType; j+=1){
32 if(m_SBIdToPP[i][j]!=0) delete [] m_SBIdToPP[i][j];
33 m_SBIdToPP[i][j] = new int [m_id.at(j).size()];
34 for(unsigned int k=0; k < m_id.at(j).size(); k++)
35 m_SBIdToPP[i][j][k] = right.m_SBIdToPP[i][j][k];
36 }
37 }
38}
39
41{
42 if(this!=&right){
43 int j;
44 for (int i=0; i < N_PP_PORTS; i++) {
45 for( j=0; j<TGCSector::NumberOfPatchPanelType; j+=1){
46 if(m_SBIdToPP[i][j]!=0) delete [] m_SBIdToPP[i][j];
47 m_SBIdToPP[i][j] = new int [m_id.at(j).size()];
48 for (unsigned int k=0; k < m_id.at(j).size(); k++)
49 m_SBIdToPP[i][j][k] = right.m_SBIdToPP[i][j][k];
50 }
51 }
52 }
53 return *this;
54}
55
56} // end of namespace
std::vector< std::vector< int > > m_id
TGCConnectionPPToSB & operator=(const TGCConnectionPPToSB &right)
int * m_SBIdToPP[N_PP_PORTS][TGCSector::NumberOfPatchPanelType]