CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HepMCParticle Class Reference

#include <HepMCParticle.h>

Public Member Functions

void done ()
 
const int getStatus ()
 
G4PrimaryParticle * getTheParticle ()
 
 HepMCParticle ()
 
 HepMCParticle (G4PrimaryParticle *pp, int status)
 
int operator!= (const HepMCParticle &right) const
 
const HepMCParticleoperator= (const HepMCParticle &right)
 
int operator== (const HepMCParticle &right) const
 
 ~HepMCParticle ()
 

Private Attributes

int status_code
 
G4PrimaryParticle * theParticle
 

Detailed Description

Definition at line 6 of file HepMCParticle.h.

Constructor & Destructor Documentation

◆ HepMCParticle() [1/2]

HepMCParticle::HepMCParticle ( )

Definition at line 3 of file HepMCParticle.cc.

3 {}

◆ HepMCParticle() [2/2]

HepMCParticle::HepMCParticle ( G4PrimaryParticle *  pp,
int  status 
)

Definition at line 5 of file HepMCParticle.cc.

◆ ~HepMCParticle()

HepMCParticle::~HepMCParticle ( )

Definition at line 7 of file HepMCParticle.cc.

7 {}

Member Function Documentation

◆ done()

void HepMCParticle::done ( )

Definition at line 15 of file HepMCParticle.cc.

15 { status_code = -1; }

References status_code.

◆ getStatus()

const int HepMCParticle::getStatus ( )

Definition at line 16 of file HepMCParticle.cc.

16 { return status_code; }

References status_code.

◆ getTheParticle()

G4PrimaryParticle * HepMCParticle::getTheParticle ( )

Definition at line 14 of file HepMCParticle.cc.

14 { return theParticle; }

References theParticle.

◆ operator!=()

int HepMCParticle::operator!= ( const HepMCParticle right) const

Definition at line 12 of file HepMCParticle.cc.

12 { return true; }

◆ operator=()

const HepMCParticle & HepMCParticle::operator= ( const HepMCParticle right)

Definition at line 9 of file HepMCParticle.cc.

9 { return *this; }

◆ operator==()

int HepMCParticle::operator== ( const HepMCParticle right) const

Definition at line 11 of file HepMCParticle.cc.

11 { return false; }

Member Data Documentation

◆ status_code

int HepMCParticle::status_code
private

status code of the entry set to 0 after generating links of G4PrimaryParticle object

Definition at line 19 of file HepMCParticle.h.

Referenced by done(), and getStatus().

◆ theParticle

G4PrimaryParticle* HepMCParticle::theParticle
private

Definition at line 16 of file HepMCParticle.h.

Referenced by getTheParticle().

mps_update.status
status
Definition: mps_update.py:69
HepMCParticle::status_code
int status_code
Definition: HepMCParticle.h:19
createTree.pp
pp
Definition: createTree.py:17
HepMCParticle::theParticle
G4PrimaryParticle * theParticle
Definition: HepMCParticle.h:16