ATLAS Offline Software
Loading...
Searching...
No Matches
AFP_TDSimHitCollectionBuilder Class Reference

#include <AFP_HitCollectionBuilders.h>

Inheritance diagram for AFP_TDSimHitCollectionBuilder:
Collaboration diagram for AFP_TDSimHitCollectionBuilder:

Public Types

typedef AFP_TDSimHit base_value_type
typedef std::vector< AFP_TDSimHitCONT
typedef CONT::value_type value_type
typedef CONT::pointer pointer
typedef CONT::const_pointer const_pointer
typedef CONT::iterator iterator
typedef CONT::const_iterator const_iterator
typedef CONT::reference reference
typedef CONT::const_reference const_reference
typedef CONT::size_type size_type
typedef CONT::difference_type difference_type

Public Member Functions

bool HasReachedLimit (const int stationID, const int quarticID, const int detectorID) const
void CountHit (const int stationID, const int quarticID, const int detectorID)
void CountHit ()
int NumberOfHits () const
void Clear ()
void Insert (const AFP_TDSimHit &h)
void Insert (AFP_TDSimHit &&h)
void Emplace (Args &&... args)
int Size () const
const std::string & Name () const
void setName (const std::string &name)
const std::vector< AFP_TDSimHit > & getVector () const
bool empty () const
const_iterator begin () const
iterator begin ()
const_iterator end () const
iterator end ()
size_type size () const
void push_back (const AFP_TDSimHit &t)
AFP_TDSimHit At (unsigned int pos) const
const AFP_TDSimHit operator[] (size_type n) const
void clear ()
void reserve (size_type n)
void resize (size_type n)

Static Public Member Functions

static const std::type_info * initHelper ()

Static Public Attributes

static constexpr int TDMaxCnt = 4000
static const std::type_info *const s_info

Protected Attributes

std::string m_name
std::vector< AFP_TDSimHitm_hitvector

Static Private Member Functions

static int CounterIndex (const int stationID, const int quarticID)

Private Attributes

int m_numberOfHits {}
std::array< std::array< int, 32 >, 4 > m_hitsPerBar {}

Detailed Description

Definition at line 13 of file AFP_HitCollectionBuilders.h.

Member Typedef Documentation

◆ base_value_type

typedef AFP_TDSimHit AtlasHitsVector< AFP_TDSimHit >::base_value_type
inherited

Definition at line 36 of file AtlasHitsVector.h.

◆ const_iterator

typedef CONT::const_iterator AtlasHitsVector< AFP_TDSimHit >::const_iterator
inherited

Definition at line 42 of file AtlasHitsVector.h.

◆ const_pointer

typedef CONT::const_pointer AtlasHitsVector< AFP_TDSimHit >::const_pointer
inherited

Definition at line 40 of file AtlasHitsVector.h.

◆ const_reference

typedef CONT::const_reference AtlasHitsVector< AFP_TDSimHit >::const_reference
inherited

Definition at line 44 of file AtlasHitsVector.h.

◆ CONT

typedef std::vector<AFP_TDSimHit> AtlasHitsVector< AFP_TDSimHit >::CONT
inherited

Definition at line 37 of file AtlasHitsVector.h.

◆ difference_type

typedef CONT::difference_type AtlasHitsVector< AFP_TDSimHit >::difference_type
inherited

Definition at line 46 of file AtlasHitsVector.h.

◆ iterator

typedef CONT::iterator AtlasHitsVector< AFP_TDSimHit >::iterator
inherited

Definition at line 41 of file AtlasHitsVector.h.

◆ pointer

typedef CONT::pointer AtlasHitsVector< AFP_TDSimHit >::pointer
inherited

Definition at line 39 of file AtlasHitsVector.h.

◆ reference

typedef CONT::reference AtlasHitsVector< AFP_TDSimHit >::reference
inherited

Definition at line 43 of file AtlasHitsVector.h.

◆ size_type

typedef CONT::size_type AtlasHitsVector< AFP_TDSimHit >::size_type
inherited

Definition at line 45 of file AtlasHitsVector.h.

◆ value_type

typedef CONT::value_type AtlasHitsVector< AFP_TDSimHit >::value_type
inherited

