ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
FPGATrackSimTrackStream Class Reference

#include <FPGATrackSimTrackStream.h>

Collaboration diagram for FPGATrackSimTrackStream:

Public Member Functions

 FPGATrackSimTrackStream ()
 
 FPGATrackSimTrackStream (const FPGATrackSimTrackStream &in)
 
virtual ~FPGATrackSimTrackStream ()
 
FPGATrackSimTrackStreamoperator= (const FPGATrackSimTrackStream &s)
 
const unsigned long & runNumber () const
 
const unsigned long & eventNumber () const
 
void setRunNumber (const unsigned long &val)
 
void setEventNumber (const unsigned long &val)
 
void addTrack (const FPGATrackSimTrack &)
 add a track in the final list More...
 
FPGATrackSimTrackgetTrack (int) const
 return a given track, identified by its position in the list More...
 
int findTrack (int trackid, int bankid)
 this method, passing a track ID and a bank ID, return the ID of the corresponding track. More...
 
int getNTracks () const
 
void buildTrackMap ()
 
void addTrackI (const FPGATrackSimTrack &)
 add a track in the final list More...
 
FPGATrackSimTrackgetTrackI (int) const
 return a given track, identified by its position in the list More...
 
int getNTracksI () const
 
int getNConn () const
 
int getNExtrapolatedTracks () const
 
void addNCombs (int v)
 
void addNFits (int v)
 
void addNFitsMajority (int v)
 
void addNFitsMajority_pix (int v)
 
void addNFitsMajority_SCT (int v)
 
void addNFitsRecovery (int v)
 
void addNAddFitsRecovery (int v)
 
void addNFitsBad (int v)
 
void addNFitsHWRejected (int v)
 
void addNFitsBadMajority (int v)
 
void addNFitsHWRejectedMajority (int v)
 
void addNConnections (int v)
 
void addNExtrapolatedTracks (int v)
 
int getNCombs () const
 
int getNFits () const
 
int getNFitsMajority () const
 
int getNFitsMajority_pix () const
 
int getNFitsMajority_SCT () const
 
int getNFitsRecovery () const
 
int getNAddFitsRecovery () const
 
int getNFitsBad () const
 
int getNFitsHWRejected () const
 
int getNFitsBadMajority () const
 
int getNFitsHWRejectedMajority () const
 
int getNConnections () const
 
void addNCombsI (int v)
 
void addNFitsI (int v)
 
void addNFitsMajorityI (int v)
 
void addNFitsMajorityI_pix (int v)
 
void addNFitsMajorityI_SCT (int v)
 
void addNFitsRecoveryI (int v)
 
void addNAddFitsRecoveryI (int v)
 
void addNFitsBadI (int v)
 
void addNFitsHWRejectedI (int v)
 
void addNFitsBadMajorityI (int v)
 
void addNFitsHWRejectedMajorityI (int v)
 
int getNCombsI () const
 
int getNFitsI () const
 
int getNFitsMajorityI () const
 
int getNFitsMajorityI_pix () const
 
int getNFitsMajorityI_SCT () const
 
int getNFitsRecoveryI () const
 
int getNAddFitsRecoveryI () const
 
int getNFitsBadI () const
 
int getNFitsHWRejectedI () const
 
int getNFitsBadMajorityI () const
 
int getNFitsHWRejectedMajorityI () const
 
void clear ()
 reset the list of the tracks and the statistical informatino collected for this event More...
 
int Print (int level=0, std::ostream &out=std::cout)
 print a debug message summaryzing the information for the tracks found in one event for a given bank. More...
 

Private Attributes

unsigned long m_run_number
 
unsigned long m_event_number
 
int m_ntracks
 
TClonesArray * m_tracks
 
int m_ncombs
 
int m_nfits
 
int m_nfits_maj
 
int m_nfits_maj_SCT
 
int m_nfits_maj_pix
 
int m_nfits_rec
 
int m_nfits_addrec
 
int m_nfits_bad
 
int m_nfits_rej
 
int m_nfits_badmaj
 
int m_nfits_rejmaj
 
int m_ntracksI
 
TClonesArray * m_tracksI
 
int m_ncombsI
 
int m_nfitsI
 
int m_nfits_majI
 
int m_nfits_majI_SCT
 
int m_nfits_majI_pix
 
int m_nfits_recI
 
int m_nfits_addrecI
 
int m_nfits_badI
 
int m_nfits_rejI
 
int m_nfits_badmajI
 
int m_nfits_rejmajI
 
int m_nconn
 
int m_nextrapolatedTracks
 
std::map< std::pair< int, int >, int > m_trackIdMap
 

Detailed Description

Definition at line 15 of file FPGATrackSimTrackStream.h.

Constructor & Destructor Documentation

◆ FPGATrackSimTrackStream() [1/2]

