ATLAS Offline Software
Loading...
Searching...
No Matches
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
11public:
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
22private:
23 unsigned long m_barcode;
25
26
27 ClassDefNV(FPGATrackSimMatchInfo, 2)
28};
29
30std::ostream& operator<<(std::ostream&, const FPGATrackSimMatchInfo&);
31#endif // TRIGFPGATrackSimOBJECTS_FPGATrackSimMATCHINFO_H
std::ostream & operator<<(std::ostream &, const FPGATrackSimMatchInfo &)
bool operator==(const FPGATrackSimMatchInfo &o) const
unsigned long barcode() const
FPGATrackSimMatchInfo(int v1, int v2)
bool operator<(const FPGATrackSimMatchInfo &o) const