ATLAS Offline Software
Lvl1MuSectorLogicDataPhase1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include <cstdio>
6 #include <iostream>
7 #include <iomanip>
8 
11 
12 namespace LVL1MUONIF {
13 
15  :
16  m_2candidatesInSector ( false ),
17  m_bcid( 0 ),
18  m_nsw( 0 ),
19  m_id_system( -1 )
20  {
21  }
23  {
24  m_roi.clear();
25  m_ovl.clear();
26  m_pt.clear();
27  m_charge.clear();
28  m_2candidates.clear();
29  m_goodmf.clear();
30  m_innercoin.clear();
31  m_bw2or3.clear();
32  m_veto.clear();
33  }
34 
36  {
37  if (m_id_system == -1) return;
38 
39  size_t ncand = NCAND[m_id_system];
40  for ( size_t i = 0; i < ncand; ++i ) {
41  m_roi.push_back(-1);
42  m_ovl.push_back(-1);
43  m_pt.push_back(-1);
44  m_charge.push_back(+1);
45  m_2candidates.push_back(false);
46  m_goodmf.push_back(-1);
47  m_innercoin.push_back(-1);
48  m_bw2or3.push_back(-1);
49  m_veto.push_back(0);
50  }
51  }
52 
53 
55  *this = right;
56  }
57 
59  if ( this != &right ) {
60  m_id_system = right.m_id_system;
61  m_bcid = right.m_bcid;
62  m_nsw = right.m_nsw;
64  for ( size_t i = 0; i < NCAND[m_id_system]; ++i ) {
65  m_roi[ i ] = right.m_roi[ i ];
66  m_ovl[ i ] = right.m_ovl[ i ];
67  m_pt[ i ] = right.m_pt[ i ];
68  m_charge[ i ] = right.m_charge[ i ];
69  m_2candidates[ i ] = right.m_2candidates[ i ];
70  m_goodmf[ i ] = right.m_goodmf[ i ];
71  m_innercoin[ i ] = right.m_innercoin[ i ];
72  m_bw2or3[ i ] = right.m_bw2or3[ i ];
73  m_veto[ i ] = right.m_veto[ i ];
74  }
75  }
76  return *this;
77  }
78 
79  std::ostream& operator<<( std::ostream& out, const Lvl1MuSectorLogicDataPhase1& right ) {
80 
81  right.printOut( out );
82  return out;
83 
84  }
85 
87  m_2candidatesInSector = false;
88  m_bcid = 0;
89  m_nsw = 0;
90  for ( size_t i = 0; i < NCAND[m_id_system]; ++i ) {
91  m_roi[ i ] = -1;
92  m_ovl[ i ] = -1;
93  m_pt[ i ] = -1;
94  m_charge[ i ] = -1;
95  m_2candidates[ i ] = false;
96  m_goodmf[ i ] = -1;
97  m_innercoin[ i ] = -1;
98  m_bw2or3[ i ] = -1;
99  m_veto[ i ] = 0;
100  }
101  }
102 
103 } // namespace LVL1MUONIF
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::m_bcid
int m_bcid
Definition: Lvl1MuSectorLogicDataPhase1.h:96
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::clear
void clear()
Definition: Lvl1MuSectorLogicDataPhase1.cxx:86
Lvl1MuSectorLogicConstantsPhase1.h
LVL1MUONIF
Namespace for the LVL1 muon interface classes.
Definition: Lvl1MuBarrelSectorLogicData.cxx:9
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::printOut
virtual void printOut(std::ostream &out) const =0
print out data
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::m_bw2or3
std::vector< int > m_bw2or3
Definition: Lvl1MuSectorLogicDataPhase1.h:102
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::m_pt
std::vector< int > m_pt
Definition: Lvl1MuSectorLogicDataPhase1.h:94
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::m_roi
std::vector< int > m_roi
Definition: Lvl1MuSectorLogicDataPhase1.h:92
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::m_goodmf
std::vector< int > m_goodmf
Definition: Lvl1MuSectorLogicDataPhase1.h:100
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::m_2candidatesInSector
bool m_2candidatesInSector
Definition: Lvl1MuSectorLogicDataPhase1.h:91
lumiFormat.i
int i
Definition: lumiFormat.py:85
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::m_nsw
int m_nsw
Definition: Lvl1MuSectorLogicDataPhase1.h:97
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::m_innercoin
std::vector< int > m_innercoin
Definition: Lvl1MuSectorLogicDataPhase1.h:101
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::~Lvl1MuSectorLogicDataPhase1
virtual ~Lvl1MuSectorLogicDataPhase1()
Definition: Lvl1MuSectorLogicDataPhase1.cxx:22
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1
Base class for the data coming from one SL board.
Definition: Lvl1MuSectorLogicDataPhase1.h:35
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::initialize
void initialize()
Definition: Lvl1MuSectorLogicDataPhase1.cxx:35
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::m_ovl
std::vector< int > m_ovl
Definition: Lvl1MuSectorLogicDataPhase1.h:93
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::m_charge
std::vector< int > m_charge
Definition: Lvl1MuSectorLogicDataPhase1.h:98
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::operator=
Lvl1MuSectorLogicDataPhase1 & operator=(const Lvl1MuSectorLogicDataPhase1 &right)
Definition: Lvl1MuSectorLogicDataPhase1.cxx:58
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::m_2candidates
std::vector< bool > m_2candidates
Definition: Lvl1MuSectorLogicDataPhase1.h:95
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::m_id_system
int m_id_system
Definition: Lvl1MuSectorLogicDataPhase1.h:99
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::m_veto
std::vector< int > m_veto
Definition: Lvl1MuSectorLogicDataPhase1.h:103
Lvl1MuSectorLogicDataPhase1.h
LVL1MUONIF::Lvl1MuSectorLogicDataPhase1::Lvl1MuSectorLogicDataPhase1
Lvl1MuSectorLogicDataPhase1()
Definition: Lvl1MuSectorLogicDataPhase1.cxx:14
NCAND
#define NCAND
Definition: SuperPointData.h:11
LVL1MUONIF::operator<<
std::ostream & operator<<(std::ostream &out, const Lvl1MuCTPIInput &right)
Definition: Lvl1MuCTPIInput.cxx:218