FPGATrackSimTrackStream::FPGATrackSimTrackStream ( )

Definition at line 11 of file FPGATrackSimTrackStream.cxx.

11  :
13  m_ntracks(0), m_ncombs(0), m_nfits(0), m_nfits_maj(0),
14  m_nfits_maj_SCT(0),
15  m_nfits_maj_pix(0),
23 {
24  m_tracks = new TClonesArray("FPGATrackSimTrack", 1000);
25  m_tracksI = new TClonesArray("FPGATrackSimTrack", 1000);
26 }

◆ FPGATrackSimTrackStream() [2/2]

FPGATrackSimTrackStream::FPGATrackSimTrackStream ( const FPGATrackSimTrackStream in)

Definition at line 85 of file FPGATrackSimTrackStream.cxx.

85  {
88  m_ntracks = in.m_ntracks;
89  m_ncombs = in.m_ncombs;
90  m_nfits = in.m_nfits;
100  m_ntracksI = in.m_ntracksI;
101  m_ncombsI = in.m_ncombsI;
102  m_nfitsI = in.m_nfitsI;
112  m_nconn = in.m_nconn;
114  m_tracks = new TClonesArray("FPGATrackSimTrack", 1000);
115  m_tracksI = new TClonesArray("FPGATrackSimTrack", 1000);
116  for (int i = 0; i < in.m_ntracks; i++) {
117  FPGATrackSimTrack* trackP = in.getTrack(i);
118  const FPGATrackSimTrack track = *trackP;
119  addTrack(track);
120  }
121  for (int i = 0; i < in.m_ntracksI; i++) {
122  FPGATrackSimTrack* trackP = in.getTrackI(i);
123  const FPGATrackSimTrack track = *trackP;
124  addTrackI(track);
125  }
126 }

◆ ~FPGATrackSimTrackStream()

FPGATrackSimTrackStream::~FPGATrackSimTrackStream ( )
virtual

Definition at line 76 of file FPGATrackSimTrackStream.cxx.

77 {
78  m_tracks->Delete();
79  delete m_tracks;
80  m_tracksI->Delete();
81  delete m_tracksI;
82 }

Member Function Documentation

◆ addNAddFitsRecovery()

void FPGATrackSimTrackStream::addNAddFitsRecovery ( int  v)
inline

Definition at line 47 of file FPGATrackSimTrackStream.h.

47 { m_nfits_addrec += v; }

◆ addNAddFitsRecoveryI()

void FPGATrackSimTrackStream::addNAddFitsRecoveryI ( int  v)
inline

Definition at line 74 of file FPGATrackSimTrackStream.h.

74 { m_nfits_addrecI += v; }

◆ addNCombs()

void FPGATrackSimTrackStream::addNCombs ( int  v)
inline

Definition at line 41 of file FPGATrackSimTrackStream.h.

41 { m_ncombs += v; }

◆ addNCombsI()

void FPGATrackSimTrackStream::addNCombsI ( int  v)
inline

Definition at line 68 of file FPGATrackSimTrackStream.h.

68 { m_ncombsI += v; }

◆ addNConnections()

void FPGATrackSimTrackStream::addNConnections ( int  v)
inline

Definition at line 52 of file FPGATrackSimTrackStream.h.

52 { m_nconn += v; }

◆ addNExtrapolatedTracks()

void FPGATrackSimTrackStream::addNExtrapolatedTracks ( int  v)
inline

Definition at line 53 of file FPGATrackSimTrackStream.h.

◆ addNFits()

void FPGATrackSimTrackStream::addNFits ( int  v)
inline

Definition at line 42 of file FPGATrackSimTrackStream.h.

42 { m_nfits += v; }

◆ addNFitsBad()

void FPGATrackSimTrackStream::addNFitsBad ( int  v)
inline

Definition at line 48 of file FPGATrackSimTrackStream.h.

48 { m_nfits_bad += v; }

◆ addNFitsBadI()

void FPGATrackSimTrackStream::addNFitsBadI ( int  v)
inline

Definition at line 75 of file FPGATrackSimTrackStream.h.

75 { m_nfits_badI += v; }

◆ addNFitsBadMajority()

void FPGATrackSimTrackStream::addNFitsBadMajority ( int  v)
inline

Definition at line 50 of file FPGATrackSimTrackStream.h.

50 { m_nfits_badmaj += v; }

◆ addNFitsBadMajorityI()

void FPGATrackSimTrackStream::addNFitsBadMajorityI ( int  v)
inline

Definition at line 77 of file FPGATrackSimTrackStream.h.

77 { m_nfits_badmajI += v; }

◆ addNFitsHWRejected()

void FPGATrackSimTrackStream::addNFitsHWRejected ( int  v)
inline

Definition at line 49 of file FPGATrackSimTrackStream.h.

