PhotosHEPEVTEvent Class Reference
Inheritance diagram for PhotosHEPEVTEvent:
Inheritance graph
Collaboration diagram for PhotosHEPEVTEvent:
Collaboration graph

Public Member Functions

 ~PhotosHEPEVTEvent ()
 
 PhotosHEPEVTEvent ()
 
void addParticle (PhotosHEPEVTParticle *p)
 
PhotosHEPEVTParticlegetParticle (int i)
 
void setParticle (int i, PhotosHEPEVTParticle *p)
 
int getParticleCount ()
 
std::vector< PhotosParticle * > getParticleList ()
 
void print ()
 
void clear ()
 
 ~PhotosHEPEVTEvent ()
 
 PhotosHEPEVTEvent ()
 
void addParticle (PhotosHEPEVTParticle *p)
 
PhotosHEPEVTParticlegetParticle (int i)
 
void setParticle (int i, PhotosHEPEVTParticle *p)
 
int getParticleCount ()
 
std::vector< PhotosParticle * > getParticleList ()
 
void print ()
 
void clear ()
 
void process ()
 
void process ()
 

Static Public Member Functions

static void read_event_from_HEPEVT (PhotosHEPEVTEvent *evt)
 
static void write_event_to_HEPEVT (PhotosHEPEVTEvent *evt)
 
static void read_event_from_HEPEVT (PhotosHEPEVTEvent *evt)
 
static void write_event_to_HEPEVT (PhotosHEPEVTEvent *evt)
 

Private Member Functions

vector< PhotosParticle * > filterParticles (vector< PhotosParticle * > particles)
 
vector< PhotosParticle * > filterParticles (vector< PhotosParticle * > particles)
 

Private Attributes

std::vector< PhotosHEPEVTParticle * > particle_list
 
vector< PhotosBranch * > m_branch_points
 

Detailed Description

Constructor & Destructor Documentation

◆ ~PhotosHEPEVTEvent() [1/2]

Default destructor

Definition at line 33 of file PhotosHEPEVTEvent.cxx.

References particle_list.

◆ PhotosHEPEVTEvent() [1/2]

Default constructor

Definition at line 38 of file PhotosHEPEVTEvent.cxx.

References Photos::setMomentumUnit().

◆ ~PhotosHEPEVTEvent() [2/2]

Default destructor

◆ PhotosHEPEVTEvent() [2/2]

Default constructor

Member Function Documentation

◆ addParticle() [1/2]

void addParticle ( PhotosHEPEVTParticle * p)

Add particle at the end of event record

Definition at line 46 of file PhotosHEPEVTEvent.cxx.

References particle_list, PhotosHEPEVTParticle::setBarcode(), and PhotosHEPEVTParticle::setEvent().

◆ addParticle() [2/2]

void addParticle ( PhotosHEPEVTParticle * p)

Add particle at the end of event record

◆ clear() [1/2]

void clear ( )

Remove all particles from the event

Definition at line 86 of file PhotosHEPEVTEvent.cxx.

References particle_list.

◆ clear() [2/2]

void clear ( )

Remove all particles from the event

◆ filterParticles() [1/2]

vector< PhotosParticle * > filterParticles ( vector< PhotosParticle * > particles)
privateinherited

Filter suppressed and invalid particles.

Definition at line 32 of file PhotosEvent.cxx.

References Log::Debug(), PhotosParticle::getDaughters(), PhotosParticle::getPdgID(), PhotosParticle::getStatus(), and PhotosParticle::STABLE.

◆ filterParticles() [2/2]

vector< PhotosParticle * > filterParticles ( vector< PhotosParticle * > particles)
privateinherited

Filter suppressed and invalid particles.

References m_branch_points.

◆ getParticle() [1/2]

PhotosHEPEVTParticle * getParticle ( int i)

Get particle at index 'i'

Definition at line 54 of file PhotosHEPEVTEvent.cxx.

References particle_list.

◆ getParticle() [2/2]

PhotosHEPEVTParticle * getParticle ( int i)

Get particle at index 'i'

◆ getParticleCount() [1/2]

int getParticleCount ( )

Get higher-most index of the particles in event (nhep)

Definition at line 66 of file PhotosHEPEVTEvent.cxx.

References particle_list.

◆ getParticleCount() [2/2]

int getParticleCount ( )

Get higher-most index of the particles in event (nhep)

◆ getParticleList() [1/2]

std::vector< PhotosParticle * > getParticleList ( )
virtual

Get an unfiltered list of particles from the event record

Implements PhotosEvent.

Definition at line 71 of file PhotosHEPEVTEvent.cxx.

References particle_list.

◆ getParticleList() [2/2]

std::vector< PhotosParticle * > getParticleList ( )
virtual

Get an unfiltered list of particles from the event record

Implements PhotosEvent.

◆ print() [1/2]

void print ( )
virtual

Print out list of particles in the event

Implements PhotosEvent.

Definition at line 80 of file PhotosHEPEVTEvent.cxx.

References particle_list, and print().

◆ print() [2/2]

void print ( )
virtual

Print out list of particles in the event

Implements PhotosEvent.

◆ process() [1/2]

void process ( )
inherited

Process event

Definition at line 21 of file PhotosEvent.cxx.

References PhotosBranch::createBranches(), filterParticles(), getParticleList(), and m_branch_points.

◆ process() [2/2]

void process ( )
inherited

Process event

◆ read_event_from_HEPEVT() [1/2]

void read_event_from_HEPEVT ( PhotosHEPEVTEvent * evt)
static

Fill PhotosHEPEVTEvent from HEPEVT common block

Definition at line 92 of file PhotosHEPEVTEvent.cxx.

References addParticle(), and PhotosHEPEVTEvent().

◆ read_event_from_HEPEVT() [2/2]

static void read_event_from_HEPEVT ( PhotosHEPEVTEvent * evt)
static

Fill PhotosHEPEVTEvent from HEPEVT common block

References PhotosHEPEVTEvent().

◆ setParticle() [1/2]

void setParticle ( int i,
PhotosHEPEVTParticle * p )

Set particle at index 'i'

Definition at line 60 of file PhotosHEPEVTEvent.cxx.

References particle_list.

◆ setParticle() [2/2]

void setParticle ( int i,
PhotosHEPEVTParticle * p )

Set particle at index 'i'

◆ write_event_to_HEPEVT() [1/2]

◆ write_event_to_HEPEVT() [2/2]

static void write_event_to_HEPEVT ( PhotosHEPEVTEvent * evt)
static

Write to HEPEVT common block content of PhotosHEPEVTEvent

References particle_list, and PhotosHEPEVTEvent().

Field Documentation

◆ m_branch_points

vector< PhotosBranch * > m_branch_points
privateinherited

branch points which should be given to PHOTOS

Definition at line 44 of file include/Photos/PhotosEvent.h.

◆ particle_list

std::vector< PhotosHEPEVTParticle * > particle_list
private

List of all particles

Definition at line 68 of file include/Photos/PhotosHEPEVTEvent.h.


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