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

#include <SimBarCode.h>

Collaboration diagram for SimBarCode:

Public Types

typedef std::pair< int, HepMcParticleLink::index_typeExtBarCode
 

Public Member Functions

 SimBarCode (int barCode, HepMcParticleLink::index_type evtIndex, int pdgCode)
 
 SimBarCode (const HepMcParticleLink &, int pdgCode)
 
 ~SimBarCode ()
 
int barCode () const
 
int actualBarCode () const
 
HepMcParticleLink::index_type evtIndex () const
 
int pdgCode () const
 
bool unknownPdgCode () const
 
bool isNonUniqueSecondary () const
 
bool operator< (const SimBarCode &) const
 
ExtBarCode extBarCode () const
 

Static Public Attributes

static const int unknownPDG = -999
 

Private Attributes

int m_barCode
 
HepMcParticleLink::index_type m_evtIndex
 
int m_pdgCode
 

Detailed Description

Definition at line 22 of file SimBarCode.h.

Member Typedef Documentation

◆ ExtBarCode

Definition at line 42 of file SimBarCode.h.

Constructor & Destructor Documentation

◆ SimBarCode() [1/2]

SimBarCode::SimBarCode ( int  barCode,
HepMcParticleLink::index_type  evtIndex,
int  pdgCode 
)

◆ SimBarCode() [2/2]

SimBarCode::SimBarCode ( const HepMcParticleLink ,
int  pdgCode 
)

◆ ~SimBarCode()

SimBarCode::~SimBarCode ( )
inline

Definition at line 29 of file SimBarCode.h.

29 {}

Member Function Documentation

◆ actualBarCode()

int SimBarCode::actualBarCode ( ) const
inline

◆ barCode()

int SimBarCode::barCode ( ) const
inline

◆ evtIndex()

HepMcParticleLink::index_type SimBarCode::evtIndex ( ) const
inline

◆ extBarCode()

ExtBarCode SimBarCode::extBarCode ( ) const
inline

Definition at line 43 of file SimBarCode.h.

43 { return ExtBarCode(barCode(),evtIndex()); }

◆ isNonUniqueSecondary()

bool SimBarCode::isNonUniqueSecondary ( ) const
inline

◆ operator<()

bool SimBarCode::operator< ( const SimBarCode ) const
inline

◆ pdgCode()

int SimBarCode::pdgCode ( ) const
inline

◆ unknownPdgCode()

bool SimBarCode::unknownPdgCode ( ) const
inline

Definition at line 35 of file SimBarCode.h.

35 { return m_pdgCode==unknownPDG; }

Member Data Documentation

◆ m_barCode

int SimBarCode::m_barCode
private

Definition at line 47 of file SimBarCode.h.

◆ m_evtIndex

HepMcParticleLink::index_type SimBarCode::m_evtIndex
private

Definition at line 48 of file SimBarCode.h.

◆ m_pdgCode

int SimBarCode::m_pdgCode
private

Definition at line 49 of file SimBarCode.h.

◆ unknownPDG

const int SimBarCode::unknownPDG = -999
static

Definition at line 25 of file SimBarCode.h.


The documentation for this class was generated from the following file:
SimBarCode::barCode
int barCode() const
SimBarCode::unknownPDG
static const int unknownPDG
Definition: SimBarCode.h:25
SimBarCode::evtIndex
HepMcParticleLink::index_type evtIndex() const
SimBarCode::m_pdgCode
int m_pdgCode
Definition: SimBarCode.h:49
SimBarCode::ExtBarCode
std::pair< int, HepMcParticleLink::index_type > ExtBarCode
Definition: SimBarCode.h:42