49 { m_nfits_rej += v; }

◆ addNFitsHWRejectedI()

void FPGATrackSimTrackStream::addNFitsHWRejectedI ( int  v)
inline

Definition at line 76 of file FPGATrackSimTrackStream.h.

76 { m_nfits_rejI += v; }

◆ addNFitsHWRejectedMajority()

void FPGATrackSimTrackStream::addNFitsHWRejectedMajority ( int  v)
inline

Definition at line 51 of file FPGATrackSimTrackStream.h.

51 { m_nfits_rejmaj += v; }

◆ addNFitsHWRejectedMajorityI()

void FPGATrackSimTrackStream::addNFitsHWRejectedMajorityI ( int  v)
inline

Definition at line 78 of file FPGATrackSimTrackStream.h.

78 { m_nfits_rejmajI += v; }

◆ addNFitsI()

void FPGATrackSimTrackStream::addNFitsI ( int  v)
inline

Definition at line 69 of file FPGATrackSimTrackStream.h.

69 { m_nfitsI += v; }

◆ addNFitsMajority()

void FPGATrackSimTrackStream::addNFitsMajority ( int  v)
inline

Definition at line 43 of file FPGATrackSimTrackStream.h.

43 { m_nfits_maj += v; }

◆ addNFitsMajority_pix()

void FPGATrackSimTrackStream::addNFitsMajority_pix ( int  v)
inline

Definition at line 44 of file FPGATrackSimTrackStream.h.

44 { m_nfits_maj_pix += v; }

◆ addNFitsMajority_SCT()

void FPGATrackSimTrackStream::addNFitsMajority_SCT ( int  v)
inline

Definition at line 45 of file FPGATrackSimTrackStream.h.

45 { m_nfits_maj_SCT += v; }

◆ addNFitsMajorityI()

void FPGATrackSimTrackStream::addNFitsMajorityI ( int  v)
inline

Definition at line 70 of file FPGATrackSimTrackStream.h.

70 { m_nfits_majI += v; }

◆ addNFitsMajorityI_pix()

void FPGATrackSimTrackStream::addNFitsMajorityI_pix ( int  v)
inline

Definition at line 71 of file FPGATrackSimTrackStream.h.

71 { m_nfits_majI_pix += v; }

◆ addNFitsMajorityI_SCT()

void FPGATrackSimTrackStream::addNFitsMajorityI_SCT ( int  v)
inline

Definition at line 72 of file FPGATrackSimTrackStream.h.

72 { m_nfits_majI_SCT += v; }

◆ addNFitsRecovery()

void FPGATrackSimTrackStream::addNFitsRecovery ( int  v)
inline

Definition at line 46 of file FPGATrackSimTrackStream.h.

46 { m_nfits_rec += v; }

◆ addNFitsRecoveryI()

void FPGATrackSimTrackStream::addNFitsRecoveryI ( int  v)
inline

Definition at line 73 of file FPGATrackSimTrackStream.h.

73 { m_nfits_recI += v; }

◆ addTrack()

void FPGATrackSimTrackStream::addTrack ( const FPGATrackSimTrack track)

add a track in the final list

Definition at line 130 of file FPGATrackSimTrackStream.cxx.

131 {
132  new ((*m_tracks)[m_ntracks++]) FPGATrackSimTrack(track);
133  m_trackIdMap[std::make_pair(track.getTrackID(), track.getBankID())] = m_ntracks - 1;
134 }

◆ addTrackI()

void FPGATrackSimTrackStream::addTrackI ( const FPGATrackSimTrack track)

add a track in the final list

Definition at line 161 of file FPGATrackSimTrackStream.cxx.

162 {
163  new ((*m_tracksI)[m_ntracksI++]) FPGATrackSimTrack(track);
164 }

◆ buildTrackMap()

void FPGATrackSimTrackStream::buildTrackMap ( )

Definition at line 237 of file FPGATrackSimTrackStream.cxx.

237  {
238  m_trackIdMap.clear();
239  for (int itrack = 0;itrack != m_ntracks;++itrack) { // loop over the tracks
240  FPGATrackSimTrack* cur_track = getTrack(itrack);
241 
242  if (!cur_track) continue; // a null pointer is possible
243  m_trackIdMap[std::make_pair(cur_track->getTrackID(), cur_track->getBankID())] = itrack;
244  }
245 
246 }

◆ clear()

void FPGATrackSimTrackStream::clear ( )

reset the list of the tracks and the statistical informatino collected for this event

Definition at line 177 of file FPGATrackSimTrackStream.cxx.

