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 
9 
11 {
12  reset();
13 }
14 
16 {
17  m_event.reset();
18  m_optional.reset();
19  m_Hits.clear();
20 }
21 
22 
23 std::ostream& operator<<(std::ostream& s, const FPGATrackSimEventInputHeader& h) {
24  s << "Event: " << h.event() << "\t"
25  << "Optional: " << h.optional() << "\t"
26  << "Nhits=" << h.nHits();
27 
28  s << "\n";
29 
30  const std::vector<FPGATrackSimHit>& hits = h.hits();
31  for (int j = 0; j < h.nHits(); j++) {
32  s << " " << j << " " << hits[j] << "\n";
33  // if ( (j+1)%5==0 ) s << "\n";
34  }
35  //s <<"\n";
36 
37 
38  return s;
39 }
40 
FPGATrackSimEventInputHeader::m_Hits
std::vector< FPGATrackSimHit > m_Hits
Definition: FPGATrackSimEventInputHeader.h:46
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
FPGATrackSimEventInfo::reset
void reset()
Definition: FPGATrackSimEventInfo.cxx:16
FPGATrackSimEventInputHeader::m_optional
FPGATrackSimOptionalEventInfo m_optional
Definition: FPGATrackSimEventInputHeader.h:45
FPGATrackSimEventInputHeader::~FPGATrackSimEventInputHeader
virtual ~FPGATrackSimEventInputHeader()
FPGATrackSimOptionalEventInfo::reset
void reset()
Definition: FPGATrackSimOptionalEventInfo.cxx:14
FPGATrackSimEventInputHeader::m_event
FPGATrackSimEventInfo m_event
Definition: FPGATrackSimEventInputHeader.h:44
LArG4ShowerLibProcessing.hits
hits
Definition: LArG4ShowerLibProcessing.py:136
FPGATrackSimEventInputHeader
Definition: FPGATrackSimEventInputHeader.h:22
FPGATrackSimEventInputHeader.h
h
operator<<
std::ostream & operator<<(std::ostream &s, const FPGATrackSimEventInputHeader &h)
Definition: FPGATrackSimEventInputHeader.cxx:23
ClassImp
ClassImp(FPGATrackSimEventInputHeader) FPGATrackSimEventInputHeader
Definition: FPGATrackSimEventInputHeader.cxx:8
FPGATrackSimEventInputHeader::reset
void reset()
Definition: FPGATrackSimEventInputHeader.cxx:15