BOSS 7.1.2
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 44 of file G4HepMCParticle.h.

Constructor & Destructor Documentation

◆ G4HepMCParticle() [1/2]

G4HepMCParticle::G4HepMCParticle ( )

Definition at line 37 of file G4HepMCParticle.cpp.

38{;}

◆ G4HepMCParticle() [2/2]

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

Definition at line 40 of file G4HepMCParticle.cpp.

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

◆ ~G4HepMCParticle()

G4HepMCParticle::~G4HepMCParticle ( )

Definition at line 44 of file G4HepMCParticle.cpp.

45{;}

Member Function Documentation

◆ Done()

void G4HepMCParticle::Done ( )
inline

Definition at line 67 of file G4HepMCParticle.h.

68 { ISTHEP *= -1; }

Referenced by G4HepMCInterface::HepMC2G4().

◆ GetBarcodeEndVtx()

G4int G4HepMCParticle::GetBarcodeEndVtx ( )
inline

Definition at line 71 of file G4HepMCParticle.h.

72 { return barcodeEndVtx;}

◆ GetISTHEP()

G4int G4HepMCParticle::GetISTHEP ( )
inline

Definition at line 69 of file G4HepMCParticle.h.

70 { return ISTHEP; }

◆ GetTheParticle()

G4PrimaryParticle * G4HepMCParticle::GetTheParticle ( )
inline

Definition at line 65 of file G4HepMCParticle.h.

66 { return theParticle; }

◆ operator delete()

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

Definition at line 93 of file G4HepMCParticle.h.

94{
95 // aHEPEvtParticleAllocator.FreeSingle((G4HepMCParticle *) aHEPEvtParticle);
96 aHepMCParticleAllocator->FreeSingle((G4HepMCParticle *) aHEPEvtParticle);
97}
G4ThreadLocal G4Allocator< G4HepMCParticle > * aHepMCParticleAllocator

◆ operator new()

void * G4HepMCParticle::operator new ( size_t )
inline

Definition at line 83 of file G4HepMCParticle.h.

84{
86 aHepMCParticleAllocator = new G4Allocator<G4HepMCParticle>;
87 }
88 // void * aHEPEvtParticle;
89 // aHEPEvtParticle = (void *) aHEPEvtParticleAllocator.MallocSingle();
90 return aHepMCParticleAllocator->MallocSingle();;
91}

◆ operator!=()

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

Definition at line 53 of file G4HepMCParticle.cpp.

54{ return (this!=&right); }

◆ operator=()

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

Definition at line 48 of file G4HepMCParticle.cpp.

49{ return *this; }

◆ operator==()

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

Definition at line 51 of file G4HepMCParticle.cpp.

52{ return (this==&right); }

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