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

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

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

Public Member Functions

NegID * clone () const override
 MANDATORY: clone method ("virtual constructor").
bool operator() (const Gaudi::ParticleID &) const override
 MANDATORY: the only one essential method.
std::ostream & fillStream (std::ostream &s) const override
 MANDATORY: the specific printout.
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

Detailed Description

  • It matches the particles with negative ID
  • Useful way to separate e.g. charm particle and charm antiparticle
  • Useful mainly in boolean operations, 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 630 of file NodesPIDs.h.

Member Function Documentation

◆ clone()

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

MANDATORY: clone method ("virtual constructor").

Implements Gaudi::Decays::iNode.

Definition at line 443 of file NodePIDs.cpp.

443{ return new NegID( *this ); }

◆ fillStream()

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

MANDATORY: the specific printout.

Implements Gaudi::Decays::iNode.

Definition at line 453 of file NodePIDs.cpp.

453{ return s << " ID- "; }

◆ operator()()

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

MANDATORY: the only one essential method.

Implements Gaudi::Decays::iNode.

Definition at line 451 of file NodePIDs.cpp.

451{ return 0 > p.pid(); }
int pid() const
Retrieve the PDG ID.
Definition ParticleID.h:54

◆ valid()

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

MANDATORY: check the validity.

Implements Gaudi::Decays::iNode.

Definition at line 445 of file NodePIDs.cpp.

445{ return true; }

◆ validate()

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

MANDATORY: the proper validation of the node.

Implements Gaudi::Decays::iNode.

Definition at line 447 of file NodePIDs.cpp.

447 {
448 return StatusCode::SUCCESS;
449}
constexpr static const auto SUCCESS
Definition StatusCode.h:99

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