ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
FPGATrackSimGenScanTool::BinEntry Struct Reference

#include <FPGATrackSimGenScanTool.h>

Collaboration diagram for FPGATrackSimGenScanTool::BinEntry:

Public Member Functions

 BinEntry ()
 
void reset ()
 
void addHit (StoredHit hit)
 
unsigned int lyrCnt ()
 

Public Attributes

unsigned int hitCnt = 0
 
layer_bitmask_t lyrhit = 0
 
std::vector< StoredHithits {}
 

Detailed Description

Definition at line 205 of file FPGATrackSimGenScanTool.h.

Constructor & Destructor Documentation

◆ BinEntry()

FPGATrackSimGenScanTool::BinEntry::BinEntry ( )
inline

Definition at line 207 of file FPGATrackSimGenScanTool.h.

207 {}

Member Function Documentation

◆ addHit()

void FPGATrackSimGenScanTool::BinEntry::addHit ( StoredHit  hit)

Definition at line 159 of file FPGATrackSimGenScanTool.cxx.

160 {
161  hitCnt++;
162  if (((lyrhit >> hit.layer) & 0x1) == 0x0)
163  {
164  lyrhit |= (0x1 << hit.layer);
165  }
166  hits.push_back(hit);
167 }

◆ lyrCnt()

unsigned int FPGATrackSimGenScanTool::BinEntry::lyrCnt ( )
inline

Definition at line 210 of file FPGATrackSimGenScanTool.h.

210 { return __builtin_popcount(lyrhit); };

◆ reset()

void FPGATrackSimGenScanTool::BinEntry::reset ( )

Definition at line 152 of file FPGATrackSimGenScanTool.cxx.

153 {
154  hitCnt = 0;
155  lyrhit = 0;
156  hits.clear();
157 }

Member Data Documentation

◆ hitCnt

unsigned int FPGATrackSimGenScanTool::BinEntry::hitCnt = 0

Definition at line 211 of file FPGATrackSimGenScanTool.h.

◆ hits

std::vector<StoredHit> FPGATrackSimGenScanTool::BinEntry::hits {}

Definition at line 213 of file FPGATrackSimGenScanTool.h.

◆ lyrhit

layer_bitmask_t FPGATrackSimGenScanTool::BinEntry::lyrhit = 0

Definition at line 212 of file FPGATrackSimGenScanTool.h.


The documentation for this struct was generated from the following files:
FPGATrackSimGenScanTool::BinEntry::lyrhit
layer_bitmask_t lyrhit
Definition: FPGATrackSimGenScanTool.h:212
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
FPGATrackSimGenScanTool::BinEntry::hitCnt
unsigned int hitCnt
Definition: FPGATrackSimGenScanTool.h:211
FPGATrackSimGenScanTool::BinEntry::hits
std::vector< StoredHit > hits
Definition: FPGATrackSimGenScanTool.h:213