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

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

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

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.

206: Decays::Nodes::JSpin( spin ) {}

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.

Definition at line 197 of file NodePIDs.cpp.

197{ return new SSpin( *this ); }
SSpin(const int spin)
constructor from the 2S+1
Definition NodePIDs.cpp:206

◆ fillStream()

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

MANDATORY: the specific printout.

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

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.

Definition at line 379 of file NodesPIDs.h.

379{ return spin() == pid.sSpin(); }
int sSpin() const
Return 2S+1, where S is the spin, valid only for mesons.

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