ATLAS Offline Software
Loading...
Searching...
No Matches
TGCEvent.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TGC_EVENT_H
6#define TGC_EVENT_H
7
8#include <vector>
10
11namespace LVL1TGCTrigger {
12
13class TGCASDOut;
14
15class TGCEvent {
16 protected:
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 {
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 || index> std::ssize(m_vecASDOut) ) return 0;
53 else return m_vecASDOut[index-1];
54 }
55
56 const std::vector<TGCASDOut*>& GetASDOutVector() const
57 {
58 return 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
const TGCEvent & operator=(const TGCEvent &right)
Definition TGCEvent.h:29
std::vector< TGCASDOut * > m_vecASDOut
Definition TGCEvent.h:18
const TGCASDOut * GetASDOut(int index) const
Definition TGCEvent.h:50
TGCEvent(const TGCEvent &right)
Definition TGCEvent.h:24
TGCASDOut * NewASDOut(const TGCReadoutIndex &tgcindex, TGCSignalType sigtype=WIRE, int id=-1, double tof=0)
Definition TGCEvent.cxx:12
int GetNASDOut() const
Definition TGCEvent.h:48
const std::vector< TGCASDOut * > & GetASDOutVector() const
Definition TGCEvent.h:56
int GetEventNumber() const
Definition TGCEvent.h:45
void SetEventNumber(int num)
Definition TGCEvent.h:38
Definition index.py:1