ATLAS Offline Software
Loading...
Searching...
No Matches
InDetSimData Class Referencefinal

#include <InDetSimData.h>

Collaboration diagram for InDetSimData:

Public Types

typedef std::pair< HepMcParticleLink, float > Deposit

Public Member Functions

 InDetSimData ()
 InDetSimData (InDetSimData &&other) noexcept=default
 InDetSimData (const std::vector< Deposit > &deposits, int simDataWord=0)
 InDetSimData (std::vector< Deposit > &&deposits, int simDataWord=0)
 InDetSimData (const InDetSimData &other)
InDetSimDataoperator= (const InDetSimData &other)
InDetSimDataoperator= (InDetSimData &&other) noexcept
 ~InDetSimData ()=default
int word () const
void deposits (std::vector< Deposit > &deposits) const
const std::vector< Deposit > & getdeposits () const

Private Attributes

int m_word
std::vector< Depositm_deposits

Friends

class PixelSimHelper
class SCT_SimHelper
class TRT_SimHelper

Detailed Description

Definition at line 41 of file InDetSimData.h.

Member Typedef Documentation

◆ Deposit

typedef std::pair<HepMcParticleLink, float> InDetSimData::Deposit

Definition at line 48 of file InDetSimData.h.

Constructor & Destructor Documentation

◆ InDetSimData() [1/5]

InDetSimData::InDetSimData ( )

Definition at line 17 of file InDetSimData.cxx.

17 :
18 m_word(0)
19{
20
21}

◆ InDetSimData() [2/5]

InDetSimData::InDetSimData ( InDetSimData && other)
defaultnoexcept

◆ InDetSimData() [3/5]

InDetSimData::InDetSimData ( const std::vector< Deposit > & deposits,
int simDataWord = 0 )

Definition at line 23 of file InDetSimData.cxx.

25 : m_word((deposits.size()<<29 & 0xe0000000) | (simDataWord & 0x1fffffff)),
27{
28}
void deposits(std::vector< Deposit > &deposits) const
std::vector< Deposit > m_deposits

◆ InDetSimData() [4/5]

InDetSimData::InDetSimData ( std::vector< Deposit > && deposits,
int simDataWord = 0 )

Definition at line 30 of file InDetSimData.cxx.

32 : m_deposits (std::move (deposits))
33{
34 m_word = (m_deposits.size()<<29 & 0xe0000000) | (simDataWord & 0x1fffffff);
35}

◆ InDetSimData() [5/5]

InDetSimData::InDetSimData ( const InDetSimData & other)
default

◆ ~InDetSimData()

InDetSimData::~InDetSimData ( )
default

Member Function Documentation

◆ deposits()

void InDetSimData::deposits ( std::vector< Deposit > & deposits) const
inline

Definition at line 79 of file InDetSimData.h.

80{
81 // I really don't understand what the point of this is ... it does EXACTLY the same as the getdeposits() method, just in a different way. EJWM
83 return;
84}

◆ getdeposits()

const std::vector< InDetSimData::Deposit > & InDetSimData::getdeposits ( ) const
inline

Definition at line 74 of file InDetSimData.h.

75{
76 return m_deposits;
77}

◆ operator=() [1/2]

InDetSimData & InDetSimData::operator= ( const InDetSimData & other)

Definition at line 42 of file InDetSimData.cxx.

43{
44 if(&other != this)
45 {
46 m_word=other.m_word;
47 m_deposits=other.m_deposits;
48 }
49 return *this;
50}

◆ operator=() [2/2]

InDetSimData & InDetSimData::operator= ( InDetSimData && other)
noexcept

Definition at line 52 of file InDetSimData.cxx.

52 {
53 if(&other != this)
54 {
55 m_word=other.m_word;
56 m_deposits=std::move(other.m_deposits);
57 }
58 return *this;
59}

◆ word()

int InDetSimData::word ( ) const
inline

Definition at line 69 of file InDetSimData.h.

70{
71 return m_word & 0x1fffffff;
72}

◆ PixelSimHelper

friend class PixelSimHelper
friend

Definition at line 43 of file InDetSimData.h.

◆ SCT_SimHelper

friend class SCT_SimHelper
friend

Definition at line 44 of file InDetSimData.h.

◆ TRT_SimHelper

friend class TRT_SimHelper
friend

Definition at line 45 of file InDetSimData.h.

Member Data Documentation

◆ m_deposits

std::vector<Deposit> InDetSimData::m_deposits
private

Definition at line 66 of file InDetSimData.h.

◆ m_word

int InDetSimData::m_word
private

Definition at line 64 of file InDetSimData.h.


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