OpenWalnut
1.5.0dev
|
Holds the indexes of the columns and is able to update them. More...
#include <WConverterIndexes.h>
Public Types | |
typedef std::shared_ptr< WConverterIndexes > | SPtr |
A shared_ptr to this class. More... | |
Public Member Functions | |
WConverterIndexes () | |
Empty constructor for class creation. More... | |
void | update (WProtonData::SPtr protonData) |
Updates the indexes based on the data given. More... | |
int | getParentID () |
Gets the parentID index as integer. More... | |
int | getPosX () |
Gets the posX index as integer. More... | |
int | getPosY () |
Gets the posY index as integer. More... | |
int | getPosZ () |
Gets the posZ index as integer. More... | |
int | getEdep () |
Gets the edep index as integer. More... | |
int | getPDGEncoding () |
Gets the PDGEncoding index as integer. More... | |
int | getEventID () |
Gets the eventID index as integer. More... | |
Private Attributes | |
int | m_parentID = -1 |
The parentID index. More... | |
int | m_posX = -1 |
The posX index. More... | |
int | m_posY = -1 |
The posY index. More... | |
int | m_posZ = -1 |
The posZ index. More... | |
int | m_edep = -1 |
The edep index. More... | |
int | m_PDGEncoding = -1 |
The PDGEncoding index. More... | |
int | m_eventID = -1 |
The eventID index. More... | |
Holds the indexes of the columns and is able to update them.
Definition at line 37 of file WConverterIndexes.h.
typedef std::shared_ptr< WConverterIndexes > WConverterIndexes::SPtr |
A shared_ptr to this class.
Definition at line 43 of file WConverterIndexes.h.
WConverterIndexes::WConverterIndexes | ( | ) |
Empty constructor for class creation.
Definition at line 28 of file WConverterIndexes.cpp.
int WConverterIndexes::getEdep | ( | ) |
Gets the edep index as integer.
Definition at line 63 of file WConverterIndexes.cpp.
References m_edep.
int WConverterIndexes::getEventID | ( | ) |
Gets the eventID index as integer.
Definition at line 73 of file WConverterIndexes.cpp.
References m_eventID.
int WConverterIndexes::getParentID | ( | ) |
Gets the parentID index as integer.
Definition at line 43 of file WConverterIndexes.cpp.
References m_parentID.
int WConverterIndexes::getPDGEncoding | ( | ) |
Gets the PDGEncoding index as integer.
Definition at line 68 of file WConverterIndexes.cpp.
References m_PDGEncoding.
int WConverterIndexes::getPosX | ( | ) |
Gets the posX index as integer.
Definition at line 48 of file WConverterIndexes.cpp.
References m_posX.
int WConverterIndexes::getPosY | ( | ) |
Gets the posY index as integer.
Definition at line 53 of file WConverterIndexes.cpp.
References m_posY.
int WConverterIndexes::getPosZ | ( | ) |
Gets the posZ index as integer.
Definition at line 58 of file WConverterIndexes.cpp.
References m_posZ.
void WConverterIndexes::update | ( | WProtonData::SPtr | protonData | ) |
Updates the indexes based on the data given.
protonData | The data which contains the columns. |
Definition at line 32 of file WConverterIndexes.cpp.
References m_edep, m_eventID, m_parentID, m_PDGEncoding, m_posX, m_posY, and m_posZ.
|
private |
The edep index.
Definition at line 108 of file WConverterIndexes.h.
|
private |
The eventID index.
Definition at line 112 of file WConverterIndexes.h.
Referenced by getEventID(), and update().
|
private |
The parentID index.
Definition at line 100 of file WConverterIndexes.h.
Referenced by getParentID(), and update().
|
private |
The PDGEncoding index.
Definition at line 110 of file WConverterIndexes.h.
Referenced by getPDGEncoding(), and update().
|
private |
The posX index.
Definition at line 102 of file WConverterIndexes.h.
|
private |
The posY index.
Definition at line 104 of file WConverterIndexes.h.
|
private |
The posZ index.
Definition at line 106 of file WConverterIndexes.h.