ATLAS Offline Software
FPGATrackSimOptionalEventInfo.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_FPGATrackSimOPTIONALEVENTINFO_H
6 #define TRIGFPGATrackSimOBJECTS_FPGATrackSimOPTIONALEVENTINFO_H
7 
8 #include <TObject.h>
9 #include <vector>
10 #include <iostream>
11 #include <sstream>
12 
16 
18 
19 public:
20 
23 
24  void reset();
25 
26  // Offline Clusters
27  const std::vector<FPGATrackSimCluster>& getOfflineClusters() const { return m_OfflineClusters; }
28  size_t nOfflineClusters() const { return m_OfflineClusters.size(); }
30 
31  // Offline Tracks
32  const std::vector<FPGATrackSimOfflineTrack>& getOfflineTracks() const { return m_OfflineTracks; }
33  size_t nOfflineTracks() const { return m_OfflineTracks.size(); }
35 
36  // Truth Tracks
37  const std::vector<FPGATrackSimTruthTrack>& getTruthTracks() const { return m_TruthTracks; }
38  size_t nTruthTracks() const { return m_TruthTracks.size(); }
39  void addTruthTrack(const FPGATrackSimTruthTrack& t) { m_TruthTracks.push_back(t); };
40 
41 
42  //reserve sizes
44  void reserveOfflineTracks(size_t size) { m_OfflineTracks.reserve(size); }
45  void reserveTruthTracks(size_t size) { m_TruthTracks.reserve(size); }
46 
47 
48 private:
49 
50  std::vector<FPGATrackSimCluster> m_OfflineClusters;
51  std::vector<FPGATrackSimOfflineTrack> m_OfflineTracks;
52  std::vector<FPGATrackSimTruthTrack> m_TruthTracks;
53 
54 
55  ClassDefNV(FPGATrackSimOptionalEventInfo, 3)
56 };
57 
58 std::ostream& operator<<(std::ostream&, const FPGATrackSimOptionalEventInfo&);
59 #endif
FPGATrackSimOptionalEventInfo::m_OfflineTracks
std::vector< FPGATrackSimOfflineTrack > m_OfflineTracks
Definition: FPGATrackSimOptionalEventInfo.h:51
FPGATrackSimOptionalEventInfo::getOfflineTracks
const std::vector< FPGATrackSimOfflineTrack > & getOfflineTracks() const
Definition: FPGATrackSimOptionalEventInfo.h:32
FPGATrackSimCluster
Definition: FPGATrackSimCluster.h:24
FPGATrackSimTruthTrack
Definition: FPGATrackSimTruthTrack.h:14
FPGATrackSimOfflineTrack.h
FPGATrackSimOptionalEventInfo::reserveOfflineClusters
void reserveOfflineClusters(size_t size)
Definition: FPGATrackSimOptionalEventInfo.h:43
operator<<
std::ostream & operator<<(std::ostream &, const FPGATrackSimOptionalEventInfo &)
Definition: FPGATrackSimOptionalEventInfo.cxx:19
FPGATrackSimOptionalEventInfo::~FPGATrackSimOptionalEventInfo
virtual ~FPGATrackSimOptionalEventInfo()
Definition: FPGATrackSimOptionalEventInfo.cxx:9
FPGATrackSimOptionalEventInfo::reset
void reset()
Definition: FPGATrackSimOptionalEventInfo.cxx:13
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
FPGATrackSimOptionalEventInfo::getTruthTracks
const std::vector< FPGATrackSimTruthTrack > & getTruthTracks() const
Definition: FPGATrackSimOptionalEventInfo.h:37
FPGATrackSimOptionalEventInfo::nTruthTracks
size_t nTruthTracks() const
Definition: FPGATrackSimOptionalEventInfo.h:38
FPGATrackSimOptionalEventInfo::nOfflineClusters
size_t nOfflineClusters() const
Definition: FPGATrackSimOptionalEventInfo.h:28
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
FPGATrackSimOptionalEventInfo::m_OfflineClusters
std::vector< FPGATrackSimCluster > m_OfflineClusters
Definition: FPGATrackSimOptionalEventInfo.h:50
FPGATrackSimOptionalEventInfo::FPGATrackSimOptionalEventInfo
FPGATrackSimOptionalEventInfo()
Definition: FPGATrackSimOptionalEventInfo.h:21
FPGATrackSimOptionalEventInfo::addOfflineTrack
void addOfflineTrack(const FPGATrackSimOfflineTrack &t)
Definition: FPGATrackSimOptionalEventInfo.h:34
FPGATrackSimOptionalEventInfo
Definition: FPGATrackSimOptionalEventInfo.h:17
FPGATrackSimOfflineTrack
Definition: FPGATrackSimOfflineTrack.h:12
FPGATrackSimOptionalEventInfo::nOfflineTracks
size_t nOfflineTracks() const
Definition: FPGATrackSimOptionalEventInfo.h:33
FPGATrackSimOptionalEventInfo::reserveTruthTracks
void reserveTruthTracks(size_t size)
Definition: FPGATrackSimOptionalEventInfo.h:45
FPGATrackSimOptionalEventInfo::addTruthTrack
void addTruthTrack(const FPGATrackSimTruthTrack &t)
Definition: FPGATrackSimOptionalEventInfo.h:39
FPGATrackSimOptionalEventInfo::m_TruthTracks
std::vector< FPGATrackSimTruthTrack > m_TruthTracks
Definition: FPGATrackSimOptionalEventInfo.h:52
FPGATrackSimOptionalEventInfo::reserveOfflineTracks
void reserveOfflineTracks(size_t size)
Definition: FPGATrackSimOptionalEventInfo.h:44
FPGATrackSimOptionalEventInfo::addOfflineCluster
void addOfflineCluster(const FPGATrackSimCluster &c)
Definition: FPGATrackSimOptionalEventInfo.h:29
FPGATrackSimOptionalEventInfo::getOfflineClusters
const std::vector< FPGATrackSimCluster > & getOfflineClusters() const
Definition: FPGATrackSimOptionalEventInfo.h:27
python.compressB64.c
def c
Definition: compressB64.py:93
FPGATrackSimTruthTrack.h
FPGATrackSimCluster.h