ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LVL1TGCTrigger::TGCPatchPanelOut Class Reference

#include <TGCPatchPanelOut.h>

Collaboration diagram for LVL1TGCTrigger::TGCPatchPanelOut:

Public Member Functions

 TGCPatchPanelOut ()
 
 ~TGCPatchPanelOut ()
 
 TGCPatchPanelOut (const TGCPatchPanelOut &right)=default
 
TGCPatchPanelOutoperator= (const TGCPatchPanelOut &right)
 
const TGCHitPatterngetHitPattern (int connector) const
 
TGCHitPatterngetHitPattern (int connector)
 
void setHitPattern (int connector, int nCh)
 
const TGCPatchPanelgetOrigin () const
 
void setOrigin (const TGCPatchPanel *pp)
 
int getBid () const
 
void setBid (const int bidIn)
 
void print () const
 
void deleteHitPattern (int i)
 
void clear ()
 

Private Attributes

int m_bid {TgcDigit::BC_UNDEFINED}
 bunch ID number More...
 
const TGCPatchPanelm_origin {nullptr}
 pointer to Patch Panel generate this PatchPanelOut More...
 
TGCHitPatternm_signalPattern [NumberOfConnectorPerPPOut]
 

Detailed Description

Definition at line 17 of file TGCPatchPanelOut.h.

Constructor & Destructor Documentation

◆ TGCPatchPanelOut() [1/2]

LVL1TGCTrigger::TGCPatchPanelOut::TGCPatchPanelOut ( )

Definition at line 13 of file TGCPatchPanelOut.cxx.

14 {
15  for(int i=0; i<NumberOfConnectorPerPPOut; i+=1){
16  m_signalPattern[i] = 0;
17  }
18 }

◆ ~TGCPatchPanelOut()

LVL1TGCTrigger::TGCPatchPanelOut::~TGCPatchPanelOut ( )

Definition at line 19 of file TGCPatchPanelOut.cxx.

20 {
21  for(int i=0; i<NumberOfConnectorPerPPOut; i+=1){
22  if (m_signalPattern[i]!=0) delete m_signalPattern[i];
23  }
24 }

◆ TGCPatchPanelOut() [2/2]

LVL1TGCTrigger::TGCPatchPanelOut::TGCPatchPanelOut ( const TGCPatchPanelOut right)
default

Member Function Documentation

◆ clear()

void LVL1TGCTrigger::TGCPatchPanelOut::clear ( )

◆ deleteHitPattern()

void LVL1TGCTrigger::TGCPatchPanelOut::deleteHitPattern ( int  i)

Definition at line 40 of file TGCPatchPanelOut.cxx.

41 {
42  if(m_signalPattern[i]!=0) delete m_signalPattern[i];
43  m_signalPattern[i]=0;
44 }

◆ getBid()

int LVL1TGCTrigger::TGCPatchPanelOut::getBid ( ) const
inline

Definition at line 77 of file TGCPatchPanelOut.h.

78 {
79  return m_bid;
80 }

◆ getHitPattern() [1/2]

TGCHitPattern * LVL1TGCTrigger::TGCPatchPanelOut::getHitPattern ( int  connector)
inline

Definition at line 52 of file TGCPatchPanelOut.h.

53 {
54  return m_signalPattern[connector];
55 }

◆ getHitPattern() [2/2]

const TGCHitPattern * LVL1TGCTrigger::TGCPatchPanelOut::getHitPattern ( int  connector) const
inline

Definition at line 46 of file TGCPatchPanelOut.h.

47 {
48  return m_signalPattern[connector];
49 }

◆ getOrigin()

const TGCPatchPanel * LVL1TGCTrigger::TGCPatchPanelOut::getOrigin ( ) const
inline

Definition at line 58 of file TGCPatchPanelOut.h.

59 {
60  return m_origin;
61 }

◆ operator=()

TGCPatchPanelOut & LVL1TGCTrigger::TGCPatchPanelOut::operator= ( const TGCPatchPanelOut right)

Definition at line 26 of file TGCPatchPanelOut.cxx.