Definition at line 38 of file AtlasHitsVector.h.

Member Function Documentation

◆ At()

AFP_TDSimHit AtlasHitsVector< AFP_TDSimHit >::At ( unsigned int pos) const
inlineinherited

Definition at line 146 of file AtlasHitsVector.h.

146 {
147 return m_hitvector.at(pos);
148 }
std::vector< AFP_TDSimHit > m_hitvector

◆ begin() [1/2]

iterator AtlasHitsVector< AFP_TDSimHit >::begin ( )
inlineinherited

Definition at line 136 of file AtlasHitsVector.h.

137 { return m_hitvector.begin(); }

◆ begin() [2/2]

const_iterator AtlasHitsVector< AFP_TDSimHit >::begin ( ) const
inlineinherited

Definition at line 130 of file AtlasHitsVector.h.

131 { return m_hitvector.begin(); }

◆ Clear()

void AtlasHitsVector< AFP_TDSimHit >::Clear ( )
inlineinherited

Definition at line 66 of file AtlasHitsVector.h.

67 {
68 m_hitvector.clear();
70 }

◆ clear()

void AtlasHitsVector< AFP_TDSimHit >::clear ( )
inlineinherited

Definition at line 152 of file AtlasHitsVector.h.

152 {
153 m_hitvector.clear();
155 }

◆ CounterIndex()

int AFP_TDSimHitCollectionBuilder::CounterIndex ( const int stationID,
const int quarticID )
inlinestaticprivate

Definition at line 41 of file AFP_HitCollectionBuilders.h.

42 {
43 if (stationID == 0 && quarticID == 0) return 0;
44 if (stationID == 0 && quarticID == 1) return 1;
45 if (stationID == 3 && quarticID == 0) return 2;
46 if (stationID == 3 && quarticID == 1) return 3;
47 return -1;
48 }

◆ CountHit() [1/2]

void AFP_TDSimHitCollectionBuilder::CountHit ( )
inline

◆ CountHit() [2/2]

void AFP_TDSimHitCollectionBuilder::CountHit ( const int stationID,
const int quarticID,
const int detectorID )
inline

Definition at line 27 of file AFP_HitCollectionBuilders.h.

28 {
30 const int index = CounterIndex(stationID, quarticID);
31 if (index >= 0 && detectorID >= 0 && detectorID < static_cast<int>(m_hitsPerBar[index].size())) {
32 ++m_hitsPerBar[index][detectorID];
33 }
34 }
std::array< std::array< int, 32 >, 4 > m_hitsPerBar
static int CounterIndex(const int stationID, const int quarticID)
str index
Definition DeMoScan.py:362

◆ Emplace()

void AtlasHitsVector< AFP_TDSimHit >::Emplace ( Args &&... args)
inlineinherited

Definition at line 80 of file AtlasHitsVector.h.

81 {
82 m_hitvector.emplace_back( std::forward<Args>(args)... );
83 }

◆ empty()

bool AtlasHitsVector< AFP_TDSimHit >::empty ( ) const
inlineinherited

Definition at line 128 of file AtlasHitsVector.h.

128{ return m_hitvector.empty(); }

◆ end() [1/2]

iterator AtlasHitsVector< AFP_TDSimHit >::end ( )
inlineinherited

Definition at line 139 of file AtlasHitsVector.h.

140 { return m_hitvector.end(); }

◆ end() [2/2]

const_iterator AtlasHitsVector< AFP_TDSimHit >::end ( ) const
inlineinherited

Definition at line 133 of file AtlasHitsVector.h.

134 { return m_hitvector.end(); }

◆ getVector()

const std::vector< AFP_TDSimHit > & AtlasHitsVector< AFP_TDSimHit >::getVector ( ) const
inlineinherited

Definition at line 126 of file AtlasHitsVector.h.

126{return m_hitvector;}

◆ HasReachedLimit()

bool AFP_TDSimHitCollectionBuilder::HasReachedLimit ( const int stationID,
const int quarticID,
const int detectorID ) const
inline

Definition at line 20 of file AFP_HitCollectionBuilders.h.

