The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::Decays::Nodes::Symbol Class Reference

#include </builds/gaudi/Gaudi/GaudiPartProp/include/Gaudi/Decays/NodesPIDs.h>

Inheritance diagram for Gaudi::Decays::Nodes::Symbol:
Collaboration diagram for Gaudi::Decays::Nodes::Symbol:

Public Member Functions

 Symbol (const std::string &sym)
 the constructor from the symbol
Symbol * clone () const override
 MANDATORY: clone method ("virtual constructor").
bool operator() (const Gaudi::ParticleID &pid) const override
 MANDATORY: the only one essential method.
std::ostream & fillStream (std::ostream &s) const override
 MANDATORY: the specific printout.
bool valid () const override
 MANDATORY: check the validity.
StatusCode validate (const Gaudi::Interfaces::IParticlePropertySvc *svc) const override
 MANDATORY: the proper validation of the node.
Public Member Functions inherited from Gaudi::Decays::iNode
virtual bool operator! () const
 invalid node?
virtual std::string toString () const
 the string representation of the node
virtual ~iNode ()=default
 virtual destructor

Private Attributes

Decays::Node m_symbol
 the actual symbol

Detailed Description

Definition at line 644 of file NodesPIDs.h.

Constructor & Destructor Documentation

◆ Symbol()

Gaudi::Decays::Nodes::Symbol::Symbol ( const std::string & sym)

the constructor from the symbol

Definition at line 456 of file NodePIDs.cpp.

456 : Decays::iNode(), m_symbol( Decays::Nodes::Invalid() ) {
457 const Decays::Symbols& sym = Decays::Symbols::instance();
458 StatusCode sc = sym.symbol( s, m_symbol );
459 sc.ignore();
460}
Decays::Node m_symbol
the actual symbol
Definition NodesPIDs.h:662
static Symbols & instance()
static accessor to teh singleton
Definition Symbols.cpp:39
const std::string & symbol(std::string sym) const
help for the basic primitive special symbol
Definition Symbols.cpp:163
void ignore() const
Allow discarding a StatusCode without warning.
Definition StatusCode.h:128

Member Function Documentation

◆ clone()

Decays::Nodes::Symbol * Gaudi::Decays::Nodes::Symbol::clone ( ) const
overridevirtual

MANDATORY: clone method ("virtual constructor").

Implements Gaudi::Decays::iNode.

Definition at line 462 of file NodePIDs.cpp.

462{ return new Decays::Nodes::Symbol( *this ); }

◆ fillStream()

std::ostream & Gaudi::Decays::Nodes::Symbol::fillStream ( std::ostream & s) const
overridevirtual

MANDATORY: the specific printout.

Implements Gaudi::Decays::iNode.

Definition at line 466 of file NodePIDs.cpp.

466{ return s << m_symbol.node(); }

◆ operator()()

bool Gaudi::Decays::Nodes::Symbol::operator() ( const Gaudi::ParticleID & pid) const
overridevirtual

MANDATORY: the only one essential method.

Implements Gaudi::Decays::iNode.

Definition at line 464 of file NodePIDs.cpp.

464{ return m_symbol.node( pid ); }

◆ valid()

bool Gaudi::Decays::Nodes::Symbol::valid ( ) const
overridevirtual

MANDATORY: check the validity.

Implements Gaudi::Decays::iNode.

Definition at line 468 of file NodePIDs.cpp.

468{ return m_symbol.valid(); }

◆ validate()

StatusCode Gaudi::Decays::Nodes::Symbol::validate ( const Gaudi::Interfaces::IParticlePropertySvc * svc) const
overridevirtual

MANDATORY: the proper validation of the node.

Implements Gaudi::Decays::iNode.

Definition at line 470 of file NodePIDs.cpp.

470 {
471 return m_symbol.validate( svc );
472}

Member Data Documentation

◆ m_symbol

Decays::Node Gaudi::Decays::Nodes::Symbol::m_symbol
private

the actual symbol

Definition at line 662 of file NodesPIDs.h.


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