27 {
28  if (this != &right) {
29  m_bid = right.m_bid;
30  m_origin = right.m_origin;
31 
32  for(int i=0; i<NumberOfConnectorPerPPOut; i+=1){
33  if (m_signalPattern[i]!=0) delete m_signalPattern[i];
34  m_signalPattern[i] = new TGCHitPattern ( *(right.m_signalPattern[i]) );
35  }
36  }
37  return *this;
38 }

◆ print()

void LVL1TGCTrigger::TGCPatchPanelOut::print ( ) const

Definition at line 46 of file TGCPatchPanelOut.cxx.

47 {
48 #ifdef TGCCOUT
49  std::cout <<"PatchPanelOut: bid= "<<m_bid<<" PPID= "<<m_origin->getId()
50  <<" PPType= "<<m_origin->getType()<<" PPRegion= "<<m_origin->getRegion()<<std::endl;
51 #endif
52  int i;
53  for( i=0; i<NumberOfConnectorPerPPOut; i++){
54  if(m_signalPattern[i]!=0){
55 #ifdef TGCCOUT
56  std::cout << "Connector"<<i<<std::endl;
57 #endif
59  }
60  }
61 }

◆ setBid()

void LVL1TGCTrigger::TGCPatchPanelOut::setBid ( const int  bidIn)
inline

Definition at line 64 of file TGCPatchPanelOut.h.

65 {
66  m_bid = bidIn;
67 }

◆ setHitPattern()

void LVL1TGCTrigger::TGCPatchPanelOut::setHitPattern ( int  connector,
int  nCh 
)
inline

Definition at line 70 of file TGCPatchPanelOut.h.

71 {
72  if(m_signalPattern[connector]!=0) delete m_signalPattern[connector];
73  m_signalPattern[connector] = new TGCHitPattern(nCh);
74 }

◆ setOrigin()

void LVL1TGCTrigger::TGCPatchPanelOut::setOrigin ( const TGCPatchPanel pp)
inline

Definition at line 83 of file TGCPatchPanelOut.h.

84 {
85  m_origin = pp;
86 }

Member Data Documentation

◆ m_bid

int LVL1TGCTrigger::TGCPatchPanelOut::m_bid {TgcDigit::BC_UNDEFINED}
private

bunch ID number

Definition at line 39 of file TGCPatchPanelOut.h.

◆ m_origin

const TGCPatchPanel* LVL1TGCTrigger::TGCPatchPanelOut::m_origin {nullptr}
private

pointer to Patch Panel generate this PatchPanelOut

Definition at line 40 of file TGCPatchPanelOut.h.

◆ m_signalPattern

TGCHitPattern* LVL1TGCTrigger::TGCPatchPanelOut::m_signalPattern[NumberOfConnectorPerPPOut]
private

Definition at line 41 of file TGCPatchPanelOut.h.


The documentation for this class was generated from the following files:
LVL1TGCTrigger::TGCPatchPanel::getId
int getId() const
Definition: TGCPatchPanel.cxx:399
LVL1TGCTrigger::TGCHitPattern::print
void print(int unit) const
Definition: TGCHitPattern.cxx:111
LVL1TGCTrigger::TGCPatchPanelOut::m_origin
const TGCPatchPanel * m_origin
pointer to Patch Panel generate this PatchPanelOut
Definition: TGCPatchPanelOut.h:40
lumiFormat.i
int i
Definition: lumiFormat.py:85
LVL1TGCTrigger::NumberOfConnectorPerPPOut
const int NumberOfConnectorPerPPOut
Definition: TGCPatchPanelOut.h:13
LVL1TGCTrigger::TGCPatchPanelOut::m_signalPattern
TGCHitPattern * m_signalPattern[NumberOfConnectorPerPPOut]
Definition: TGCPatchPanelOut.h:41
LVL1TGCTrigger::TGCPatchPanel::getType
int getType() const
Definition: TGCPatchPanel.h:64
LVL1TGCTrigger::TGCPatchPanelOut::m_bid
int m_bid
bunch ID number
Definition: TGCPatchPanelOut.h:39
LVL1TGCTrigger::TGCPatchPanel::getRegion
TGCRegionType getRegion() const
Definition: TGCPatchPanel.h:66