BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
G4HepMCParticle Class Reference

#include <G4HepMCParticle.h>

Public Member Functions

void * operator new (size_t)
void operator delete (void *aStackedTrack)
 G4HepMCParticle ()
 G4HepMCParticle (G4PrimaryParticle *pp, G4int isthep, G4int barcode)
 ~G4HepMCParticle ()
const G4HepMCParticleoperator= (const G4HepMCParticle &right)
G4int operator== (const G4HepMCParticle &right) const
G4int operator!= (const G4HepMCParticle &right) const
G4PrimaryParticle * GetTheParticle ()
void Done ()
G4int GetISTHEP ()
G4int GetBarcodeEndVtx ()

Detailed Description

Definition at line 43 of file G4HepMCParticle.h.

Constructor & Destructor Documentation

◆ G4HepMCParticle() [1/2]

G4HepMCParticle::G4HepMCParticle ( )

Definition at line 37 of file G4HepMCParticle.cpp.

37{ ; }

Referenced by operator delete(), operator!=(), operator=(), and operator==().

◆ G4HepMCParticle() [2/2]

G4HepMCParticle::G4HepMCParticle ( G4PrimaryParticle * pp,
G4int isthep,
G4int barcode )

Definition at line 39 of file G4HepMCParticle.cpp.

40 : theParticle( pp ), ISTHEP( isthep ), barcodeEndVtx( barcode ) {
41 ;
42}
**********INTEGER nmxhep !maximum number of particles DOUBLE PRECISION vhep INTEGER isthep

◆ ~G4HepMCParticle()

G4HepMCParticle::~G4HepMCParticle ( )

Definition at line 44 of file G4HepMCParticle.cpp.

44{ ; }

Member Function Documentation

◆ Done()

void G4HepMCParticle::Done ( )
inline

Definition at line 65 of file G4HepMCParticle.h.

65{ ISTHEP *= -1; }

Referenced by G4HepMCInterface::HepMC2G4().

◆ GetBarcodeEndVtx()

G4int G4HepMCParticle::GetBarcodeEndVtx ( )
inline

Definition at line 67 of file G4HepMCParticle.h.

67{ return barcodeEndVtx; }

◆ GetISTHEP()

G4int G4HepMCParticle::GetISTHEP ( )
inline

Definition at line 66 of file G4HepMCParticle.h.

66{ return ISTHEP; }

◆ GetTheParticle()

G4PrimaryParticle * G4HepMCParticle::GetTheParticle ( )
inline

Definition at line 64 of file G4HepMCParticle.h.

64{ return theParticle; }

◆ operator delete()

void G4HepMCParticle::operator delete ( void * aStackedTrack)
inline

Definition at line 87 of file G4HepMCParticle.h.

87 {
88 // aHEPEvtParticleAllocator.FreeSingle((G4HepMCParticle *) aHEPEvtParticle);
89 aHepMCParticleAllocator->FreeSingle( (G4HepMCParticle*)aHEPEvtParticle );
90}
G4ThreadLocal G4Allocator< G4HepMCParticle > * aHepMCParticleAllocator

◆ operator new()

void * G4HepMCParticle::operator new ( size_t )
inline

Definition at line 78 of file G4HepMCParticle.h.

78 {
80 { aHepMCParticleAllocator = new G4Allocator<G4HepMCParticle>; }
81 // void * aHEPEvtParticle;
82 // aHEPEvtParticle = (void *) aHEPEvtParticleAllocator.MallocSingle();
83 return aHepMCParticleAllocator->MallocSingle();
84 ;
85}

◆ operator!=()

G4int G4HepMCParticle::operator!= ( const G4HepMCParticle & right) const

Definition at line 51 of file G4HepMCParticle.cpp.

51 {
52 return ( this != &right );
53}

◆ operator=()

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

Definition at line 46 of file G4HepMCParticle.cpp.

46{ return *this; }

◆ operator==()

G4int G4HepMCParticle::operator== ( const G4HepMCParticle & right) const

Definition at line 48 of file G4HepMCParticle.cpp.

48 {
49 return ( this == &right );
50}

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