Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
FPGATrackSimLogicalEventOutputHeader.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 #ifndef TRIGFPGATrackSimOBJECTS_FPGATrackSimLOGICALEVENTOUTPUTHEADER_H
4 #define TRIGFPGATrackSimOBJECTS_FPGATrackSimLOGICALEVENTOUTPUTHEADER_H
5 
10 #include <TObject.h>
11 
13 public:
14 
17 
18  void reset(); //reset per event variables
19 
20  // First Stage FPGATrackSim Roads
21  void getFPGATrackSimRoads_1st(std::vector<std::shared_ptr<const FPGATrackSimRoad>> & roads_1st) { roads_1st.reserve(m_FPGATrackSimRoads_1st.size()); for ( auto& r : m_FPGATrackSimRoads_1st) roads_1st.emplace_back(std::make_shared<const FPGATrackSimRoad>(r)); }
22  const std::vector<FPGATrackSimRoad>& getFPGATrackSimRoads_1st() const { return m_FPGATrackSimRoads_1st; }
23  size_t nFPGATrackSimRoads_1st() const { return m_FPGATrackSimRoads_1st.size(); }
25  void addFPGATrackSimRoads_1st(const std::vector<std::shared_ptr<const FPGATrackSimRoad>> & roads_1st) { for ( auto& r : roads_1st) m_FPGATrackSimRoads_1st.push_back(*r); }
26 
27  // Second Stage FPGATrackSim Roads
28  void getFPGATrackSimRoads_2nd(std::vector<std::shared_ptr<const FPGATrackSimRoad>> & roads_2nd) { roads_2nd.reserve(m_FPGATrackSimRoads_2nd.size()); for ( auto& r : m_FPGATrackSimRoads_2nd) roads_2nd.emplace_back(std::make_shared<const FPGATrackSimRoad>(r)); }
29  const std::vector<FPGATrackSimRoad>& getFPGATrackSimRoads_2nd() const { return m_FPGATrackSimRoads_2nd; }
30  size_t nFPGATrackSimRoads_2nd() const { return m_FPGATrackSimRoads_2nd.size(); }
32  void addFPGATrackSimRoads_2nd(const std::vector<std::shared_ptr<const FPGATrackSimRoad>> & roads_2nd) { for ( auto& r : roads_2nd) m_FPGATrackSimRoads_2nd.push_back(*r); }
33 
34  // First Stage FPGATrackSim Tracks
35  std::vector<FPGATrackSimTrack> const& getFPGATrackSimTracks_1st() const { return m_FPGATrackSimTracks_1st; }
36  size_t nFPGATrackSimTracks_1st() const { return m_FPGATrackSimTracks_1st.size(); }
38  void addFPGATrackSimTracks_1st(std::vector<FPGATrackSimTrack> const& tracks_1st) { m_FPGATrackSimTracks_1st = tracks_1st; }
39 
40  // Second Stage FPGATrackSim Tracks
41  std::vector<FPGATrackSimTrack> const& getFPGATrackSimTracks_2nd() const { return m_FPGATrackSimTracks_2nd; }
42  size_t nFPGATrackSimTracks_2nd() const { return m_FPGATrackSimTracks_2nd.size(); }
44  void addFPGATrackSimTracks_2nd(std::vector<FPGATrackSimTrack> const& tracks_2nd) { m_FPGATrackSimTracks_2nd = tracks_2nd; }
45 
46  // Data Flow Information
49 
50 private:
51 
52  std::vector<FPGATrackSimRoad> m_FPGATrackSimRoads_1st;
53  std::vector<FPGATrackSimRoad> m_FPGATrackSimRoads_2nd;
54  std::vector<FPGATrackSimTrack> m_FPGATrackSimTracks_1st;
55  std::vector<FPGATrackSimTrack> m_FPGATrackSimTracks_2nd;
56 
58 
60 };
61 
62 std::ostream& operator<<(std::ostream& s, FPGATrackSimLogicalEventOutputHeader const& h);
63 
64 #endif // FPGATrackSimEVENTOUTPUTHEADER_H
grepfile.info
info
Definition: grepfile.py:38
FPGATrackSimLogicalEventOutputHeader::m_FPGATrackSimRoads_1st
std::vector< FPGATrackSimRoad > m_FPGATrackSimRoads_1st
Definition: FPGATrackSimLogicalEventOutputHeader.h:52
beamspotman.r
def r
Definition: beamspotman.py:676
FPGATrackSimLogicalEventOutputHeader::m_FPGATrackSimTracks_1st
std::vector< FPGATrackSimTrack > m_FPGATrackSimTracks_1st
Definition: FPGATrackSimLogicalEventOutputHeader.h:54
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
FPGATrackSimLogicalEventOutputHeader::~FPGATrackSimLogicalEventOutputHeader
virtual ~FPGATrackSimLogicalEventOutputHeader()
Definition: FPGATrackSimLogicalEventOutputHeader.cxx:8
FPGATrackSimLogicalEventOutputHeader::nFPGATrackSimRoads_1st
size_t nFPGATrackSimRoads_1st() const
Definition: FPGATrackSimLogicalEventOutputHeader.h:23
FPGATrackSimLogicalEventOutputHeader::reserveFPGATrackSimRoads_1st
void reserveFPGATrackSimRoads_1st(size_t size)
Definition: FPGATrackSimLogicalEventOutputHeader.h:24
FPGATrackSimLogicalEventOutputHeader::reset
void reset()
Definition: FPGATrackSimLogicalEventOutputHeader.cxx:12
FPGATrackSimLogicalEventOutputHeader::nFPGATrackSimRoads_2nd
size_t nFPGATrackSimRoads_2nd() const
Definition: FPGATrackSimLogicalEventOutputHeader.h:30
operator<<
std::ostream & operator<<(std::ostream &s, FPGATrackSimLogicalEventOutputHeader const &h)
Definition: FPGATrackSimLogicalEventOutputHeader.cxx:20
FPGATrackSimLogicalEventOutputHeader::ClassDefNV
ClassDefNV(FPGATrackSimLogicalEventOutputHeader, 5)
FPGATrackSimLogicalEventOutputHeader::nFPGATrackSimTracks_2nd
size_t nFPGATrackSimTracks_2nd() const
Definition: FPGATrackSimLogicalEventOutputHeader.h:42
FPGATrackSimLogicalEventOutputHeader::getDataFlowInfo
FPGATrackSimDataFlowInfo const & getDataFlowInfo() const
Definition: FPGATrackSimLogicalEventOutputHeader.h:47
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
FPGATrackSimLogicalEventOutputHeader::getFPGATrackSimRoads_2nd
void getFPGATrackSimRoads_2nd(std::vector< std::shared_ptr< const FPGATrackSimRoad >> &roads_2nd)
Definition: FPGATrackSimLogicalEventOutputHeader.h:28
FPGATrackSimLogicalEventOutputHeader::addFPGATrackSimTracks_2nd
void addFPGATrackSimTracks_2nd(std::vector< FPGATrackSimTrack > const &tracks_2nd)
Definition: FPGATrackSimLogicalEventOutputHeader.h:44
FPGATrackSimDataFlowInfo
Definition: FPGATrackSimDataFlowInfo.h:18
FPGATrackSimLogicalEventOutputHeader::reserveFPGATrackSimTracks_1st
void reserveFPGATrackSimTracks_1st(size_t size)
Definition: FPGATrackSimLogicalEventOutputHeader.h:37
FPGATrackSimLogicalEventOutputHeader::getFPGATrackSimRoads_1st
void getFPGATrackSimRoads_1st(std::vector< std::shared_ptr< const FPGATrackSimRoad >> &roads_1st)
Definition: FPGATrackSimLogicalEventOutputHeader.h:21
FPGATrackSimLogicalEventOutputHeader::addFPGATrackSimRoads_1st
void addFPGATrackSimRoads_1st(const std::vector< std::shared_ptr< const FPGATrackSimRoad >> &roads_1st)
Definition: FPGATrackSimLogicalEventOutputHeader.h:25
FPGATrackSimDataFlowInfo.h
Structs that store the data flow information per event.
FPGATrackSimLogicalEventOutputHeader::getFPGATrackSimTracks_1st
std::vector< FPGATrackSimTrack > const & getFPGATrackSimTracks_1st() const
Definition: FPGATrackSimLogicalEventOutputHeader.h:35
FPGATrackSimLogicalEventOutputHeader::getFPGATrackSimRoads_2nd
const std::vector< FPGATrackSimRoad > & getFPGATrackSimRoads_2nd() const
Definition: FPGATrackSimLogicalEventOutputHeader.h:29
FPGATrackSimLogicalEventOutputHeader::m_FPGATrackSimTracks_2nd
std::vector< FPGATrackSimTrack > m_FPGATrackSimTracks_2nd
Definition: FPGATrackSimLogicalEventOutputHeader.h:55
FPGATrackSimLogicalEventOutputHeader::setDataFlowInfo
void setDataFlowInfo(FPGATrackSimDataFlowInfo const &info)
Definition: FPGATrackSimLogicalEventOutputHeader.h:48
FPGATrackSimLogicalEventOutputHeader::m_dataflowInfo
FPGATrackSimDataFlowInfo m_dataflowInfo
Definition: FPGATrackSimLogicalEventOutputHeader.h:57
FPGATrackSimLogicalEventOutputHeader::m_FPGATrackSimRoads_2nd
std::vector< FPGATrackSimRoad > m_FPGATrackSimRoads_2nd
Definition: FPGATrackSimLogicalEventOutputHeader.h:53
FPGATrackSimLogicalEventOutputHeader::addFPGATrackSimTracks_1st
void addFPGATrackSimTracks_1st(std::vector< FPGATrackSimTrack > const &tracks_1st)
Definition: FPGATrackSimLogicalEventOutputHeader.h:38
FPGATrackSimLogicalEventOutputHeader::reserveFPGATrackSimTracks_2nd
void reserveFPGATrackSimTracks_2nd(size_t size)
Definition: FPGATrackSimLogicalEventOutputHeader.h:43
h
FPGATrackSimLogicalEventOutputHeader
Definition: FPGATrackSimLogicalEventOutputHeader.h:12
FPGATrackSimRoad.h
Defines a class for roads.
FPGATrackSimLogicalEventOutputHeader::reserveFPGATrackSimRoads_2nd
void reserveFPGATrackSimRoads_2nd(size_t size)
Definition: FPGATrackSimLogicalEventOutputHeader.h:31
FPGATrackSimLogicalEventOutputHeader::addFPGATrackSimRoads_2nd
void addFPGATrackSimRoads_2nd(const std::vector< std::shared_ptr< const FPGATrackSimRoad >> &roads_2nd)
Definition: FPGATrackSimLogicalEventOutputHeader.h:32
FPGATrackSimTypes.h
FPGATrackSimLogicalEventOutputHeader::nFPGATrackSimTracks_1st
size_t nFPGATrackSimTracks_1st() const
Definition: FPGATrackSimLogicalEventOutputHeader.h:36
FPGATrackSimLogicalEventOutputHeader::FPGATrackSimLogicalEventOutputHeader
FPGATrackSimLogicalEventOutputHeader()
Definition: FPGATrackSimLogicalEventOutputHeader.h:15
FPGATrackSimLogicalEventOutputHeader::getFPGATrackSimTracks_2nd
std::vector< FPGATrackSimTrack > const & getFPGATrackSimTracks_2nd() const
Definition: FPGATrackSimLogicalEventOutputHeader.h:41
FPGATrackSimTrack.h
FPGATrackSimLogicalEventOutputHeader::getFPGATrackSimRoads_1st
const std::vector< FPGATrackSimRoad > & getFPGATrackSimRoads_1st() const
Definition: FPGATrackSimLogicalEventOutputHeader.h:22