ATLAS Offline Software
BIS78TrigOut.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
9 namespace LVL1TGC {
10 
11 BIS78TrigOut::BIS78TrigOut(const std::vector<int>& BIS78PB,
12  const std::vector<uint8_t>& BIS78eta,
13  const std::vector<uint8_t>& BIS78phi,
14  const std::vector<uint8_t>& BIS78Deta,
15  const std::vector<uint8_t>& BIS78Dphi,
16  const std::vector<uint8_t>& BIS78flag3over3eta,
17  const std::vector<uint8_t>& BIS78flag3over3phi,
19  : m_BIS78PadBoard(BIS78PB), m_BIS78eta_6bit(BIS78eta), m_BIS78phi_6bit(BIS78phi), m_BIS78Deta_3bit(BIS78Deta), m_BIS78Dphi_3bit(BIS78Dphi), m_BIS78flag3over3eta_1bit(BIS78flag3over3eta), m_BIS78flag3over3phi_1bit(BIS78flag3over3phi),
20  m_tgcArgs(tgcargs)
21 {}
22 
23 BIS78TrigOut::BIS78TrigOut(const std::vector<int>& BIS78PB, LVL1TGCTrigger::TGCArguments* tgcargs)
24  : m_BIS78PadBoard(BIS78PB), m_tgcArgs(tgcargs)
25 {}
26 
27 
29 {
30  if (this != &right) {
31  m_BIS78PadBoard.insert(m_BIS78PadBoard.end(), right.m_BIS78PadBoard.begin(), right.m_BIS78PadBoard.end());
32  m_BIS78eta_6bit.insert(m_BIS78eta_6bit.end(), right.m_BIS78eta_6bit.begin(), right.m_BIS78eta_6bit.end());
33  m_BIS78phi_6bit.insert(m_BIS78phi_6bit.end(), right.m_BIS78phi_6bit.begin(), right.m_BIS78phi_6bit.end());
34  m_BIS78Deta_3bit.insert(m_BIS78Deta_3bit.end(), right.m_BIS78Deta_3bit.begin(), right.m_BIS78Deta_3bit.end());
35  m_BIS78Dphi_3bit.insert(m_BIS78Dphi_3bit.end(), right.m_BIS78Dphi_3bit.begin(), right.m_BIS78Dphi_3bit.end());
38  }
39  return *this;
40 }
41 
42 void BIS78TrigOut::print() const
43 {
44  MsgStream msg(Athena::getMessageSvc(), "LVL1TGC::BIS78TrigOut");
45  if (m_tgcArgs) msg.setLevel(m_tgcArgs->MSGLEVEL());
46 
47  for(unsigned int i=0;i!=m_BIS78PadBoard.size();i++){
48  msg << MSG::DEBUG
49  << "i=" << i<<"\n"
50  <<"Size=="<<m_BIS78PadBoard.size()<<"\n"
51  << " :: ModuleID=" << static_cast<int>(m_BIS78PadBoard[i])<<"\n"
52  << " :: eta_6bit=" << static_cast<int>(m_BIS78eta_6bit[i])<<"\n"
53  << " :: phi_6bit=" << static_cast<int>(m_BIS78phi_6bit[i])<<"\n"
54  << " :: Deta_3bit=" << static_cast<int>(m_BIS78Deta_3bit[i])<<"\n"
55  << " :: Dphi_3bit=" << static_cast<int>(m_BIS78Dphi_3bit[i])<<"\n"
56  << " :: flag3over3eta_1bit=" << static_cast<int>(m_BIS78flag3over3eta_1bit[i])<<"\n"
57  << " :: flag3over3phi_1bit=" << static_cast<int>(m_BIS78flag3over3phi_1bit[i])<<"\n"
58  << endmsg;
59  }
60 }
61 
62 
63 } // end of namespace
LVL1TGC::BIS78TrigOut::BIS78TrigOut
BIS78TrigOut()=default
LVL1TGC::BIS78TrigOut::m_BIS78flag3over3phi_1bit
std::vector< uint8_t > m_BIS78flag3over3phi_1bit
Definition: BIS78TrigOut.h:24
LVL1TGC::BIS78TrigOut::m_tgcArgs
LVL1TGCTrigger::TGCArguments * m_tgcArgs
Definition: BIS78TrigOut.h:73
LVL1TGC::BIS78TrigOut::m_BIS78phi_6bit
std::vector< uint8_t > m_BIS78phi_6bit
Definition: BIS78TrigOut.h:20
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
LVL1TGC::BIS78TrigOut::m_BIS78flag3over3eta_1bit
std::vector< uint8_t > m_BIS78flag3over3eta_1bit
Definition: BIS78TrigOut.h:23
LVL1TGC::BIS78TrigOut::m_BIS78Deta_3bit
std::vector< uint8_t > m_BIS78Deta_3bit
Definition: BIS78TrigOut.h:21
LVL1TGC::BIS78TrigOut
Definition: BIS78TrigOut.h:16
LVL1TGC::BIS78TrigOut::operator+=
BIS78TrigOut & operator+=(const BIS78TrigOut &right)
Definition: BIS78TrigOut.cxx:28
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
LVL1TGC::BIS78TrigOut::m_BIS78PadBoard
std::vector< int > m_BIS78PadBoard
Definition: BIS78TrigOut.h:18
lumiFormat.i
int i
Definition: lumiFormat.py:85
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
LVL1TGC
Definition: BigWheelCoincidenceLUT.cxx:20
LVL1TGCTrigger::TGCArguments::MSGLEVEL
MSG::Level MSGLEVEL() const
Definition: TGCArguments.cxx:40
LVL1TGC::BIS78TrigOut::print
void print() const
Definition: BIS78TrigOut.cxx:42
BIS78TrigOut.h
LVL1TGCTrigger::TGCArguments
Definition: TGCArguments.h:12
DEBUG
#define DEBUG
Definition: page_access.h:11
LVL1TGC::BIS78TrigOut::m_BIS78Dphi_3bit
std::vector< uint8_t > m_BIS78Dphi_3bit
Definition: BIS78TrigOut.h:22
TGCArguments.h
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
LVL1TGC::BIS78TrigOut::m_BIS78eta_6bit
std::vector< uint8_t > m_BIS78eta_6bit
Definition: BIS78TrigOut.h:19