21 {
22 const int index = CounterIndex(stationID, quarticID);
23 return index >= 0 && detectorID >= 0 && detectorID < static_cast<int>(m_hitsPerBar[index].size()) &&
24 m_hitsPerBar[index][detectorID] >= TDMaxCnt;
25 }

◆ initHelper()

const std::type_info * AtlasHitsVector< AFP_TDSimHit >::initHelper ( )
inlinestaticinherited

Definition at line 170 of file AtlasHitsVector.h.

◆ Insert() [1/2]

void AtlasHitsVector< AFP_TDSimHit >::Insert ( AFP_TDSimHit && h)
inlineinherited

Definition at line 76 of file AtlasHitsVector.h.

77 {
78 m_hitvector.push_back( std::move(h) );
79 }

◆ Insert() [2/2]

void AtlasHitsVector< AFP_TDSimHit >::Insert ( const AFP_TDSimHit & h)
inlineinherited

Definition at line 72 of file AtlasHitsVector.h.

73 {
74 m_hitvector.push_back(h);
75 }

◆ Name()

const std::string & AtlasHitsVector< AFP_TDSimHit >::Name ( ) const
inlineinherited

Definition at line 121 of file AtlasHitsVector.h.

121{return m_name;}

◆ NumberOfHits()

int AFP_TDSimHitCollectionBuilder::NumberOfHits ( ) const
inline

Definition at line 38 of file AFP_HitCollectionBuilders.h.

38{ return m_numberOfHits; }

◆ operator[]()

const AFP_TDSimHit AtlasHitsVector< AFP_TDSimHit >::operator[] ( size_type n) const
inlineinherited

Definition at line 150 of file AtlasHitsVector.h.

150{return m_hitvector[n];}

◆ push_back()

void AtlasHitsVector< AFP_TDSimHit >::push_back ( const AFP_TDSimHit & t)
inlineinherited

Definition at line 144 of file AtlasHitsVector.h.

144{ m_hitvector.push_back(t);}

◆ reserve()

void AtlasHitsVector< AFP_TDSimHit >::reserve ( size_type n)
inlineinherited

Definition at line 157 of file AtlasHitsVector.h.

157{ m_hitvector.reserve (n); }

◆ resize()

void AtlasHitsVector< AFP_TDSimHit >::resize ( size_type n)
inlineinherited

Definition at line 159 of file AtlasHitsVector.h.

159{ m_hitvector.resize (n); }

◆ setName()

void AtlasHitsVector< AFP_TDSimHit >::setName ( const std::string & name)
inlineinherited

Definition at line 123 of file AtlasHitsVector.h.

123{m_name = name;}

◆ Size()

int AtlasHitsVector< AFP_TDSimHit >::Size ( ) const
inlineinherited

Definition at line 84 of file AtlasHitsVector.h.

85 {
86 return size();
87 }

◆ size()

size_type AtlasHitsVector< AFP_TDSimHit >::size ( ) const
inlineinherited

Definition at line 142 of file AtlasHitsVector.h.

142{ return m_hitvector.size(); }

Member Data Documentation

◆ m_hitsPerBar

std::array<std::array<int, 32>, 4> AFP_TDSimHitCollectionBuilder::m_hitsPerBar {}
private

Definition at line 51 of file AFP_HitCollectionBuilders.h.

51{};

◆ m_hitvector

std::vector<AFP_TDSimHit> AtlasHitsVector< AFP_TDSimHit >::m_hitvector
protectedinherited

Definition at line 164 of file AtlasHitsVector.h.

◆ m_name

std::string AtlasHitsVector< AFP_TDSimHit >::m_name
protectedinherited

Definition at line 163 of file AtlasHitsVector.h.

◆ m_numberOfHits

int AFP_TDSimHitCollectionBuilder::m_numberOfHits {}
private

Definition at line 50 of file AFP_HitCollectionBuilders.h.

50{};

◆ s_info

const std::type_info* const AtlasHitsVector< AFP_TDSimHit >::s_info
staticinherited

Definition at line 172 of file AtlasHitsVector.h.

◆ TDMaxCnt

int AFP_TDSimHitCollectionBuilder::TDMaxCnt = 4000
staticconstexpr

Definition at line 16 of file AFP_HitCollectionBuilders.h.


The documentation for this class was generated from the following file: