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 
21 class FPGATrackSimEventInputHeader : public TObject
22 {
23 public:
24 
26 
29  void reset();//reset per event variables
30 
31 
32  FPGATrackSimEventInfo const& event() const { return m_event; }
34 
35  // handling hits
36  const std::vector<FPGATrackSimHit>& hits() const { return m_Hits; }
37  int nHits() const { return m_Hits.size(); }
38  void addHit(FPGATrackSimHit const& s) { m_Hits.push_back(s); }
39  void clearHits() { m_Hits.clear(); }
40  void reserveHits(size_t size) { m_Hits.reserve(size); }
41 
42 
43 private:
46  std::vector<FPGATrackSimHit> m_Hits;
47 
48 
50 };
51 
52 std::ostream& operator<<(std::ostream&, const FPGATrackSimEventInputHeader&);
53 #endif // TRIGFPGATrackSimOBJECTS_FPGATrackSimEVENTINPUTHEADER_H
FPGATrackSimEventInputHeader::hits
const std::vector< FPGATrackSimHit > & hits() const
Definition: FPGATrackSimEventInputHeader.h:36
FPGATrackSimEventInputHeader::m_Hits
std::vector< FPGATrackSimHit > m_Hits
Definition: FPGATrackSimEventInputHeader.h:46
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
FPGATrackSimEventInputHeader::ClassDef
ClassDef(FPGATrackSimEventInputHeader, 3)
FPGATrackSimEventInputHeader::newEvent
void newEvent(FPGATrackSimEventInfo const &event)
Definition: FPGATrackSimEventInputHeader.h:27
FPGATrackSimEventInputHeader::m_optional
FPGATrackSimOptionalEventInfo m_optional
Definition: FPGATrackSimEventInputHeader.h:45
FPGATrackSimEventInputHeader::~FPGATrackSimEventInputHeader
virtual ~FPGATrackSimEventInputHeader()
operator<<
std::ostream & operator<<(std::ostream &, const FPGATrackSimEventInputHeader &)
Definition: FPGATrackSimEventInputHeader.cxx:23
FPGATrackSimHit
Definition: FPGATrackSimHit.h:38
FPGATrackSimEventInputHeader::nHits
int nHits() const
Definition: FPGATrackSimEventInputHeader.h:37
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
FPGATrackSimEventInfo
Definition: FPGATrackSimEventInfo.h:14
FPGATrackSimEventInputHeader::m_event
FPGATrackSimEventInfo m_event
Definition: FPGATrackSimEventInputHeader.h:44
FPGATrackSimEventInputHeader::clearHits
void clearHits()
Definition: FPGATrackSimEventInputHeader.h:39
FPGATrackSimEventInputHeader::addHit
void addHit(FPGATrackSimHit const &s)
Definition: FPGATrackSimEventInputHeader.h:38
FPGATrackSimEventInfo.h
FPGATrackSimEventInputHeader
Definition: FPGATrackSimEventInputHeader.h:22
FPGATrackSimOptionalEventInfo
Definition: FPGATrackSimOptionalEventInfo.h:17
FPGATrackSimEventInputHeader::event
FPGATrackSimEventInfo const & event() const
Definition: FPGATrackSimEventInputHeader.h:32
FPGATrackSimHit.h
: FPGATrackSim-specific class to represent an hit in the detector.
FPGATrackSimEventInputHeader::setOptional
void setOptional(FPGATrackSimOptionalEventInfo const &optional)
Definition: FPGATrackSimEventInputHeader.h:28
FPGATrackSimEventInputHeader::optional
FPGATrackSimOptionalEventInfo const & optional() const
Definition: FPGATrackSimEventInputHeader.h:33
FPGATrackSimEventInputHeader::reserveHits
void reserveHits(size_t size)
Definition: FPGATrackSimEventInputHeader.h:40
FPGATrackSimEventInputHeader::reset
void reset()
Definition: FPGATrackSimEventInputHeader.cxx:15
FPGATrackSimOptionalEventInfo.h