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

The trivial node : it match the quark content. More...

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

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

Public Member Functions

 HasQuark (Gaudi::ParticleID::Quark quark)
 constructor from the quark
HasQuark * 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::Any
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

Gaudi::ParticleID::Quark m_quark
 the quark to be tested

Detailed Description

The trivial node : it match the quark content.

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 321 of file NodesPIDs.h.

Constructor & Destructor Documentation

◆ HasQuark()

Gaudi::Decays::Nodes::HasQuark::HasQuark ( Gaudi::ParticleID::Quark quark)

constructor from the quark

Definition at line 202 of file NodePIDs.cpp.

202: Decays::Nodes::Any(), m_quark( quark ) {}
Gaudi::ParticleID::Quark m_quark
the quark to be tested
Definition NodesPIDs.h:334

Member Function Documentation

◆ clone()

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

MANDATORY: clone method ("virtual constructor").

Reimplemented from Gaudi::Decays::Nodes::Any.

Definition at line 193 of file NodePIDs.cpp.

193{ return new HasQuark( *this ); }
HasQuark(Gaudi::ParticleID::Quark quark)
constructor from the quark
Definition NodePIDs.cpp:202

◆ fillStream()

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

MANDATORY: the specific printout.

Reimplemented from Gaudi::Decays::Nodes::Any.

Definition at line 226 of file NodePIDs.cpp.

226 {
227 switch ( m_quark ) {
229 return s << " Xd ";
231 return s << " Xu ";
233 return s << " Xs ";
235 return s << " Xc ";
237 return s << " Xb ";
239 return s << " Xt ";
240 default:;
241 }
242 return s << " HasQuark(" << (int)m_quark << ") ";
243}

◆ operator()()

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

MANDATORY: the only one essential method.

Reimplemented from Gaudi::Decays::Nodes::Any.

Definition at line 328 of file NodesPIDs.h.

328{ return pid.hasQuark( m_quark ); }
bool hasQuark(const Quark &q) const
Return if the PID is a particle containing a specified quark flavor.

Member Data Documentation

◆ m_quark

Gaudi::ParticleID::Quark Gaudi::Decays::Nodes::HasQuark::m_quark
private

the quark to be tested

Definition at line 334 of file NodesPIDs.h.


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