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

represent simple predicate for short-lived particles More...

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

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

Public Member Functions

 ShortLived_ (const double high, const Gaudi::Interfaces::IParticlePropertySvc *svc=0)
 constructor with high edge and service
 ShortLived_ (const Gaudi::Interfaces::IParticlePropertySvc *svc=0)
 constructor service
ShortLived_ * clone () const override
 MANDATORY: clone method ("virtual constructor").
std::ostream & fillStream (std::ostream &s) const override
 MANDATORY: the specific printout.
Public Member Functions inherited from Gaudi::Decays::Nodes::CTau
 CTau (const double low, const double high, const Gaudi::Interfaces::IParticlePropertySvc *svc=nullptr)
 constructor from c-tau range
bool operator() (const Gaudi::ParticleID &pid) const override
 MANDATORY: the only one essential method.
bool valid () const override
 MANDATORY: check the validity.
StatusCode validate (const Gaudi::Interfaces::IParticlePropertySvc *svc) const override
 MANDATORY: the proper validation of the node.
const Gaudi::Interfaces::IParticlePropertySvc * ppSvc () const
double low () const
 get low edge
double high () const
 get high edge
StatusCode setService (const Gaudi::Interfaces::IParticlePropertySvc *svc) const
MsgStream & printAcceptedAsTable (MsgStream &s) 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

Protected Member Functions inherited from Gaudi::Decays::Nodes::CTau
template<typename F, typename = std::is_invocable_r<bool, F, Gaudi::ParticleID>>
bool classify (Gaudi::ParticleID pid, F &&f) const

Detailed Description

represent simple predicate for short-lived particles

Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2009-05-11

Definition at line 490 of file NodesPIDs.h.

Constructor & Destructor Documentation

◆ ShortLived_() [1/2]

Gaudi::Decays::Nodes::ShortLived_::ShortLived_ ( const double high,
const Gaudi::Interfaces::IParticlePropertySvc * svc = 0 )

constructor with high edge and service

Definition at line 354 of file NodePIDs.cpp.

355 : Decays::Nodes::CTau( -1 * Gaudi::Units::km, high, svc ) {}
double high() const
get high edge
Definition NodesPIDs.h:427
constexpr double km

◆ ShortLived_() [2/2]

Gaudi::Decays::Nodes::ShortLived_::ShortLived_ ( const Gaudi::Interfaces::IParticlePropertySvc * svc = 0)

constructor service

Definition at line 357 of file NodePIDs.cpp.

358 : Decays::Nodes::CTau( -1 * Gaudi::Units::km, s_SHORTLIVED, svc ) {}

Member Function Documentation

◆ clone()

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

MANDATORY: clone method ("virtual constructor").

Reimplemented from Gaudi::Decays::Nodes::CTau.

Definition at line 360 of file NodePIDs.cpp.

360 {
361 return new Decays::Nodes::ShortLived_( *this );
362}

◆ fillStream()

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

MANDATORY: the specific printout.

Reimplemented from Gaudi::Decays::Nodes::CTau.

Definition at line 364 of file NodePIDs.cpp.

364 {
365 if ( essentiallyEqual( high(), s_SHORTLIVED ) ) { return s << " ShortLived "; }
366 return s << " ShortLived_( " << high() << ") ";
367}

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