ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
EFTracking
FPGATrackSim
FPGATrackSimObjects
FPGATrackSimObjects
FPGATrackSimMatchInfo.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRIGFPGATrackSimOBJECTS_FPGATrackSimMATCHINFO_H
6
#define TRIGFPGATrackSimOBJECTS_FPGATrackSimMATCHINFO_H
7
8
#include <TObject.h>
9
10
class
FPGATrackSimMatchInfo
{
11
public
:
12
FPGATrackSimMatchInfo
() :
m_barcode
(0),
m_evtindex
(-1) { ; }
13
FPGATrackSimMatchInfo
(
int
v1,
int
v2) :
m_barcode
(v1),
m_evtindex
(v2) { ; }
14
15
unsigned
long
barcode
()
const
{
return
m_barcode
; }
16
int
evtindex
()
const
{
return
m_evtindex
; }
17
18
bool
operator==
(
const
FPGATrackSimMatchInfo
& o)
const
{
return
(
m_barcode
== o.
m_barcode
) && (
m_evtindex
== o.
m_evtindex
); }
19
bool
operator<
(
const
FPGATrackSimMatchInfo
& o)
const
{
if
(
m_evtindex
!= o.
m_evtindex
)
return
(
m_evtindex
< o.
m_evtindex
);
else
return
m_barcode
< o.
m_barcode
; }
20
21
22
private
:
23
unsigned
long
m_barcode
;
24
int
m_evtindex
;
25
26
27
ClassDefNV(
FPGATrackSimMatchInfo
, 2)
28
};
29
30
std::ostream&
operator<<
(std::ostream&,
const
FPGATrackSimMatchInfo
&);
31
#endif
// TRIGFPGATrackSimOBJECTS_FPGATrackSimMATCHINFO_H
operator<<
std::ostream & operator<<(std::ostream &, const FPGATrackSimMatchInfo &)
Definition
FPGATrackSimMatchInfo.cxx:9
FPGATrackSimMatchInfo
Definition
FPGATrackSimMatchInfo.h:10
FPGATrackSimMatchInfo::m_barcode
unsigned long m_barcode
Definition
FPGATrackSimMatchInfo.h:23
FPGATrackSimMatchInfo::operator==
bool operator==(const FPGATrackSimMatchInfo &o) const
Definition
FPGATrackSimMatchInfo.h:18
FPGATrackSimMatchInfo::barcode
unsigned long barcode() const
Definition
FPGATrackSimMatchInfo.h:15
FPGATrackSimMatchInfo::FPGATrackSimMatchInfo
FPGATrackSimMatchInfo(int v1, int v2)
Definition
FPGATrackSimMatchInfo.h:13
FPGATrackSimMatchInfo::evtindex
int evtindex() const
Definition
FPGATrackSimMatchInfo.h:16
FPGATrackSimMatchInfo::operator<
bool operator<(const FPGATrackSimMatchInfo &o) const
Definition
FPGATrackSimMatchInfo.h:19
FPGATrackSimMatchInfo::FPGATrackSimMatchInfo
FPGATrackSimMatchInfo()
Definition
FPGATrackSimMatchInfo.h:12
FPGATrackSimMatchInfo::m_evtindex
int m_evtindex
Definition
FPGATrackSimMatchInfo.h:24
Generated on
for ATLAS Offline Software by
1.17.0