178 {
179  m_run_number = 0ul;
180  m_event_number = 0ul;
181 
182  m_tracks->Delete();
183  m_ntracks = 0;
184  m_tracksI->Delete();
185  m_ntracksI = 0;
186 
187  m_ncombs = 0;
188  m_nfits = 0;
189  m_nconn = 0;
191  m_nfits_maj = 0;
192  m_nfits_maj_pix = 0;
193  m_nfits_maj_SCT = 0;
194  m_nfits_bad = 0;
195  m_nfits_badmaj = 0;
196  m_nfits_rec = 0;
197  m_nfits_addrec = 0;
198  m_nfits_rej = 0;
199  m_nfits_rejmaj = 0;
200 
201  m_ncombsI = 0;
202  m_nfitsI = 0;
203  m_nfits_majI = 0;
204  m_nfits_majI_pix = 0;
205  m_nfits_majI_SCT = 0;
206  m_nfits_badI = 0;
207  m_nfits_badmajI = 0;
208  m_nfits_recI = 0;
209  m_nfits_addrecI = 0;
210  m_nfits_rejI = 0;
211  m_nfits_rejmajI = 0;
212 
213  m_trackIdMap.clear();
214 }

◆ eventNumber()

const unsigned long& FPGATrackSimTrackStream::eventNumber ( ) const
inline

Definition at line 24 of file FPGATrackSimTrackStream.h.

24 { return m_event_number; }

◆ findTrack()

int FPGATrackSimTrackStream::findTrack ( int  trackid,
int  bankid 
)

this method, passing a track ID and a bank ID, return the ID of the corresponding track.

If it doesn't exist return -1

Definition at line 147 of file FPGATrackSimTrackStream.cxx.

148 {
149  if (!m_trackIdMap.size())
150  buildTrackMap();
151 
152  std::map< std::pair<int, int>, int >::iterator it = m_trackIdMap.find(std::make_pair(trackid, bankid));
153  if (it != m_trackIdMap.end())
154  return it->second;
155  else
156  return -1;
157 }

◆ getNAddFitsRecovery()

int FPGATrackSimTrackStream::getNAddFitsRecovery ( ) const
inline

Definition at line 61 of file FPGATrackSimTrackStream.h.

61 { return m_nfits_addrec; }

◆ getNAddFitsRecoveryI()

int FPGATrackSimTrackStream::getNAddFitsRecoveryI ( ) const
inline

Definition at line 86 of file FPGATrackSimTrackStream.h.

86 { return m_nfits_addrecI; }

◆ getNCombs()

int FPGATrackSimTrackStream::getNCombs ( ) const
inline

Definition at line 55 of file FPGATrackSimTrackStream.h.

55 { return m_ncombs; }

◆ getNCombsI()

int FPGATrackSimTrackStream::getNCombsI ( ) const
inline

Definition at line 80 of file FPGATrackSimTrackStream.h.

80 { return m_ncombsI; }

◆ getNConn()

int FPGATrackSimTrackStream::getNConn ( ) const
inline

Definition at line 38 of file FPGATrackSimTrackStream.h.

38 { return m_nconn; }

◆ getNConnections()

int FPGATrackSimTrackStream::getNConnections ( ) const
inline

Definition at line 66 of file FPGATrackSimTrackStream.h.

66 { return m_nconn; }

◆ getNExtrapolatedTracks()

int FPGATrackSimTrackStream::getNExtrapolatedTracks ( ) const
inline

Definition at line 39 of file FPGATrackSimTrackStream.h.

39 { return m_nextrapolatedTracks; }

◆ getNFits()

int FPGATrackSimTrackStream::getNFits ( ) const
inline

Definition at line 56 of file FPGATrackSimTrackStream.h.

56 { return m_nfits; }

◆ getNFitsBad()

int FPGATrackSimTrackStream::getNFitsBad ( ) const
inline

Definition at line 62 of file FPGATrackSimTrackStream.h.

62 { return m_nfits_bad; }

◆ getNFitsBadI()

int FPGATrackSimTrackStream::getNFitsBadI ( ) const
inline

Definition at line 87 of file FPGATrackSimTrackStream.h.

87 { return m_nfits_badI; }

◆ getNFitsBadMajority()

int FPGATrackSimTrackStream::getNFitsBadMajority ( ) const
inline

Definition at line 64 of file FPGATrackSimTrackStream.h.

64 { return m_nfits_badmaj; }

◆ getNFitsBadMajorityI()

int FPGATrackSimTrackStream::getNFitsBadMajorityI ( ) const
inline

Definition at line 89 of file FPGATrackSimTrackStream.h.

89 { return m_nfits_badmajI; }

◆ getNFitsHWRejected()

int FPGATrackSimTrackStream::getNFitsHWRejected ( ) const
inline

Definition at line 63 of file FPGATrackSimTrackStream.h.

63 { return m_nfits_rej; }

◆ getNFitsHWRejectedI()

int FPGATrackSimTrackStream::getNFitsHWRejectedI ( ) const
inline

Definition at line 88 of file FPGATrackSimTrackStream.h.

