ROOTPWA
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Private Attributes | List of all members
rpwa::fsVertex Class Reference

#include <fsVertex.h>

Inheritance diagram for rpwa::fsVertex:
rpwa::interactionVertex

Public Member Functions

 fsVertex (const particlePtr &fsParticle)
 force vertex to have exactly one incoming and no outgoing particles
 fsVertex (const fsVertex &vert)
virtual ~fsVertex ()
fsVertexPtr clone (const bool cloneInParticles=false, const bool=false) const
 < creates deep copy of final state vertex; must not be virtual
virtual bool addInParticle (const particlePtr &)
 disabled; final state particle has to be specified at construction
virtual bool addOutParticle (const particlePtr &)
 disabled; no outgoing particles are allowed
particlePtrfsParticle ()
 returns final state particle
const particlePtrfsParticle () const
 returns final state particle
virtual std::ostream & print (std::ostream &out) const
 prints vertex parameters in human-readable form
virtual std::ostream & dump (std::ostream &out) const
 prints all vertex data in human-readable form
virtual std::ostream & printPointers (std::ostream &out) const
 prints particle pointers strored in vertex
virtual std::string name () const
 returns label used in graph visualization, reporting, and key file
virtual void clear ()
bool operator== (const interactionVertex &rhsVert)
bool operator!= (const interactionVertex &rhsVert)
void transformOutParticles (const TLorentzRotation &L)
 applies Lorentz-transformation to outgoing particles
unsigned int nmbInParticles () const
 returns number of incoming particles
unsigned int nmbOutParticles () const
 returns number of outgoing particles
std::vector< particlePtr > & inParticles ()
 returns array of incoming particles
const std::vector< particlePtr > & inParticles () const
 returns array of incoming particles
std::vector< particlePtr > & outParticles ()
 returns array of outgoing particles
const std::vector< particlePtr > & outParticles () const
 returns array of outgoing particles

Static Public Member Functions

static bool debug ()
 returns debug flag
static void setDebug (const bool debug=true)
 sets debug flag

Protected Member Functions

virtual fsVertexdoClone (const bool cloneInParticles, const bool cloneOutParticles) const
 helper function to use covariant return types with smart pointers; needed for public clone()
virtual bool isEqualTo (const interactionVertex &vert) const
 returns whether vert is equal to this by checking equality of all member variables
void cloneInParticles ()
 clones all incoming particles
void cloneOutParticles ()
 clones all outgoing particles

Protected Attributes

std::vector< particlePtr_inParticles
 array of pointers to incoming particles
std::vector< particlePtr_outParticles
 array of pointers to outgoing particles

Static Private Attributes

static bool _debug = false
 if set to true, debug messages are printed

Detailed Description

Definition at line 55 of file fsVertex.h.

Constructor & Destructor Documentation

fsVertex::fsVertex ( const particlePtr fsParticle)

force vertex to have exactly one incoming and no outgoing particles

Definition at line 50 of file fsVertex.cc.

References _debug, and addInParticle().

Referenced by doClone().

fsVertex::fsVertex ( const fsVertex vert)

Definition at line 63 of file fsVertex.cc.

fsVertex::~fsVertex ( )
virtual

Definition at line 69 of file fsVertex.cc.

Member Function Documentation

bool fsVertex::addInParticle ( const particlePtr )
virtual

disabled; final state particle has to be specified at construction

Reimplemented from rpwa::interactionVertex.

Definition at line 88 of file fsVertex.cc.

References _debug.

Referenced by fsVertex().

bool fsVertex::addOutParticle ( const particlePtr )
virtual

disabled; no outgoing particles are allowed

Reimplemented from rpwa::interactionVertex.

Definition at line 97 of file fsVertex.cc.

References _debug.

void interactionVertex::clear ( )
virtualinherited
fsVertexPtr rpwa::fsVertex::clone ( const bool  cloneInParticles = false,
const bool  = false 
) const
inline

< creates deep copy of final state vertex; must not be virtual

Reimplemented from rpwa::interactionVertex.

Definition at line 63 of file fsVertex.h.

References rpwa::interactionVertex::cloneInParticles(), and doClone().

void interactionVertex::cloneInParticles ( )
protectedinherited
void interactionVertex::cloneOutParticles ( )
protectedinherited
static bool rpwa::fsVertex::debug ( )
inlinestatic

returns debug flag

Reimplemented from rpwa::interactionVertex.

Definition at line 80 of file fsVertex.h.

