ATLAS Offline Software
Trigger
TrigT1
TrigT1TGC
TrigT1TGC
TGCEvent.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TGC_EVENT_H
6
#define TGC_EVENT_H
7
8
#include <vector>
9
#include "
TrigT1TGC/TGCReadoutIndex.h
"
10
11
namespace
LVL1TGCTrigger
{
12
13
class
TGCASDOut;
14
15
class
TGCEvent
{
16
protected
:
17
int
m_eventNumber
{0};
18
std::vector<TGCASDOut*>
m_vecASDOut
;
19
20
public
:
21
TGCEvent
() =
default
;
22
~TGCEvent
() =
default
;
23
24
TGCEvent
(
const
TGCEvent
& right)
25
{
26
*
this
= right;
27
}
28
29
const
TGCEvent
&
operator=
(
const
TGCEvent
& right)
30
{
31
m_eventNumber
= right.
m_eventNumber
;
32
m_vecASDOut
= right.
m_vecASDOut
;
33
34
return
*
this
;
35
}
36
37
// set functions
38
void
SetEventNumber
(
int
num
) {
m_eventNumber
=
num
; }
39
40
TGCASDOut
*
NewASDOut
(
const
TGCReadoutIndex
& tgcindex,
41
TGCSignalType
sigtype=
WIRE
,
int
id
=-1,
42
double
tof=0);
43
44
// get functions
45
int
GetEventNumber
()
const
{
return
m_eventNumber
; }
46
47
// ASDOut ...
48
int
GetNASDOut
()
const
{
return
m_vecASDOut
.size(); }
49
50
const
TGCASDOut
*
GetASDOut
(
int
index
)
const
51
{
52
if
(
index
<=0 || (
unsigned
int
)
index
>
m_vecASDOut
.size())
return
0;
53
else
return
m_vecASDOut
[
index
-1];
54
}
55
56
const
std::vector<TGCASDOut*>&
GetASDOutVector
()
const
57
{
58
return
(std::vector<TGCASDOut*>&)
m_vecASDOut
;
59
}
60
61
// operations
62
void
Clear
();
// clear event
63
void
Print
()
const
;
// print out event information
64
};
65
66
67
}
//end of namespace bracket
68
69
#endif
LVL1TGCTrigger::TGCEvent::GetASDOutVector
const std::vector< TGCASDOut * > & GetASDOutVector() const
Definition:
TGCEvent.h:56
index
Definition:
index.py:1
LVL1TGCTrigger::TGCEvent::TGCEvent
TGCEvent()=default
LVL1TGCTrigger::TGCEvent::NewASDOut
TGCASDOut * NewASDOut(const TGCReadoutIndex &tgcindex, TGCSignalType sigtype=WIRE, int id=-1, double tof=0)
Definition:
TGCEvent.cxx:12
LVL1TGCTrigger::TGCEvent::GetASDOut
const TGCASDOut * GetASDOut(int index) const
Definition:
TGCEvent.h:50
LVL1TGCTrigger::TGCEvent::SetEventNumber
void SetEventNumber(int num)
Definition:
TGCEvent.h:38
LVL1TGCTrigger::TGCEvent::TGCEvent
TGCEvent(const TGCEvent &right)
Definition:
TGCEvent.h:24
LVL1TGCTrigger::TGCEvent::m_vecASDOut
std::vector< TGCASDOut * > m_vecASDOut
Definition:
TGCEvent.h:18
LVL1TGCTrigger::TGCEvent::m_eventNumber
int m_eventNumber
Definition:
TGCEvent.h:17
LVL1TGCTrigger::TGCEvent::GetNASDOut
int GetNASDOut() const
Definition:
TGCEvent.h:48
LVL1TGCTrigger::TGCASDOut
Definition:
TGCASDOut.h:12
LVL1TGCTrigger::WIRE
@ WIRE
Definition:
TGCNumbering.h:52
TGCReadoutIndex.h
LVL1TGCTrigger::TGCEvent
Definition:
TGCEvent.h:15
LVL1TGCTrigger::TGCEvent::operator=
const TGCEvent & operator=(const TGCEvent &right)
Definition:
TGCEvent.h:29
LVL1TGCTrigger
Definition:
LVL1TGCTrigger.cxx:47
trigbs_pickEvents.num
num
Definition:
trigbs_pickEvents.py:76
LVL1TGCTrigger::TGCEvent::Clear
void Clear()
Definition:
TGCEvent.cxx:21
LVL1TGCTrigger::TGCSignalType
TGCSignalType
Definition:
TGCNumbering.h:51
LVL1TGCTrigger::TGCReadoutIndex
Definition:
TGCReadoutIndex.h:13
LVL1TGCTrigger::TGCEvent::~TGCEvent
~TGCEvent()=default
LVL1TGCTrigger::TGCEvent::Print
void Print() const
Definition:
TGCEvent.cxx:31
LVL1TGCTrigger::TGCEvent::GetEventNumber
int GetEventNumber() const
Definition:
TGCEvent.h:45
Generated on Sun Dec 22 2024 21:19:24 for ATLAS Offline Software by
1.8.18