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

#include <TGCEvent.h>

Collaboration diagram for LVL1TGCTrigger::TGCEvent:

Public Member Functions

 TGCEvent ()=default
 
 ~TGCEvent ()=default
 
 TGCEvent (const TGCEvent &right)
 
const TGCEventoperator= (const TGCEvent &right)
 
void SetEventNumber (int num)
 
TGCASDOutNewASDOut (const TGCReadoutIndex &tgcindex, TGCSignalType sigtype=WIRE, int id=-1, double tof=0)
 
int GetEventNumber () const
 
int GetNASDOut () const
 
const TGCASDOutGetASDOut (int index) const
 
const std::vector< TGCASDOut * > & GetASDOutVector () const
 
void Clear ()
 
void Print () const
 

Protected Attributes

int m_eventNumber {0}
 
std::vector< TGCASDOut * > m_vecASDOut
 

Detailed Description

Definition at line 15 of file TGCEvent.h.

Constructor & Destructor Documentation

◆ TGCEvent() [1/2]

LVL1TGCTrigger::TGCEvent::TGCEvent ( )
default

◆ ~TGCEvent()

LVL1TGCTrigger::TGCEvent::~TGCEvent ( )
default

◆ TGCEvent() [2/2]

LVL1TGCTrigger::TGCEvent::TGCEvent ( const TGCEvent right)
inline

Definition at line 24 of file TGCEvent.h.

25  {
26  *this= right;
27  }

Member Function Documentation

◆ Clear()

void LVL1TGCTrigger::TGCEvent::Clear ( )

Definition at line 21 of file TGCEvent.cxx.

22 {
23  // delete ASDOut
24  for (const TGCASDOut* p : m_vecASDOut) {
25  delete p;
26  }
27  m_vecASDOut.clear();
28 }

◆ GetASDOut()

const TGCASDOut* LVL1TGCTrigger::TGCEvent::GetASDOut ( int  index) const
inline

Definition at line 50 of file TGCEvent.h.

51  {
52  if(index<=0 || (unsigned int)index> m_vecASDOut.size()) return 0;
53  else return m_vecASDOut[index-1];
54  }

◆ GetASDOutVector()

const std::vector<TGCASDOut*>& LVL1TGCTrigger::TGCEvent::GetASDOutVector ( ) const
inline

Definition at line 56 of file TGCEvent.h.

57  {
58  return (std::vector<TGCASDOut*>&)m_vecASDOut;
59  }

◆ GetEventNumber()

int LVL1TGCTrigger::TGCEvent::GetEventNumber ( ) const
inline

Definition at line 45 of file TGCEvent.h.

45 { return m_eventNumber; }

◆ GetNASDOut()

int LVL1TGCTrigger::TGCEvent::GetNASDOut ( ) const
inline

Definition at line 48 of file TGCEvent.h.

48 { return m_vecASDOut.size(); }

◆ NewASDOut()

TGCASDOut * LVL1TGCTrigger::TGCEvent::NewASDOut ( const TGCReadoutIndex tgcindex,
TGCSignalType  sigtype = WIRE,
int  id = -1,
double  tof = 0 
)

Definition at line 12 of file TGCEvent.cxx.

14 {
15  TGCASDOut* asdout= new TGCASDOut(tgcrindex, sigtype, id, tof);
16  m_vecASDOut.push_back(asdout);
17  return asdout;
18 }

◆ operator=()

const TGCEvent& LVL1TGCTrigger::TGCEvent::operator= ( const TGCEvent right)
inline

Definition at line 29 of file TGCEvent.h.

30  {
31  m_eventNumber= right.m_eventNumber;
32  m_vecASDOut= right.m_vecASDOut;
33 
34  return *this;
35  }

◆ Print()

void LVL1TGCTrigger::TGCEvent::Print ( ) const

Definition at line 31 of file TGCEvent.cxx.

32 {
33  std::cout << " Event#= " << m_eventNumber << std::endl;
34 }

◆ SetEventNumber()

void LVL1TGCTrigger::TGCEvent::SetEventNumber ( int  num)
inline

Definition at line 38 of file TGCEvent.h.

38 { m_eventNumber= num; }

Member Data Documentation

◆ m_eventNumber

int LVL1TGCTrigger::TGCEvent::m_eventNumber {0}
protected

Definition at line 17 of file TGCEvent.h.

◆ m_vecASDOut

std::vector<TGCASDOut*> LVL1TGCTrigger::TGCEvent::m_vecASDOut
protected

Definition at line 18 of file TGCEvent.h.


The documentation for this class was generated from the following files:
index
Definition: index.py:1
LVL1TGCTrigger::TGCEvent::m_vecASDOut
std::vector< TGCASDOut * > m_vecASDOut
Definition: TGCEvent.h:18
LVL1TGCTrigger::TGCEvent::m_eventNumber
int m_eventNumber
Definition: TGCEvent.h:17
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
trigbs_pickEvents.num
num
Definition: trigbs_pickEvents.py:76