References _debug.

Referenced by setDebug().

fsVertex * fsVertex::doClone ( const bool  cloneInParticles,
const bool  cloneOutParticles 
) const
protectedvirtual

helper function to use covariant return types with smart pointers; needed for public clone()

Reimplemented from rpwa::interactionVertex.

Definition at line 74 of file fsVertex.cc.

References _debug, rpwa::interactionVertex::cloneInParticles(), and fsVertex().

Referenced by clone().

ostream & fsVertex::dump ( std::ostream &  out) const
virtual

prints all vertex data in human-readable form

Reimplemented from rpwa::interactionVertex.

Definition at line 114 of file fsVertex.cc.

References fsParticle(), and name().

particlePtr& rpwa::fsVertex::fsParticle ( )
inline

returns final state particle

Definition at line 71 of file fsVertex.h.

References rpwa::interactionVertex::inParticles().

Referenced by dump(), print(), and printPointers().

const particlePtr& rpwa::fsVertex::fsParticle ( ) const
inline

returns final state particle

Definition at line 72 of file fsVertex.h.

References rpwa::interactionVertex::inParticles().

std::vector<particlePtr>& rpwa::interactionVertex::inParticles ( )
inlineinherited
const std::vector<particlePtr>& rpwa::interactionVertex::inParticles ( ) const
inlineinherited

returns array of incoming particles

Definition at line 89 of file interactionVertex.h.

References rpwa::interactionVertex::_inParticles.

bool interactionVertex::isEqualTo ( const interactionVertex vert) const
protectedvirtualinherited
virtual std::string rpwa::fsVertex::name ( ) const
inlinevirtual

returns label used in graph visualization, reporting, and key file

Reimplemented from rpwa::interactionVertex.

Definition at line 78 of file fsVertex.h.

Referenced by dump(), print(), and printPointers().

unsigned int rpwa::interactionVertex::nmbInParticles ( ) const
inlineinherited

returns number of incoming particles

Definition at line 84 of file interactionVertex.h.

References rpwa::interactionVertex::_inParticles.

Referenced by rpwa::interactionVertex::cloneInParticles(), and rpwa::interactionVertex::isEqualTo().

unsigned int rpwa::interactionVertex::nmbOutParticles ( ) const
inlineinherited
bool rpwa::interactionVertex::operator!= ( const interactionVertex rhsVert)
inlineinherited

Definition at line 77 of file interactionVertex.h.

bool rpwa::interactionVertex::operator== ( const interactionVertex rhsVert)
inlineinherited

Definition at line 76 of file interactionVertex.h.

References rpwa::interactionVertex::isEqualTo().

std::vector<particlePtr>& rpwa::interactionVertex::outParticles ( )
inlineinherited
const std::vector<particlePtr>& rpwa::interactionVertex::outParticles ( ) const
inlineinherited

returns array of outgoing particles

Definition at line 90 of file interactionVertex.h.

References rpwa::interactionVertex::_outParticles.

ostream & fsVertex::print ( std::ostream &  out) const
virtual

prints vertex parameters in human-readable form

Reimplemented from rpwa::interactionVertex.

Definition at line 106 of file fsVertex.cc.

References fsParticle(), and name().

Referenced by rpwa::operator<<().

ostream & fsVertex::printPointers ( std::ostream &  out) const
virtual

prints particle pointers strored in vertex

Reimplemented from rpwa::interactionVertex.

Definition at line 123 of file fsVertex.cc.

References fsParticle(), and name().

static void rpwa::fsVertex::setDebug ( const bool  debug = true)
inlinestatic

sets debug flag

Reimplemented from rpwa::interactionVertex.

Definition at line 81 of file fsVertex.h.

References _debug, and debug().

void interactionVertex::transformOutParticles ( const TLorentzRotation &  L)
inherited

applies Lorentz-transformation to outgoing particles

Definition at line 148 of file interactionVertex.cc.

References rpwa::interactionVertex::_outParticles, i, and rpwa::interactionVertex::nmbOutParticles().

Member Data Documentation

bool fsVertex::_debug = false
staticprivate

if set to true, debug messages are printed

Definition at line 92 of file fsVertex.h.

Referenced by addInParticle(), addOutParticle(), debug(), doClone(), fsVertex(), and setDebug().

std::vector<particlePtr> rpwa::interactionVertex::_inParticles
protectedinherited
std::vector<particlePtr> rpwa::interactionVertex::_outParticles
protectedinherited

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