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

Class for simulating the internal bunch group trigger. More...

#include <SpecialTrigger.h>

Inheritance diagram for LVL1CTP::BunchGroupTrigger:
Collaboration diagram for LVL1CTP::BunchGroupTrigger:

Public Member Functions

 BunchGroupTrigger ()=delete
 
 BunchGroupTrigger (size_t bgrpNr, const std::vector< unsigned int > &bunches, const CTPdataformatVersion *ctpFormat)
 
virtual ~BunchGroupTrigger ()
 
std::string name () const
 get name of internal trigger More...
 
size_t pitPos () const
 get signal position on PIT bus More...
 

Private Attributes

std::vector< unsigned int > m_bunches
 list of bunch IDs More...
 
size_t m_bgrpNr
 nr of the bunchgroup 0..15 More...
 
size_t m_pitPos
 global bit in the TIP vector More...
 

Detailed Description

Class for simulating the internal bunch group trigger.

Definition at line 48 of file SpecialTrigger.h.

Constructor & Destructor Documentation

◆ BunchGroupTrigger() [1/2]

LVL1CTP::BunchGroupTrigger::BunchGroupTrigger ( )
delete

◆ BunchGroupTrigger() [2/2]

LVL1CTP::BunchGroupTrigger::BunchGroupTrigger ( size_t  bgrpNr,
const std::vector< unsigned int > &  bunches,
const CTPdataformatVersion *  ctpFormat 
)

Definition at line 14 of file SpecialTrigger.cxx.

16  :
17  m_bunches(bunches),
18  m_bgrpNr(bgrpNr),
19  m_pitPos(ctpFormat->getMaxTIPtotal() + ctpFormat->getBunchGroupShift() + bgrpNr)
20 {}

◆ ~BunchGroupTrigger()

virtual LVL1CTP::BunchGroupTrigger::~BunchGroupTrigger ( )
inlinevirtual

Definition at line 54 of file SpecialTrigger.h.

54 {}

Member Function Documentation

◆ name()

std::string LVL1CTP::BunchGroupTrigger::name ( ) const
inlinevirtual

get name of internal trigger

Implements LVL1CTP::ISpecialTrigger.

Definition at line 55 of file SpecialTrigger.h.

56  { return "BGRP" + std::to_string(m_bgrpNr); }

◆ pitPos()

size_t LVL1CTP::BunchGroupTrigger::pitPos ( ) const
inlinevirtual

get signal position on PIT bus

Implements LVL1CTP::ISpecialTrigger.

Definition at line 57 of file SpecialTrigger.h.

58  {return m_pitPos; }

Member Data Documentation

◆ m_bgrpNr

size_t LVL1CTP::BunchGroupTrigger::m_bgrpNr
private

nr of the bunchgroup 0..15

Definition at line 61 of file SpecialTrigger.h.

◆ m_bunches

std::vector<unsigned int> LVL1CTP::BunchGroupTrigger::m_bunches
private

list of bunch IDs

Definition at line 60 of file SpecialTrigger.h.

◆ m_pitPos

size_t LVL1CTP::BunchGroupTrigger::m_pitPos
private

global bit in the TIP vector

Definition at line 62 of file SpecialTrigger.h.


The documentation for this class was generated from the following files:
LVL1CTP::BunchGroupTrigger::m_pitPos
size_t m_pitPos
global bit in the TIP vector
Definition: SpecialTrigger.h:62
LVL1CTP::BunchGroupTrigger::m_bunches
std::vector< unsigned int > m_bunches
list of bunch IDs
Definition: SpecialTrigger.h:60
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
LVL1CTP::BunchGroupTrigger::m_bgrpNr
size_t m_bgrpNr
nr of the bunchgroup 0..15
Definition: SpecialTrigger.h:61