ATLAS Offline Software
Trigger
EFTracking
FPGATrackSim
FPGATrackSimObjects
FPGATrackSimObjects
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
13
#include "
FPGATrackSimObjects/FPGATrackSimHit.h
"
14
#include "
FPGATrackSimObjects/FPGATrackSimEventInfo.h
"
15
#include "
FPGATrackSimObjects/FPGATrackSimOptionalEventInfo.h
"
16
17
18
class
FPGATrackSimEventInfo
;
19
class
FPGATrackSimOptionalEventInfo
;
20
21
class
FPGATrackSimEventInputHeader
:
public
TObject
22
{
23
public
:
24
25
virtual
~FPGATrackSimEventInputHeader
();
26
27
void
newEvent
(
FPGATrackSimEventInfo
const
&
event
) {
reset
();
m_event
=
event
; }
28
void
setOptional
(
FPGATrackSimOptionalEventInfo
const
&
optional
) {
m_optional
=
optional
; }
29
void
reset
();
//reset per event variables
30
31
32
FPGATrackSimEventInfo
const
&
event
()
const
{
return
m_event
; }
33
FPGATrackSimOptionalEventInfo
const
&
optional
()
const
{
return
m_optional
; }
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
:
44
FPGATrackSimEventInfo
m_event
;
45
FPGATrackSimOptionalEventInfo
m_optional
;
46
std::vector<FPGATrackSimHit>
m_Hits
;
47
48
49
ClassDef
(
FPGATrackSimEventInputHeader
, 3);
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
Generated on Tue Jul 2 2024 21:15:52 for ATLAS Offline Software by
1.8.18