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

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

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

Public Member Functions

PosIDclone () const override
 MANDATORY: clone method ("virtual constructor") More...
 
bool operator() (const Gaudi::ParticleID &) 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...
 

Detailed Description

  • It matches the particles with positive ID
  • Useful way to separate e.g. charm particle and charm antiparticle
  • Useful mainly in boolean operatios, e.g. Charm & ID+
  • Charge conjugation could be fragile
    Author
    Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@i.nosp@m.ep.r.nosp@m.u
    Date
    2017-02-24

Definition at line 608 of file NodesPIDs.h.

Member Function Documentation

◆ clone()

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

MANDATORY: clone method ("virtual constructor")

Implements Gaudi::Decays::iNode.

Definition at line 430 of file NodePIDs.cpp.

430 { return new PosID( *this ); }

◆ fillStream()

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

MANDATORY: the specific printout.

Implements Gaudi::Decays::iNode.

Definition at line 440 of file NodePIDs.cpp.

440 { return s << " ID+ "; }

◆ operator()()

bool Gaudi::Decays::Nodes::PosID::operator() ( const Gaudi::ParticleID p) const
overridevirtual

MANDATORY: the only one essential method.

Implements Gaudi::Decays::iNode.

Definition at line 438 of file NodePIDs.cpp.

438 { return 0 < p.pid(); }

◆ valid()

bool Gaudi::Decays::Nodes::PosID::valid ( ) const
overridevirtual

MANDATORY: check the validity.

Implements Gaudi::Decays::iNode.

Definition at line 432 of file NodePIDs.cpp.

432 { return true; }

◆ validate()

StatusCode Gaudi::Decays::Nodes::PosID::validate ( const Gaudi::Interfaces::IParticlePropertySvc svc) const
overridevirtual

MANDATORY: the proper validation of the node.

Implements Gaudi::Decays::iNode.

Definition at line 434 of file NodePIDs.cpp.

434  {
435  return StatusCode::SUCCESS;
436 }

The documentation for this class was generated from the following files:
gaudirun.s
string s
Definition: gaudirun.py:346
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
Gaudi::ParticleID::pid
int pid() const
Retrieve the PDG ID.
Definition: ParticleID.h:54