88 { return m_nfits_rejI; }

◆ getNFitsHWRejectedMajority()

int FPGATrackSimTrackStream::getNFitsHWRejectedMajority ( ) const
inline

Definition at line 65 of file FPGATrackSimTrackStream.h.

65 { return m_nfits_rejmaj; }

◆ getNFitsHWRejectedMajorityI()

int FPGATrackSimTrackStream::getNFitsHWRejectedMajorityI ( ) const
inline

Definition at line 90 of file FPGATrackSimTrackStream.h.

90 { return m_nfits_rejmajI; }

◆ getNFitsI()

int FPGATrackSimTrackStream::getNFitsI ( ) const
inline

Definition at line 81 of file FPGATrackSimTrackStream.h.

81 { return m_nfitsI; }

◆ getNFitsMajority()

int FPGATrackSimTrackStream::getNFitsMajority ( ) const
inline

Definition at line 57 of file FPGATrackSimTrackStream.h.

57 { return m_nfits_maj; }

◆ getNFitsMajority_pix()

int FPGATrackSimTrackStream::getNFitsMajority_pix ( ) const
inline

Definition at line 58 of file FPGATrackSimTrackStream.h.

58 { return m_nfits_maj_pix; }

◆ getNFitsMajority_SCT()

int FPGATrackSimTrackStream::getNFitsMajority_SCT ( ) const
inline

Definition at line 59 of file FPGATrackSimTrackStream.h.

59 { return m_nfits_maj_SCT; }

◆ getNFitsMajorityI()

int FPGATrackSimTrackStream::getNFitsMajorityI ( ) const
inline

Definition at line 82 of file FPGATrackSimTrackStream.h.

82 { return m_nfits_majI; }

◆ getNFitsMajorityI_pix()

int FPGATrackSimTrackStream::getNFitsMajorityI_pix ( ) const
inline

Definition at line 83 of file FPGATrackSimTrackStream.h.

83 { return m_nfits_majI_pix; }

◆ getNFitsMajorityI_SCT()

int FPGATrackSimTrackStream::getNFitsMajorityI_SCT ( ) const
inline

Definition at line 84 of file FPGATrackSimTrackStream.h.

84 { return m_nfits_majI_SCT; }

◆ getNFitsRecovery()

int FPGATrackSimTrackStream::getNFitsRecovery ( ) const
inline

Definition at line 60 of file FPGATrackSimTrackStream.h.

60 { return m_nfits_rec; }

◆ getNFitsRecoveryI()

int FPGATrackSimTrackStream::getNFitsRecoveryI ( ) const
inline

Definition at line 85 of file FPGATrackSimTrackStream.h.

85 { return m_nfits_recI; }

◆ getNTracks()

int FPGATrackSimTrackStream::getNTracks ( ) const
inline

Definition at line 31 of file FPGATrackSimTrackStream.h.

31 { return m_ntracks; }

◆ getNTracksI()

int FPGATrackSimTrackStream::getNTracksI ( ) const
inline

Definition at line 36 of file FPGATrackSimTrackStream.h.

36 { return m_ntracksI; }

◆ getTrack()

FPGATrackSimTrack * FPGATrackSimTrackStream::getTrack ( int  ipos) const

return a given track, identified by its position in the list

Definition at line 139 of file FPGATrackSimTrackStream.cxx.

140 {
141  if (ipos >= m_ntracks) return 0;
142  else return (FPGATrackSimTrack*)m_tracks->At(ipos);
143 }

◆ getTrackI()

FPGATrackSimTrack * FPGATrackSimTrackStream::getTrackI ( int  ipos) const

return a given track, identified by its position in the list

Definition at line 169 of file FPGATrackSimTrackStream.cxx.

170 {
171  if (ipos >= m_ntracksI) return 0;
172  else return (FPGATrackSimTrack*)m_tracksI->At(ipos);
173 }

◆ operator=()

FPGATrackSimTrackStream & FPGATrackSimTrackStream::operator= ( const FPGATrackSimTrackStream s)

Definition at line 28 of file FPGATrackSimTrackStream.cxx.

