ATLAS Offline Software
Public Member Functions | Protected Attributes | Private Attributes | List of all members
LVL1TGC::NSWTrigOut Class Reference

#include <NSWTrigOut.h>

Collaboration diagram for LVL1TGC::NSWTrigOut:

Public Member Functions

 NSWTrigOut ()=default
 
 NSWTrigOut (int side, const std::vector< int > &NSWTrigger, const std::vector< uint8_t > &NSWeta, const std::vector< uint8_t > &NSWphi, const std::vector< uint8_t > &NSWDtheta, const std::vector< bool > &NSWlowRes, const std::vector< bool > &NSWphiRes, const std::vector< bool > &NSWmonitor, LVL1TGCTrigger::TGCArguments *tgcargs=nullptr)
 
 NSWTrigOut (int side, const std::vector< int > &NSWTrigger, LVL1TGCTrigger::TGCArguments *tgcargs=nullptr)
 
NSWTrigOutoperator+= (const NSWTrigOut &right)
 
bool operator== (const NSWTrigOut &right) const
 
bool operator!= (const NSWTrigOut &right) const
 
void setSide (int side)
 
void setNSWTriggerProcessor (int NSWTP)
 
void setEta (uint8_t NSWeta)
 
void setPhi (uint8_t NSWphi)
 
void setDtheta (uint8_t NSWDtheta)
 
void setLowRes (bool NSWlowRes)
 
void setPhiRes (bool NSWphiRes)
 
void setMonitor (bool NSWmonitor)
 
void clear ()
 
int getSide () const
 
const std::vector< int > & getNSWTriggerProcessor () const
 
const std::vector< uint8_t > & getNSWeta () const
 
const std::vector< uint8_t > & getNSWphi () const
 
const std::vector< uint8_t > & getNSWDtheta () const
 
const std::vector< bool > & getNSWlowRes () const
 
const std::vector< bool > & getNSWphiRes () const
 
const std::vector< bool > & getNSWmonitor () const
 
void print () const
 

Protected Attributes

int m_sideID {-1}
 
std::vector< int > m_NSWTriggerProcessor
 
std::vector< uint8_t > m_NSWeta_8bit
 
std::vector< uint8_t > m_NSWphi_6bit
 
std::vector< uint8_t > m_NSWDtheta_5bit
 
std::vector< bool > m_NSWlowRes
 
std::vector< bool > m_NSWphiRes
 
std::vector< bool > m_NSWmonitor
 

Private Attributes

LVL1TGCTrigger::TGCArgumentsm_tgcArgs {nullptr}
 

Detailed Description

Definition at line 16 of file NSWTrigOut.h.

Constructor & Destructor Documentation

◆ NSWTrigOut() [1/3]

LVL1TGC::NSWTrigOut::NSWTrigOut ( )
default

◆ NSWTrigOut() [2/3]

LVL1TGC::NSWTrigOut::NSWTrigOut ( int  side,
const std::vector< int > &  NSWTrigger,
const std::vector< uint8_t > &  NSWeta,
const std::vector< uint8_t > &  NSWphi,
const std::vector< uint8_t > &  NSWDtheta,
const std::vector< bool > &  NSWlowRes,
const std::vector< bool > &  NSWphiRes,
const std::vector< bool > &  NSWmonitor,
LVL1TGCTrigger::TGCArguments tgcargs = nullptr 
)

Definition at line 11 of file NSWTrigOut.cxx.

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 }

◆ NSWTrigOut() [3/3]

LVL1TGC::NSWTrigOut::NSWTrigOut ( int  side,
const std::vector< int > &  NSWTrigger,
LVL1TGCTrigger::TGCArguments tgcargs = nullptr 
)

Definition at line 24 of file NSWTrigOut.cxx.

25  : m_sideID(side), m_NSWTriggerProcessor(NSWTP), m_tgcArgs(tgcargs)
26 {
27 }

Member Function Documentation

◆ clear()

