ATLAS Offline Software
FPGATrackSimEventInputHeader.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_FPGATrackSimEVENTINPUTHEADER_H
6 #define TRIGFPGATrackSimOBJECTS_FPGATrackSimEVENTINPUTHEADER_H
7 
8 #include <TObject.h>
9 #include <vector>
10 #include <iostream>
11 #include <sstream>
12 
16 
17 
20 
22 {
23 public:
24 
27 
30  void reset();//reset per event variables
31 
32 
33  FPGATrackSimEventInfo const& event() const { return m_event; }
35 
36  // handling hits
37  const std::vector<FPGATrackSimHit>& hits() const { return m_Hits; }
38  int nHits() const { return m_Hits.size(); }
39  void addHit(FPGATrackSimHit const& s) { m_Hits.push_back(s); }
40  void clearHits() { m_Hits.clear(); }
41  void reserveHits(size_t size) { m_Hits.reserve(size); }
42 
43 
44 private:
47  std::vector<FPGATrackSimHit> m_Hits;
48 
49 
51 };
52 
53 std::ostream& operator<<(std::ostream&, const FPGATrackSimEventInputHeader&);
54 #endif // TRIGFPGATrackSimOBJECTS_FPGATrackSimEVENTINPUTHEADER_H
FPGATrackSimEventInputHeader::hits
const std::vector< FPGATrackSimHit > & hits() const
Definition: FPGATrackSimEventInputHeader.h:37
FPGATrackSimEventInputHeader::m_Hits
std::vector< FPGATrackSimHit > m_Hits
Definition: FPGATrackSimEventInputHeader.h:47
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
FPGATrackSimEventInputHeader::newEvent
void newEvent(FPGATrackSimEventInfo const &event)
Definition: FPGATrackSimEventInputHeader.h:28
FPGATrackSimEventInputHeader::m_optional
FPGATrackSimOptionalEventInfo m_optional
Definition: FPGATrackSimEventInputHeader.h:46
FPGATrackSimEventInputHeader::~FPGATrackSimEventInputHeader
virtual ~FPGATrackSimEventInputHeader()
Definition: FPGATrackSimEventInputHeader.cxx:9
operator<<
std::ostream & operator<<(std::ostream &, const FPGATrackSimEventInputHeader &)
Definition: FPGATrackSimEventInputHeader.cxx:22
FPGATrackSimEventInputHeader::ClassDefNV
ClassDefNV(FPGATrackSimEventInputHeader, 4)
FPGATrackSimHit
Definition: FPGATrackSimHit.h:41
FPGATrackSimEventInputHeader::nHits
int nHits() const
Definition: FPGATrackSimEventInputHeader.h:38
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
FPGATrackSimEventInfo
Definition: FPGATrackSimEventInfo.h:14
FPGATrackSimEventInputHeader::FPGATrackSimEventInputHeader
FPGATrackSimEventInputHeader()=default
FPGATrackSimEventInputHeader::m_event
FPGATrackSimEventInfo m_event
Definition: FPGATrackSimEventInputHeader.h:45
FPGATrackSimEventInputHeader::clearHits
void clearHits()
Definition: FPGATrackSimEventInputHeader.h:40
FPGATrackSimEventInputHeader::addHit
void addHit(FPGATrackSimHit const &s)
Definition: FPGATrackSimEventInputHeader.h:39
FPGATrackSimEventInfo.h
FPGATrackSimEventInputHeader
Definition: FPGATrackSimEventInputHeader.h:22
FPGATrackSimOptionalEventInfo
Definition: FPGATrackSimOptionalEventInfo.h:17
FPGATrackSimEventInputHeader::event
FPGATrackSimEventInfo const & event() const
Definition: FPGATrackSimEventInputHeader.h:33
FPGATrackSimHit.h
: FPGATrackSim-specific class to represent an hit in the detector.
FPGATrackSimEventInputHeader::setOptional
void setOptional(FPGATrackSimOptionalEventInfo const &optional)
Definition: FPGATrackSimEventInputHeader.h:29
FPGATrackSimEventInputHeader::optional
FPGATrackSimOptionalEventInfo const & optional() const
Definition: FPGATrackSimEventInputHeader.h:34
FPGATrackSimEventInputHeader::reserveHits
void reserveHits(size_t size)
Definition: FPGATrackSimEventInputHeader.h:41
FPGATrackSimEventInputHeader::reset
void reset()
Definition: FPGATrackSimEventInputHeader.cxx:14
FPGATrackSimOptionalEventInfo.h