29 {
30  if (this != &in) {
31  m_run_number = in.m_run_number;
32  m_event_number = in.m_event_number;
33  m_ntracks = in.m_ntracks;
34  m_ncombs = in.m_ncombs;
35  m_nfits = in.m_nfits;
36  m_nfits_maj = in.m_nfits_maj;
37  m_nfits_maj_SCT = in.m_nfits_maj_SCT;
38  m_nfits_maj_pix = in.m_nfits_maj_pix;
39  m_nfits_rec = in.m_nfits_rec;
40  m_nfits_addrec = in.m_nfits_addrec;
41  m_nfits_bad = in.m_nfits_bad;
42  m_nfits_rej = in.m_nfits_rej;
43  m_nfits_badmaj = in.m_nfits_badmaj;
44  m_nfits_rejmaj = in.m_nfits_rejmaj;
45  m_ntracksI = in.m_ntracksI;
46  m_ncombsI = in.m_ncombsI;
47  m_nfitsI = in.m_nfitsI;
48  m_nfits_majI = in.m_nfits_majI;
49  m_nfits_majI_SCT = in.m_nfits_majI_SCT;
50  m_nfits_majI_pix = in.m_nfits_majI_pix;
51  m_nfits_recI = in.m_nfits_recI;
52  m_nfits_addrecI = in.m_nfits_addrecI;
53  m_nfits_badI = in.m_nfits_badI;
54  m_nfits_rejI = in.m_nfits_rejI;
55  m_nfits_badmajI = in.m_nfits_badmajI;
56  m_nfits_rejmajI = in.m_nfits_rejmajI;
57  m_nconn = in.m_nconn;
58  m_nextrapolatedTracks = in.m_nextrapolatedTracks;
59  m_tracks = new TClonesArray("FPGATrackSimTrack", 1000);
60  m_tracksI = new TClonesArray("FPGATrackSimTrack", 1000);
61  for (int i = 0; i < in.m_ntracks; i++) {
62  FPGATrackSimTrack* trackP = in.getTrack(i);
63  const FPGATrackSimTrack track = *trackP;
64  addTrack(track);
65  }
66  for (int i = 0; i < in.m_ntracksI; i++) {
67  FPGATrackSimTrack* trackP = in.getTrackI(i);
68  const FPGATrackSimTrack track = *trackP;
70  }
71  }
72 
73  return *this;
74 }

◆ Print()

int FPGATrackSimTrackStream::Print ( int  level = 0,
std::ostream &  out = std::cout 
)

print a debug message summaryzing the information for the tracks found in one event for a given bank.

The level variable is used to choose the debug level of the output.

Definition at line 222 of file FPGATrackSimTrackStream.cxx.

223 {
224  int printed(0);
225  out << "*** Run/Event " << m_run_number << "/" << m_event_number << " ***" << endl;
226  out << "*** Tracks (lvl=" << level << "): ***" << endl;
227  out << "*** mntracks: " << m_ntracks << endl;
228  // for (int it=0;it<m_ntracks;++it) {
229  // FPGATrackSimTrack *tmpt = getTrack(it);
230  // }
231  if (printed == 0) out << " [ NO TRACKS ] " << endl;
232  out << endl;
233 
234  return printed;
235 }

◆ runNumber()

const unsigned long& FPGATrackSimTrackStream::runNumber ( ) const
inline

Definition at line 23 of file FPGATrackSimTrackStream.h.

23 { return m_run_number; }

◆ setEventNumber()

void FPGATrackSimTrackStream::setEventNumber ( const unsigned long &  val)
inline

Definition at line 26 of file FPGATrackSimTrackStream.h.

26 { m_event_number = val; }

◆ setRunNumber()

void FPGATrackSimTrackStream::setRunNumber ( const unsigned long &  val)
inline

Definition at line 25 of file FPGATrackSimTrackStream.h.

25 { m_run_number = val; }

Member Data Documentation

◆ m_event_number

unsigned long FPGATrackSimTrackStream::m_event_number
private

Definition at line 98 of file FPGATrackSimTrackStream.h.

◆ m_ncombs

int FPGATrackSimTrackStream::m_ncombs
private

Definition at line 103 of file FPGATrackSimTrackStream.h.

◆ m_ncombsI

int FPGATrackSimTrackStream::m_ncombsI
private

Definition at line 123 of file FPGATrackSimTrackStream.h.

◆ m_nconn

int FPGATrackSimTrackStream::m_nconn
private

Definition at line 134 of file FPGATrackSimTrackStream.h.

◆ m_nextrapolatedTracks

int FPGATrackSimTrackStream::m_nextrapolatedTracks
private

Definition at line 135 of file FPGATrackSimTrackStream.h.

◆ m_nfits

int FPGATrackSimTrackStream::m_nfits
private

Definition at line 104 of file FPGATrackSimTrackStream.h.

◆ m_nfits_addrec

int FPGATrackSimTrackStream::m_nfits_addrec
private

Definition at line 109 of file FPGATrackSimTrackStream.h.

◆ m_nfits_addrecI

int FPGATrackSimTrackStream::m_nfits_addrecI
private

Definition at line 129 of file FPGATrackSimTrackStream.h.

◆ m_nfits_bad

int FPGATrackSimTrackStream::m_nfits_bad
private

Definition at line 110 of file FPGATrackSimTrackStream.h.

◆ m_nfits_badI

int FPGATrackSimTrackStream::m_nfits_badI
private

Definition at line 130 of file FPGATrackSimTrackStream.h.

