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

#include <MuonSimData.h>

Collaboration diagram for MuonSimData:

Public Types

typedef std::pair< HepMcParticleLink, MuonMCDataDeposit
 

Public Member Functions

 MuonSimData ()
 
 MuonSimData (const std::vector< Deposit > &deposits, int simDataWord=0)
 
 MuonSimData (std::vector< Deposit > &&deposits, int simDataWord=0)
 
int word () const
 
void deposits (std::vector< Deposit > &deposits) const
 
const std::vector< Deposit > & getdeposits () const
 
void setPosition (const Amg::Vector3D &pos)
 
const Amg::Vector3D globalPosition () const
 
void setTime (const float &time)
 
float getTime () const
 

Private Attributes

int m_word
 
std::vector< Depositm_deposits
 
float m_x
 
float m_y
 
float m_z
 
float m_t
 

Detailed Description

Definition at line 62 of file MuonSimData.h.

Member Typedef Documentation

◆ Deposit

Definition at line 66 of file MuonSimData.h.

Constructor & Destructor Documentation

◆ MuonSimData() [1/3]

MuonSimData::MuonSimData ( )

Definition at line 17 of file MuonSimData.cxx.

17  :
18  m_word(0),
19  m_x(0.0),m_y(0.0),m_z(0.0),m_t(0.0)
20 {
21 
22 }

◆ MuonSimData() [2/3]

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

Definition at line 24 of file MuonSimData.cxx.

26  : m_word((deposits.size()<<29 & 0xe0000000) | (simDataWord & 0x1fffffff)),
28  m_x(0.0),m_y(0.0),m_z(0.0),m_t(0.0)
29 {
30 }

◆ MuonSimData() [3/3]

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

Definition at line 32 of file MuonSimData.cxx.

34  : m_word((deposits.size()<<29 & 0xe0000000) | (simDataWord & 0x1fffffff)),
35  m_deposits (std::move(deposits)),
36  m_x(0.0),m_y(0.0),m_z(0.0),m_t(0.0)
37 {
38 }

Member Function Documentation

◆ deposits()

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

Definition at line 99 of file MuonSimData.h.

100 {
102  return;
103 }

◆ getdeposits()

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

Definition at line 94 of file MuonSimData.h.

95 {
96  return m_deposits;
97 }

◆ getTime()

float MuonSimData::getTime ( ) const
inline

Definition at line 124 of file MuonSimData.h.

125 {
126  float time= m_t;
127  return time;
128 }

◆ globalPosition()

const Amg::Vector3D MuonSimData::globalPosition ( ) const
inline

Definition at line 113 of file MuonSimData.h.

114 {
115  Amg::Vector3D globPos(m_x, m_y, m_z);
116  return globPos;
117 }

◆ setPosition()

void MuonSimData::setPosition ( const Amg::Vector3D pos)
inline

Definition at line 106 of file MuonSimData.h.

107 {
108  m_x = pos.x();
109  m_y = pos.y();
110  m_z = pos.z();
111 }

◆ setTime()

void MuonSimData::setTime ( const float &  time)
inline

Definition at line 119 of file MuonSimData.h.

120 {
121  m_t =time;
122 }

◆ word()

int MuonSimData::word ( ) const
inline

Definition at line 89 of file MuonSimData.h.

90 {
91  return m_word & 0x1fffffff;
92 }

Member Data Documentation

◆ m_deposits

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

Definition at line 81 of file MuonSimData.h.

◆ m_t

float MuonSimData::m_t
private

Definition at line 85 of file MuonSimData.h.

◆ m_word

int MuonSimData::m_word
private

Definition at line 80 of file MuonSimData.h.

◆ m_x

float MuonSimData::m_x
private

Definition at line 82 of file MuonSimData.h.

◆ m_y

float MuonSimData::m_y
private

Definition at line 83 of file MuonSimData.h.

◆ m_z

float MuonSimData::m_z
private

Definition at line 84 of file MuonSimData.h.


The documentation for this class was generated from the following files:
MuonSimData::m_z
float m_z
Definition: MuonSimData.h:84
MuonSimData::m_word
int m_word
Definition: MuonSimData.h:80
MuonSimData::m_y
float m_y
Definition: MuonSimData.h:83
MuonSimData::deposits
void deposits(std::vector< Deposit > &deposits) const
Definition: MuonSimData.h:99
MuonSimData::m_deposits
std::vector< Deposit > m_deposits
Definition: MuonSimData.h:81
MuonSimData::m_t
float m_t
Definition: MuonSimData.h:85
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
CaloSwCorrections.time
def time(flags, cells_name, *args, **kw)
Definition: CaloSwCorrections.py:242
MuonSimData::m_x
float m_x
Definition: MuonSimData.h:82