ATLAS Offline Software
NSWTrigOut.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "TrigT1TGC/NSWTrigOut.h"
8 
9 namespace LVL1TGC {
10 
12  const std::vector<int>& NSWTP,
13  const std::vector<uint8_t>& NSWeta,
14  const std::vector<uint8_t>& NSWphi,
15  const std::vector<uint8_t>& NSWDtheta,
16  const std::vector<bool>& NSWlowRes,
17  const std::vector<bool>& NSWphiRes,
18  const std::vector<bool>& NSWmonitor,
20 : m_sideID(side), m_NSWTriggerProcessor(NSWTP), m_NSWeta_8bit(NSWeta), m_NSWphi_6bit(NSWphi), m_NSWDtheta_5bit(NSWDtheta), m_NSWlowRes(NSWlowRes), m_NSWphiRes(NSWphiRes), m_NSWmonitor(NSWmonitor), m_tgcArgs(tgcargs)
21 {
22 }
23 
24 NSWTrigOut::NSWTrigOut(int side, const std::vector<int>& NSWTP, LVL1TGCTrigger::TGCArguments* tgcargs)
25  : m_sideID(side), m_NSWTriggerProcessor(NSWTP), m_tgcArgs(tgcargs)
26 {
27 }
28 
29 
31 {
32  if (this != &right && (m_sideID==right.m_sideID || m_sideID==-1)) {
34  m_NSWeta_8bit.insert(m_NSWeta_8bit.end(), right.m_NSWeta_8bit.begin(), right.m_NSWeta_8bit.end());
35  m_NSWphi_6bit.insert(m_NSWphi_6bit.end(), right.m_NSWphi_6bit.begin(), right.m_NSWphi_6bit.end());
36  m_NSWDtheta_5bit.insert(m_NSWDtheta_5bit.end(), right.m_NSWDtheta_5bit.begin(), right.m_NSWDtheta_5bit.end());
37  m_NSWlowRes.insert(m_NSWlowRes.end(), right.m_NSWlowRes.begin(), right.m_NSWlowRes.end());
38  m_NSWphiRes.insert(m_NSWphiRes.end(), right.m_NSWphiRes.begin(), right.m_NSWphiRes.end());
39  m_NSWmonitor.insert(m_NSWmonitor.end(), right.m_NSWmonitor.begin(), right.m_NSWmonitor.end());
40  }
41  return *this;
42 }
43 
44 void NSWTrigOut::print() const
45 {
46  MsgStream msg(Athena::getMessageSvc(), "LVL1TGC::NSWTrigOut");
47  if (m_tgcArgs) msg.setLevel(m_tgcArgs->MSGLEVEL());
48 
49  for(unsigned int i=0;i!=m_NSWTriggerProcessor.size();i++){
50  msg << MSG::DEBUG
51  << "i=" << i<<"\n"
52  <<"Size=="<<m_NSWTriggerProcessor.size()<<"\n"
53  << "Side=" << m_sideID <<"\n"
54  << " :: ModuleID=" << m_NSWTriggerProcessor[i]<<"\n"
55  << " :: eta_8bit=" << m_NSWeta_8bit[i]<<"\n"
56  << " :: phi_6bit=" << m_NSWphi_6bit[i]<<"\n"
57  << " :: Dtheta_5bit=" << m_NSWDtheta_5bit[i]<<"\n"
58  << " :: lowRes=" << m_NSWlowRes[i] <<"\n"
59  << " :: phiRes=" << m_NSWphiRes[i] <<"\n"
60  << " :: monitor=" << m_NSWmonitor[i] <<"\n"
61  << endmsg;
62  }
63 
64 }
65 
66 
67 } //end of namespace bracket
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
LVL1TGC::NSWTrigOut::NSWTrigOut
NSWTrigOut()=default
NSWTrigOut.h
LVL1TGC::NSWTrigOut::m_NSWeta_8bit
std::vector< uint8_t > m_NSWeta_8bit
Definition: NSWTrigOut.h:20
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
LVL1TGC::NSWTrigOut::operator+=
NSWTrigOut & operator+=(const NSWTrigOut &right)
Definition: NSWTrigOut.cxx:30
TRT::Hit::side
@ side
Definition: HitInfo.h:83
LVL1TGC::NSWTrigOut::m_sideID
int m_sideID
Definition: NSWTrigOut.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::NSWTrigOut::m_NSWlowRes
std::vector< bool > m_NSWlowRes
Definition: NSWTrigOut.h:23
LVL1TGCTrigger::TGCArguments
Definition: TGCArguments.h:12
LVL1TGC::NSWTrigOut::m_NSWphiRes
std::vector< bool > m_NSWphiRes
Definition: NSWTrigOut.h:24
LVL1TGC::NSWTrigOut::m_NSWDtheta_5bit
std::vector< uint8_t > m_NSWDtheta_5bit
Definition: NSWTrigOut.h:22
LVL1TGC::NSWTrigOut::m_NSWphi_6bit
std::vector< uint8_t > m_NSWphi_6bit
Definition: NSWTrigOut.h:21
DEBUG
#define DEBUG
Definition: page_access.h:11
LVL1TGC::NSWTrigOut::m_tgcArgs
LVL1TGCTrigger::TGCArguments * m_tgcArgs
Definition: NSWTrigOut.h:77
LVL1TGC::NSWTrigOut::print
void print() const
Definition: NSWTrigOut.cxx:44
TGCArguments.h
LVL1TGC::NSWTrigOut::m_NSWmonitor
std::vector< bool > m_NSWmonitor
Definition: NSWTrigOut.h:25
LVL1TGC::NSWTrigOut
Definition: NSWTrigOut.h:16
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
LVL1TGC::NSWTrigOut::m_NSWTriggerProcessor
std::vector< int > m_NSWTriggerProcessor
Definition: NSWTrigOut.h:19