◆ m_nfits_badmaj

int FPGATrackSimTrackStream::m_nfits_badmaj
private

Definition at line 112 of file FPGATrackSimTrackStream.h.

◆ m_nfits_badmajI

int FPGATrackSimTrackStream::m_nfits_badmajI
private

Definition at line 132 of file FPGATrackSimTrackStream.h.

◆ m_nfits_maj

int FPGATrackSimTrackStream::m_nfits_maj
private

Definition at line 105 of file FPGATrackSimTrackStream.h.

◆ m_nfits_maj_pix

int FPGATrackSimTrackStream::m_nfits_maj_pix
private

Definition at line 107 of file FPGATrackSimTrackStream.h.

◆ m_nfits_maj_SCT

int FPGATrackSimTrackStream::m_nfits_maj_SCT
private

Definition at line 106 of file FPGATrackSimTrackStream.h.

◆ m_nfits_majI

int FPGATrackSimTrackStream::m_nfits_majI
private

Definition at line 125 of file FPGATrackSimTrackStream.h.

◆ m_nfits_majI_pix

int FPGATrackSimTrackStream::m_nfits_majI_pix
private

Definition at line 127 of file FPGATrackSimTrackStream.h.

◆ m_nfits_majI_SCT

int FPGATrackSimTrackStream::m_nfits_majI_SCT
private

Definition at line 126 of file FPGATrackSimTrackStream.h.

◆ m_nfits_rec

int FPGATrackSimTrackStream::m_nfits_rec
private

Definition at line 108 of file FPGATrackSimTrackStream.h.

◆ m_nfits_recI

int FPGATrackSimTrackStream::m_nfits_recI
private

Definition at line 128 of file FPGATrackSimTrackStream.h.

◆ m_nfits_rej

int FPGATrackSimTrackStream::m_nfits_rej
private

Definition at line 111 of file FPGATrackSimTrackStream.h.

◆ m_nfits_rejI

int FPGATrackSimTrackStream::m_nfits_rejI
private

Definition at line 131 of file FPGATrackSimTrackStream.h.

◆ m_nfits_rejmaj

int FPGATrackSimTrackStream::m_nfits_rejmaj
private

Definition at line 113 of file FPGATrackSimTrackStream.h.

◆ m_nfits_rejmajI

int FPGATrackSimTrackStream::m_nfits_rejmajI
private

Definition at line 133 of file FPGATrackSimTrackStream.h.

◆ m_nfitsI

int FPGATrackSimTrackStream::m_nfitsI
private

Definition at line 124 of file FPGATrackSimTrackStream.h.

◆ m_ntracks

int FPGATrackSimTrackStream::m_ntracks
private

Definition at line 100 of file FPGATrackSimTrackStream.h.

◆ m_ntracksI

int FPGATrackSimTrackStream::m_ntracksI
private

Definition at line 117 of file FPGATrackSimTrackStream.h.

◆ m_run_number

unsigned long FPGATrackSimTrackStream::m_run_number
private

Definition at line 97 of file FPGATrackSimTrackStream.h.

◆ m_trackIdMap

std::map< std::pair<int, int>, int > FPGATrackSimTrackStream::m_trackIdMap
private

Definition at line 137 of file FPGATrackSimTrackStream.h.

◆ m_tracks

TClonesArray* FPGATrackSimTrackStream::m_tracks
private

Definition at line 101 of file FPGATrackSimTrackStream.h.

◆ m_tracksI

TClonesArray* FPGATrackSimTrackStream::m_tracksI
private

Definition at line 119 of file FPGATrackSimTrackStream.h.


