YAP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
ParticleCombination Class Reference

Stores combinations of particle indices. More...

#include <ParticleCombination.h>

Inheritance diagram for ParticleCombination:

Public Member Functions

bool consistent () const
 Checks consistency of object.
 
Getters
const std::vector< unsigned > & indices () const
 Get vector of indices (const)
 
const ParticleCombinationVector & daughters () const
 Get vector of daughters (const)
 
std::shared_ptr
< ParticleCombination
parent () const
 get parent (const)
 

Protected Member Functions

void addDaughter (std::shared_ptr< ParticleCombination > daughter)
 

Private Member Functions

 ParticleCombination ()=default
 default constructor
 
 ParticleCombination (unsigned index)
 Final-state-particle constructor, see ParticleCombinationCache::fsp for details.
 
 ParticleCombination (const ParticleCombination &)=delete
 Copy constructor is deleted.
 
 ParticleCombination (ParticleCombination &&)=delete
 Move constructor is deleted.
 
ParticleCombinationoperator= (const ParticleCombination &)=delete
 Copy assignment is deleted.
 
ParticleCombinationoperator= (ParticleCombination &&)=delete
 Move assignment is deleted.
 

Private Attributes

std::weak_ptr
< ParticleCombination
Parent_
 Parent of the particle combination.
 
ParticleCombinationVector Daughters_
 vector of daughters
 
std::vector< unsigned > Indices_
 vector indices of daughters
 

Friends

class ParticleCombinationCache
 grant friend access to ParticleCombinationCache for creating ParticleCombination's
 

Detailed Description

Stores combinations of particle indices.

Author
Johannes Rauch, Daniel Greenwald

Constructors are private. New ParticleCombination objects are created through the ParticleCombinationCache

Member Function Documentation

void addDaughter ( std::shared_ptr< ParticleCombination daughter)
protected

Add daughter ParticleCombination

Parameters
daughterShared pointer to ParticleCombination object representing a daughter

Check that new daughter does not share content with other daughters?

Check that new daughter doesn't already have parent set


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