62 std::back_inserter( invalid ) );
65 log <<
MSG::INFO <<
" # Invalid = " << invalid.size() << std::endl;
77 std::back_inserter( noquarks ) );
80 log <<
MSG::INFO <<
" # Has no quarks = " << noquarks.size() << std::endl;
91 auto fid = pp->pid().fundamentalID();
92 return 0 < fid && 100 >= fid;
95 std::back_inserter( fundamental ) );
98 log <<
MSG::INFO <<
" # Fundamental (0,100] = " << fundamental.size() << std::endl;
110 std::back_inserter( leptons ) );
113 log <<
MSG::INFO <<
" # Leptons = " << leptons.size() << std::endl;
125 std::back_inserter( longlived ) );
128 log <<
MSG::INFO <<
" # Long-lived(>1mu) = " << longlived.size() << std::endl;
140 std::back_inserter( nuclea ) );
143 log <<
MSG::INFO <<
" # Nuclea = " << nuclea.size() << std::endl;
155 std::back_inserter( bbaryons ) );
158 log <<
MSG::INFO <<
" # Beauty Baryons = " << bbaryons.size() << std::endl;
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
#define DECLARE_COMPONENT(type)
const SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
This class represents an entry point to all the event specific data.
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
StatusCode initialize() override
the default (empty) implementation of IStateful::initialize() method
StatusCode finalize() override
the default (empty) implementation of IStateful::finalize() method
const std::string & name() const override
The identifying name of the algorithm object.
SmartIF< IService > service(std::string_view name, const bool createIf=true, const bool quiet=false) const
Return a pointer to the service identified by name (or "type/name")
The abstract interface to Particle Property Service.
OUTPUT get(const PREDICATE &cut, OUTPUT output) const
get the properties according to some criteria
std::vector< const Gaudi::ParticleProperty * > ParticleProperties
the actual type of (ordered) container of particle properties
A trivial class to hold information about a single particle properties.
an algorithm to test the particle property service
StatusCode finalize() override
SmartIF< Gaudi::Interfaces::IParticlePropertySvc > m_ppSvc
StatusCode initialize() override
const Gaudi::Interfaces::IParticlePropertySvc * ppSvc() const
StatusCode execute(const EventContext &ctx) const override
PartPropAlg(const std::string &name, ISvcLocator *pSvcLocator)
Define general base for Gaudi exception.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition of the MsgStream class used to transmit messages.
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
constexpr static const auto FAILURE
GAUDI_API std::string 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
constexpr double micrometer
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...