The Gaudi Framework  master (e4085f78)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ParticleProperty.h File Reference
#include <Gaudi/ParticleID.h>
#include <GaudiKernel/Kernel.h>
#include <GaudiKernel/PhysicalConstants.h>
#include <cmath>
#include <functional>
#include <iosfwd>
#include <limits>
#include <set>
#include <string>
#include <vector>
Include dependency graph for ParticleProperty.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Gaudi::ParticleProperty
 
struct  Gaudi::ParticleProperty::Compare
 

Namespaces

 Gaudi
 This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from python with a format liks : ( nbins, min, max, title ) where title can be ommited.
 
 Gaudi::Interfaces
 
 Gaudi::ParticleProperties
 
 Gaudi::Utils
 

Functions

std::ostream & operator<< (std::ostream &stream, const Gaudi::ParticleProperty &pp)
 standard output operator to the stream More...
 
GAUDI_API std::ostream & Gaudi::ParticleProperties::printAsTable_ (const std::vector< const Gaudi::ParticleProperty * > &particles, std::ostream &stream, const Gaudi::Interfaces::IParticlePropertySvc *service=0)
 print a list of properties in a form of the table More...
 
GAUDI_API std::string Gaudi::ParticleProperties::printAsTable (const std::vector< const Gaudi::ParticleProperty * > &particles, const Gaudi::Interfaces::IParticlePropertySvc *service=0)
 print a list of properties in a form of the table More...
 
GAUDI_API MsgStreamGaudi::ParticleProperties::printAsTable (const std::vector< const Gaudi::ParticleProperty * > &particles, MsgStream &stream, const Gaudi::Interfaces::IParticlePropertySvc *service=0)
 print a list of properties in a form of the table More...
 
GAUDI_API std::ostream & Gaudi::ParticleProperties::printAsTable_ (const std::vector< Gaudi::ParticleID > &particles, std::ostream &stream, const Gaudi::Interfaces::IParticlePropertySvc *service=0)
 print properties in a form of the table More...
 
template<class C_ , class A_ >
std::ostream & Gaudi::ParticleProperties::printAsTable_ (const std::set< Gaudi::ParticleID, C_, A_ > &particles, std::ostream &stream, const Gaudi::Interfaces::IParticlePropertySvc *service=0)
 
GAUDI_API std::string Gaudi::ParticleProperties::printAsTable (const std::vector< Gaudi::ParticleID > &particles, const Gaudi::Interfaces::IParticlePropertySvc *service=0)
 print properties in a form of the table More...
 
template<class C_ , class A_ >
std::string Gaudi::ParticleProperties::printAsTable (const std::set< Gaudi::ParticleID, C_, A_ > &particles, const Gaudi::Interfaces::IParticlePropertySvc *service=0)
 
GAUDI_API MsgStreamGaudi::ParticleProperties::printAsTable (const std::vector< Gaudi::ParticleID > &particles, MsgStream &stream, const Gaudi::Interfaces::IParticlePropertySvc *service=0)
 print properties in a form of the table More...
 
template<class C_ , class A_ >
MsgStreamGaudi::ParticleProperties::printAsTable (const std::set< Gaudi::ParticleID, C_, A_ > &particles, MsgStream &stream, const Gaudi::Interfaces::IParticlePropertySvc *service=0)
 
GAUDI_API std::ostream & Gaudi::Utils::toStream (const std::vector< const Gaudi::ParticleProperty * > &particles, std::ostream &stream)
 print a list of particle properties as formatted table More...
 
GAUDI_API const Gaudi::ParticlePropertystd::abs (const Gaudi::ParticleProperty *p)
 

Function Documentation

◆ abs()

const Gaudi::ParticleProperty * std::abs ( const Gaudi::ParticleProperty p)

Definition at line 399 of file ParticleProperty.cpp.

399  {
400  if ( 0 == p ) { return 0; }
401  //
402  if ( p->selfcc() || 0 <= p->particleID().pid() ) { return p; }
403  //
404  const Gaudi::ParticleProperty* a = p->anti();
405  if ( 0 != a && 0 <= a->particleID().pid() ) { return a; }
406  //
407  return p; // should it be 0 ?
408 }

◆ operator<<()

std::ostream& operator<< ( std::ostream &  stream,
const Gaudi::ParticleProperty pp 
)

standard output operator to the stream

Parameters
streamthe stream
ppthe particle property object
Returns
the stream
Author
Vanya BELYAEV Ivan..nosp@m.Bely.nosp@m.aev@n.nosp@m.ikhe.nosp@m.f.nl
Date
2008-08-03

Definition at line 30 of file ParticleProperty.cpp.

30 { return pp.fillStream( stream ); }
Write.stream
stream
Definition: Write.py:32
Gaudi::ParticleProperty::anti
const Gaudi::ParticleProperty * anti() const
get the pointer to the anti-particle
Definition: ParticleProperty.h:106
Gaudi::ParticleProperty
Definition: ParticleProperty.h:37
Gaudi::ParticleProperty::particleID
const Gaudi::ParticleID & particleID() const
get the particle ID
Definition: ParticleProperty.h:82
Gaudi::ParticleID::pid
int pid() const
Retrieve the PDG ID.
Definition: ParticleID.h:54
Gaudi::ParticleProperty::selfcc
bool selfcc() const
self-charge conjugated?
Definition: ParticleProperty.h:109
compareOutputFiles.pp
pp
Definition: compareOutputFiles.py:507