ATLAS Offline Software
FPGATrackSimEventInputHeader.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include <iostream>
7 
8 
10 {
11  reset();
12 }
13 
15 {
16  m_event.reset();
17  m_optional.reset();
18  m_Hits.clear();
19 }
20 
21 
22 std::ostream& operator<<(std::ostream& s, const FPGATrackSimEventInputHeader& h) {
23  s << "Event: " << h.event() << "\t"
24  << "Optional: " << h.optional() << "\t"
25  << "Nhits=" << h.nHits();
26 
27  s << "\n";
28 
29  const std::vector<FPGATrackSimHit>& hits = h.hits();
30  for (int j = 0; j < h.nHits(); j++) {
31  s << " " << j << " " << hits[j] << "\n";
32  // if ( (j+1)%5==0 ) s << "\n";
33  }
34  //s <<"\n";
35 
36 
37  return s;
38 }
39 
FPGATrackSimEventInputHeader::m_Hits
std::vector< FPGATrackSimHit > m_Hits
Definition: FPGATrackSimEventInputHeader.h:47
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
FPGATrackSimEventInfo::reset
void reset()
Definition: FPGATrackSimEventInfo.cxx:15
FPGATrackSimEventInputHeader::m_optional
FPGATrackSimOptionalEventInfo m_optional
Definition: FPGATrackSimEventInputHeader.h:46
FPGATrackSimEventInputHeader::~FPGATrackSimEventInputHeader
virtual ~FPGATrackSimEventInputHeader()
Definition: FPGATrackSimEventInputHeader.cxx:9
FPGATrackSimOptionalEventInfo::reset
void reset()
Definition: FPGATrackSimOptionalEventInfo.cxx:13
FPGATrackSimEventInputHeader::m_event
FPGATrackSimEventInfo m_event
Definition: FPGATrackSimEventInputHeader.h:45
FPGATrackSimEventInputHeader
Definition: FPGATrackSimEventInputHeader.h:22
FPGATrackSimEventInputHeader.h
h
operator<<
std::ostream & operator<<(std::ostream &s, const FPGATrackSimEventInputHeader &h)
Definition: FPGATrackSimEventInputHeader.cxx:22
FPGATrackSimEventInputHeader::reset
void reset()
Definition: FPGATrackSimEventInputHeader.cxx:14