void LVL1TGC::NSWTrigOut::clear ( )
inline

Definition at line 61 of file NSWTrigOut.h.

61 { m_sideID=-1;m_NSWTriggerProcessor.clear(); m_NSWeta_8bit.clear(); m_NSWphi_6bit.clear(); m_NSWDtheta_5bit.clear(); m_NSWlowRes.clear(); m_NSWphiRes.clear(); m_NSWmonitor.clear();}

◆ getNSWDtheta()

const std::vector<uint8_t>& LVL1TGC::NSWTrigOut::getNSWDtheta ( ) const
inline

Definition at line 68 of file NSWTrigOut.h.

68 {return m_NSWDtheta_5bit; }

◆ getNSWeta()

const std::vector<uint8_t>& LVL1TGC::NSWTrigOut::getNSWeta ( ) const
inline

Definition at line 66 of file NSWTrigOut.h.

66 {return m_NSWeta_8bit; }

◆ getNSWlowRes()

const std::vector<bool>& LVL1TGC::NSWTrigOut::getNSWlowRes ( ) const
inline

Definition at line 69 of file NSWTrigOut.h.

69 {return m_NSWlowRes; }

◆ getNSWmonitor()

const std::vector<bool>& LVL1TGC::NSWTrigOut::getNSWmonitor ( ) const
inline

Definition at line 71 of file NSWTrigOut.h.

71 {return m_NSWmonitor; }

◆ getNSWphi()

const std::vector<uint8_t>& LVL1TGC::NSWTrigOut::getNSWphi ( ) const
inline

Definition at line 67 of file NSWTrigOut.h.

67 {return m_NSWphi_6bit; }

◆ getNSWphiRes()

const std::vector<bool>& LVL1TGC::NSWTrigOut::getNSWphiRes ( ) const
inline

Definition at line 70 of file NSWTrigOut.h.

70 {return m_NSWphiRes; }

◆ getNSWTriggerProcessor()

const std::vector<int>& LVL1TGC::NSWTrigOut::getNSWTriggerProcessor ( ) const
inline

Definition at line 65 of file NSWTrigOut.h.

65 {return m_NSWTriggerProcessor; }

◆ getSide()

int LVL1TGC::NSWTrigOut::getSide ( ) const
inline

Definition at line 64 of file NSWTrigOut.h.

64 { return m_sideID; }

◆ operator!=()

bool LVL1TGC::NSWTrigOut::operator!= ( const NSWTrigOut right) const
inline

Definition at line 46 of file NSWTrigOut.h.

47  {
48  return (this!=&right);
49  }

◆ operator+=()

NSWTrigOut & LVL1TGC::NSWTrigOut::operator+= ( const NSWTrigOut right)

Definition at line 30 of file NSWTrigOut.cxx.

31 {
32  if (this != &right && (m_sideID==right.m_sideID || m_sideID==-1)) {
33  m_NSWTriggerProcessor.insert(m_NSWTriggerProcessor.end(), right.m_NSWTriggerProcessor.begin(), right.m_NSWTriggerProcessor.end());
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 }

◆ operator==()

bool LVL1TGC::NSWTrigOut::operator== ( const NSWTrigOut right) const
inline

Definition at line 41 of file NSWTrigOut.h.

42  {
43  return (this==&right);
44  }

◆ print()

void LVL1TGC::NSWTrigOut::print ( ) const

Definition at line 44 of file NSWTrigOut.cxx.

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 }

◆ setDtheta()

void LVL1TGC::NSWTrigOut::setDtheta ( uint8_t  NSWDtheta)
inline

Definition at line 57 of file NSWTrigOut.h.

57 { m_NSWDtheta_5bit.push_back(NSWDtheta); }

◆ setEta()

void LVL1TGC::NSWTrigOut::setEta ( uint8_t  NSWeta)
inline

Definition at line 55 of file NSWTrigOut.h.

55 { m_NSWeta_8bit.push_back(NSWeta); }

