The Gaudi Framework  master (594c33fa)
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 More...
 
Symbolclone () const override
 MANDATORY: clone method ("virtual constructor") More...
 
bool operator() (const Gaudi::ParticleID &pid) const override
 MANDATORY: the only one essential method. More...
 
std::ostreamfillStream (std::ostream &s) const override
 MANDATORY: the specific printout. More...
 
bool valid () const override
 MANDATORY: check the validity. More...
 
StatusCode validate (const Gaudi::Interfaces::IParticlePropertySvc *svc) const override
 MANDATORY: the proper validation of the node. More...
 
- Public Member Functions inherited from Gaudi::Decays::iNode
virtual bool operator! () const
 invalid node? More...
 
virtual std::string toString () const
 the string representation of the node More...
 
virtual ~iNode ()=default
 virtual destructor More...
 

Private Attributes

Decays::Node m_symbol
 the actual symbol More...
 

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.

458  StatusCode sc = sym.symbol( s, m_symbol );
459  sc.ignore();
460 }

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:
GaudiPartProp.Nodes.iNode
iNode
full list of known nodes
Definition: Nodes.py:246
gaudirun.s
string s
Definition: gaudirun.py:346
Gaudi::Decays::Node::valid
bool valid() const override
MANDATORY: check the validity of the node.
Definition: iNode.cpp:47
Gaudi::Decays::Symbols::instance
static Symbols & instance()
static accessor to teh singleton
Definition: Symbols.cpp:39
Gaudi::Decays::Node::validate
StatusCode validate(const Gaudi::Interfaces::IParticlePropertySvc *svc) const override
MANDATORY: the proper validation of the node.
Definition: iNode.cpp:49
EventStatus::Invalid
@ Invalid
Definition: IAlgExecStateSvc.h:73
StatusCode
Definition: StatusCode.h:65
Gaudi::Decays::Symbols
Definition: Symbols.h:45
Gaudi::Decays::Node::node
const iNode & node() const
Definition: iNode.h:96
Gaudi::Decays::Nodes::Symbol::m_symbol
Decays::Node m_symbol
the actual symbol
Definition: NodesPIDs.h:662
StatusCode::ignore
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
Definition: StatusCode.h:139
GaudiPartProp.Nodes.Symbol
Symbol
Definition: Nodes.py:313
Gaudi::Decays::Symbols::symbol
const std::string & symbol(std::string sym) const
help for the basic primitive special symbol
Definition: Symbols.cpp:163