The documentation for this class was generated from the following files:
FPGATrackSimTrackStream::m_nfits_maj_SCT
int m_nfits_maj_SCT
Definition: FPGATrackSimTrackStream.h:106
FPGATrackSimTrackStream::getTrackI
FPGATrackSimTrack * getTrackI(int) const
return a given track, identified by its position in the list
Definition: FPGATrackSimTrackStream.cxx:169
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
FPGATrackSimTrackStream::m_nfits_maj
int m_nfits_maj
Definition: FPGATrackSimTrackStream.h:105
FPGATrackSimTrackStream::m_nfits_majI
int m_nfits_majI
Definition: FPGATrackSimTrackStream.h:125
FPGATrackSimTrackStream::m_nconn
int m_nconn
Definition: FPGATrackSimTrackStream.h:134
FPGATrackSimTrackStream::m_nextrapolatedTracks
int m_nextrapolatedTracks
Definition: FPGATrackSimTrackStream.h:135
FPGATrackSimTrack::getTrackID
int getTrackID() const
Definition: FPGATrackSimTrack.h:33
FPGATrackSimTrackStream::m_nfits_majI_SCT
int m_nfits_majI_SCT
Definition: FPGATrackSimTrackStream.h:126
FPGATrackSimTrack
Definition: FPGATrackSimTrack.h:18
FPGATrackSimTrackStream::m_nfits_rejI
int m_nfits_rejI
Definition: FPGATrackSimTrackStream.h:131
skel.it
it
Definition: skel.GENtoEVGEN.py:396
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
FPGATrackSimTrackStream::m_nfits_rejmaj
int m_nfits_rejmaj
Definition: FPGATrackSimTrackStream.h:113
FPGATrackSimTrackStream::m_ntracks
int m_ntracks
Definition: FPGATrackSimTrackStream.h:100
FPGATrackSimTrackStream::m_nfits_addrecI
int m_nfits_addrecI
Definition: FPGATrackSimTrackStream.h:129
FPGATrackSimTrackStream::m_nfits_badI
int m_nfits_badI
Definition: FPGATrackSimTrackStream.h:130
FPGATrackSimTrackStream::m_event_number
unsigned long m_event_number
Definition: FPGATrackSimTrackStream.h:98
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
FPGATrackSimTrackStream::m_nfits_badmaj
int m_nfits_badmaj
Definition: FPGATrackSimTrackStream.h:112
FPGATrackSimTrackStream::m_nfits_badmajI
int m_nfits_badmajI
Definition: FPGATrackSimTrackStream.h:132
FPGATrackSimTrackStream::m_trackIdMap
std::map< std::pair< int, int >, int > m_trackIdMap
Definition: FPGATrackSimTrackStream.h:137
lumiFormat.i
int i
Definition: lumiFormat.py:85
FPGATrackSimTrackStream::m_nfitsI
int m_nfitsI
Definition: FPGATrackSimTrackStream.h:124
FPGATrackSimTrackStream::m_nfits
int m_nfits
Definition: FPGATrackSimTrackStream.h:104
FPGATrackSimTrackStream::addTrackI
void addTrackI(const FPGATrackSimTrack &)
add a track in the final list
Definition: FPGATrackSimTrackStream.cxx:161
FPGATrackSimTrackStream::addTrack
void addTrack(const FPGATrackSimTrack &)
add a track in the final list
Definition: FPGATrackSimTrackStream.cxx:130
FPGATrackSimTrackStream::m_nfits_rej
int m_nfits_rej
Definition: FPGATrackSimTrackStream.h:111
FPGATrackSimTrackStream::m_run_number
unsigned long m_run_number
Definition: FPGATrackSimTrackStream.h:97
detail::ul
unsigned long ul
Definition: PrimitiveHelpers.h:45
FPGATrackSimTrackStream::m_nfits_maj_pix
int m_nfits_maj_pix
Definition: FPGATrackSimTrackStream.h:107
FPGATrackSimTrackStream::m_ncombs
int m_ncombs
Definition: FPGATrackSimTrackStream.h:103
FPGATrackSimTrackStream::m_nfits_bad
int m_nfits_bad
Definition: FPGATrackSimTrackStream.h:110
python.PyAthena.v
v
Definition: PyAthena.py:154
FPGATrackSimTrackStream::m_nfits_majI_pix
int m_nfits_majI_pix
Definition: FPGATrackSimTrackStream.h:127
FPGATrackSimTrackStream::getTrack
FPGATrackSimTrack * getTrack(int) const
return a given track, identified by its position in the list
Definition: FPGATrackSimTrackStream.cxx:139
FPGATrackSimTrackStream::m_nfits_rec
int m_nfits_rec
Definition: FPGATrackSimTrackStream.h:108
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
FPGATrackSimTrackStream::buildTrackMap
void buildTrackMap()
Definition: FPGATrackSimTrackStream.cxx:237
FPGATrackSimTrackStream::m_tracks
TClonesArray * m_tracks
Definition: FPGATrackSimTrackStream.h:101
FPGATrackSimTrackStream::m_ntracksI
int m_ntracksI
Definition: FPGATrackSimTrackStream.h:117
FPGATrackSimTrackStream::m_nfits_addrec
int m_nfits_addrec
Definition: FPGATrackSimTrackStream.h:109
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
FPGATrackSimTrackStream::m_ncombsI
int m_ncombsI
Definition: FPGATrackSimTrackStream.h:123
FPGATrackSimTrackStream::m_tracksI
TClonesArray * m_tracksI
Definition: FPGATrackSimTrackStream.h:119
FPGATrackSimTrackStream::m_nfits_rejmajI
int m_nfits_rejmajI
Definition: FPGATrackSimTrackStream.h:133
FPGATrackSimTrack::getBankID
int getBankID() const
Definition: FPGATrackSimTrack.h:28
FPGATrackSimTrackStream::m_nfits_recI
int m_nfits_recI
Definition: FPGATrackSimTrackStream.h:128