◆ setLowRes()

void LVL1TGC::NSWTrigOut::setLowRes ( bool  NSWlowRes)
inline

Definition at line 58 of file NSWTrigOut.h.

58 { m_NSWlowRes.push_back(NSWlowRes); }

◆ setMonitor()

void LVL1TGC::NSWTrigOut::setMonitor ( bool  NSWmonitor)
inline

Definition at line 60 of file NSWTrigOut.h.

60 { m_NSWmonitor.push_back(NSWmonitor); }

◆ setNSWTriggerProcessor()

void LVL1TGC::NSWTrigOut::setNSWTriggerProcessor ( int  NSWTP)
inline

Definition at line 54 of file NSWTrigOut.h.

54 { m_NSWTriggerProcessor.push_back(NSWTP); }

◆ setPhi()

void LVL1TGC::NSWTrigOut::setPhi ( uint8_t  NSWphi)
inline

Definition at line 56 of file NSWTrigOut.h.

56 { m_NSWphi_6bit.push_back(NSWphi); }

◆ setPhiRes()

void LVL1TGC::NSWTrigOut::setPhiRes ( bool  NSWphiRes)
inline

Definition at line 59 of file NSWTrigOut.h.

59 { m_NSWphiRes.push_back(NSWphiRes); }

◆ setSide()

void LVL1TGC::NSWTrigOut::setSide ( int  side)
inline

Definition at line 53 of file NSWTrigOut.h.

53 { m_sideID = side; }

Member Data Documentation

◆ m_NSWDtheta_5bit

std::vector<uint8_t> LVL1TGC::NSWTrigOut::m_NSWDtheta_5bit
protected

Definition at line 22 of file NSWTrigOut.h.

◆ m_NSWeta_8bit

std::vector<uint8_t> LVL1TGC::NSWTrigOut::m_NSWeta_8bit
protected

Definition at line 20 of file NSWTrigOut.h.

◆ m_NSWlowRes

std::vector<bool> LVL1TGC::NSWTrigOut::m_NSWlowRes
protected

Definition at line 23 of file NSWTrigOut.h.

◆ m_NSWmonitor

std::vector<bool> LVL1TGC::NSWTrigOut::m_NSWmonitor
protected

Definition at line 25 of file NSWTrigOut.h.

◆ m_NSWphi_6bit

std::vector<uint8_t> LVL1TGC::NSWTrigOut::m_NSWphi_6bit
protected

Definition at line 21 of file NSWTrigOut.h.

◆ m_NSWphiRes

std::vector<bool> LVL1TGC::NSWTrigOut::m_NSWphiRes
protected

Definition at line 24 of file NSWTrigOut.h.

◆ m_NSWTriggerProcessor

std::vector<int> LVL1TGC::NSWTrigOut::m_NSWTriggerProcessor
protected

Definition at line 19 of file NSWTrigOut.h.

◆ m_sideID

int LVL1TGC::NSWTrigOut::m_sideID {-1}
protected

Definition at line 18 of file NSWTrigOut.h.

◆ m_tgcArgs

LVL1TGCTrigger::TGCArguments* LVL1TGC::NSWTrigOut::m_tgcArgs {nullptr}
private

Definition at line 77 of file NSWTrigOut.h.


The documentation for this class was generated from the following files:
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
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
LVL1TGCTrigger::TGCArguments::MSGLEVEL
MSG::Level MSGLEVEL() const
Definition: TGCArguments.cxx:40
LVL1TGC::NSWTrigOut::m_NSWlowRes
std::vector< bool > m_NSWlowRes
Definition: NSWTrigOut.h:23
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::m_NSWmonitor
std::vector< bool > m_NSWmonitor
Definition: NSWTrigOut.h:25
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
LVL1TGC::NSWTrigOut::m_NSWTriggerProcessor
std::vector< int > m_NSWTriggerProcessor
Definition: NSWTrigOut.h:19