The Gaudi Framework  master (594c33fa)
Gaudi::Decays::Nodes::SSpin Class Reference

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

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

Public Member Functions

 SSpin (const int spin)
 constructor from the 2S+1 More...
 
SSpinclone () 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...
 
- Public Member Functions inherited from Gaudi::Decays::Nodes::JSpin
 JSpin (const int spin)
 constructor from the 2J+1 More...
 
bool valid () const override
 valid only for positive spin-values More...
 
StatusCode validate (const Gaudi::Interfaces::IParticlePropertySvc *) const override
 MANDATORY: the proper validation of the node. More...
 
int spin () const
 
- 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...
 

Additional Inherited Members

- Public Types inherited from Gaudi::Decays::Nodes::JSpin
enum  { InvalidSpin = 501 }
 

Detailed Description

The trivial node : it match the 2S+1 spin

Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2008-04-12

Definition at line 372 of file NodesPIDs.h.

Constructor & Destructor Documentation

◆ SSpin()

Gaudi::Decays::Nodes::SSpin::SSpin ( const int  spin)

constructor from the 2S+1

Definition at line 206 of file NodePIDs.cpp.

Member Function Documentation

◆ clone()

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

MANDATORY: clone method ("virtual constructor")

Reimplemented from Gaudi::Decays::Nodes::JSpin.

Reimplemented in Gaudi::Decays::Nodes::LSpin.

Definition at line 197 of file NodePIDs.cpp.

197 { return new SSpin( *this ); }

◆ fillStream()

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

MANDATORY: the specific printout.

Reimplemented from Gaudi::Decays::Nodes::JSpin.

Reimplemented in Gaudi::Decays::Nodes::LSpin.

Definition at line 262 of file NodePIDs.cpp.

262 { return s << " SSpin(" << spin() << ") "; }

◆ operator()()

bool Gaudi::Decays::Nodes::SSpin::operator() ( const Gaudi::ParticleID pid) const
inlineoverridevirtual

MANDATORY: the only one essential method.

Reimplemented from Gaudi::Decays::Nodes::JSpin.

Reimplemented in Gaudi::Decays::Nodes::LSpin.

Definition at line 379 of file NodesPIDs.h.

379 { return spin() == pid.sSpin(); }

The documentation for this class was generated from the following files:
gaudirun.s
string s
Definition: gaudirun.py:346
GaudiPartProp.Nodes.JSpin
JSpin
Definition: Nodes.py:265
Gaudi::ParticleID::sSpin
int sSpin() const
Return 2S+1, where S is the spin, valid only for mesons.
Definition: ParticleID.cpp:361
Gaudi::Decays::Nodes::SSpin::SSpin
SSpin(const int spin)
constructor from the 2S+1
Definition: NodePIDs.cpp:206
Gaudi::Decays::Nodes::JSpin::spin
int spin() const
Definition: NodesPIDs.h:360