ATLAS Offline Software
Functions
FPGATrackSimEventInputHeader.cxx File Reference
#include "FPGATrackSimObjects/FPGATrackSimEventInputHeader.h"
#include <iostream>
Include dependency graph for FPGATrackSimEventInputHeader.cxx:

Go to the source code of this file.

Functions

 ClassImp (FPGATrackSimEventInputHeader) FPGATrackSimEventInputHeader
 
std::ostream & operator<< (std::ostream &s, const FPGATrackSimEventInputHeader &h)
 

Function Documentation

◆ ClassImp()

Definition at line 8 of file FPGATrackSimEventInputHeader.cxx.

11 {
12  reset();
13 }

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
const FPGATrackSimEventInputHeader h 
)

Definition at line 23 of file FPGATrackSimEventInputHeader.cxx.

23  {
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 }
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
LArG4ShowerLibProcessing.hits
hits
Definition: LArG4ShowerLibProcessing.py:136
h
CxxUtils::reset
constexpr std::enable_if_t< is_bitmask_v< E >, E & > reset(E &lhs, E rhs)
Convenience function to clear bits in a class enum bitmask.
Definition: bitmask.h:243