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

#include <TGCTimingManager.h>

Collaboration diagram for LVL1TGCTrigger::TGCTimingManager:

Public Member Functions

 TGCTimingManager (const SG::ReadCondHandleKey< TGCTriggerData > &readCondKey)
 
 ~TGCTimingManager ()=default
 
void startPatchPanel (TGCSector *sector, TGCDatabaseManager *db=0)
 
void startSlaveBoard (TGCSector *sector)
 
void startHighPtBoard (TGCSector *sector)
 
void startSectorLogic (TGCSector *sector)
 
void setBunchCounter (int bc)
 
int getBunchCounter ()
 
void increaseBunchCounter ()
 

Private Attributes

int m_bunchCounter
 
const SG::ReadCondHandleKey< TGCTriggerData > & m_readCondKey
 

Detailed Description

Definition at line 16 of file TGCTimingManager.h.

Constructor & Destructor Documentation

◆ TGCTimingManager()

LVL1TGCTrigger::TGCTimingManager::TGCTimingManager ( const SG::ReadCondHandleKey< TGCTriggerData > &  readCondKey)

Definition at line 27 of file TGCTimingManager.cxx.

28  : m_bunchCounter(0),
29  m_readCondKey (readCondKey)
30 {
31 }

◆ ~TGCTimingManager()

LVL1TGCTrigger::TGCTimingManager::~TGCTimingManager ( )
default

Member Function Documentation

◆ getBunchCounter()

int LVL1TGCTrigger::TGCTimingManager::getBunchCounter ( )
inline

Definition at line 28 of file TGCTimingManager.h.

28 { return m_bunchCounter; }

◆ increaseBunchCounter()

void LVL1TGCTrigger::TGCTimingManager::increaseBunchCounter ( )
inline

Definition at line 29 of file TGCTimingManager.h.

29 { m_bunchCounter++;};

◆ setBunchCounter()

void LVL1TGCTrigger::TGCTimingManager::setBunchCounter ( int  bc)
inline

Definition at line 27 of file TGCTimingManager.h.

27 { m_bunchCounter = bc;};

◆ startHighPtBoard()

void LVL1TGCTrigger::TGCTimingManager::startHighPtBoard ( TGCSector sector)

Definition at line 72 of file TGCTimingManager.cxx.

73 {
74  if(sector->hasHit() == false) return;
75 
76  // collect input signals by 1st clockIn,
77  // perform coincidence by 2nd clockIn.
78  for(int iClk=0; iClk<2; iClk+=1) {
79  for(int j=0; j<TGCSector::NumberOfHighPtBoardType; j+=1) {
80  for(unsigned int i=0; i<sector->getNumberOfHPB(j); i+=1) {
81  sector->getHPB(j,i)->clockIn(m_bunchCounter);
82  }
83  }
84  }
85 }

◆ startPatchPanel()

void LVL1TGCTrigger::TGCTimingManager::startPatchPanel ( TGCSector sector,
TGCDatabaseManager db = 0 
)

Definition at line 33 of file TGCTimingManager.cxx.

34 {
35 #ifdef TGCDEBUG
36  std::cout << " Start PatchPanel "
37  << "or sector# " << sector->getSideId() << ":"
38  << sector->getOctantId() << ":"
39  << sector->getModuleId()
40  << std::endl;
41 #endif
42 
43  // start BID by first clockIn, start OrLogic by second clockIn.
44  for( int iClk=0; iClk<2; iClk+=1) {
45  for(int j=0; j<TGCSector::NumberOfPatchPanelType; j+=1) {
46  for (unsigned int i=0; i<sector->getNumberOfPP(j); i+=1) {
47  TGCPatchPanel *pp = sector->getPP(j,i);
48  if(pp) pp->clockIn(m_bunchCounter, db);
49  }
50  }
51  }
52 }

◆ startSectorLogic()

void LVL1TGCTrigger::TGCTimingManager::startSectorLogic ( TGCSector sector)

Definition at line 87 of file TGCTimingManager.cxx.

88 {
89  TGCSectorLogic* sl= sector->getSL();
90 
91  if(sl!=0) sl->clockIn(m_readCondKey, m_bunchCounter, sector->hasHit());
92 }

◆ startSlaveBoard()

void LVL1TGCTrigger::TGCTimingManager::startSlaveBoard ( TGCSector sector)

Definition at line 54 of file TGCTimingManager.cxx.

55 {
56 #ifdef TGCDEBUG
57  std::cout << " Start SlaveBoard "
58  << "for sector# " << sector->getSideId() << ":"
59  << sector->getOctantId() << ":"
60  << sector->getModuleId()
61  << std::endl;
62 #endif
63 
64  for(int j=0; j<NumberOfSlaveBoardType; j+=1){
65  for(unsigned int i=0; i<sector->getNumberOfSB(j); i+=1){
66  TGCSlaveBoard* sb = sector->getSB(j,i);
67  if(sb)sb->clockIn(m_bunchCounter);
68  }
69  }
70 }

Member Data Documentation

◆ m_bunchCounter

int LVL1TGCTrigger::TGCTimingManager::m_bunchCounter
private

Definition at line 32 of file TGCTimingManager.h.

◆ m_readCondKey

const SG::ReadCondHandleKey<TGCTriggerData>& LVL1TGCTrigger::TGCTimingManager::m_readCondKey
private

Definition at line 33 of file TGCTimingManager.h.


The documentation for this class was generated from the following files:
LVL1TGCTrigger::TGCTimingManager::m_readCondKey
const SG::ReadCondHandleKey< TGCTriggerData > & m_readCondKey
Definition: TGCTimingManager.h:33
LVL1TGCTrigger::NumberOfSlaveBoardType
@ NumberOfSlaveBoardType
Definition: TGCNumbering.h:57
CaloCondBlobAlgs_fillNoiseFromASCII.db
db
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:43
LVL1TGCTrigger::TGCTimingManager::m_bunchCounter
int m_bunchCounter
Definition: TGCTimingManager.h:29
lumiFormat.i
int i
Definition: lumiFormat.py:85
keylayer_zslicemap.sb
sb
Definition: keylayer_zslicemap.py:192
LVL1TGCTrigger::TGCSector::NumberOfHighPtBoardType
@ NumberOfHighPtBoardType
Definition: TGCSector.h:34
LVL1TGCTrigger::TGCSector::NumberOfPatchPanelType
@ NumberOfPatchPanelType
Definition: TGCSector.h:37