The Gaudi Framework  v38r0 (2143aa4c)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
PartPropAlg.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 2023 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIEXAMPLES_PARTPROPALG_H
12 #define GAUDIEXAMPLES_PARTPROPALG_H
13 
14 #include <Gaudi/Algorithm.h>
15 
16 #include "Gaudi/ParticleID.h"
17 #include "Gaudi/ParticleProperty.h"
19 
20 namespace Gaudi {
21  namespace Examples {
27  class PartPropAlg : public Gaudi::Algorithm {
28 
29  public:
30  PartPropAlg( const std::string& name, ISvcLocator* pSvcLocator );
31  StatusCode initialize() override;
32  StatusCode execute( const EventContext& ctx ) const override;
33  StatusCode finalize() override;
34 
36 
37  private:
38  // the pointer to new particle property service
40  };
41  } // namespace Examples
42 } // namespace Gaudi
43 
44 #endif // GAUDIEXAMPLES_PARTPROPALG_H
std::string
STL class.
Gaudi::Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:528
ISvcLocator
Definition: ISvcLocator.h:46
Gaudi::Interfaces::IParticlePropertySvc
Definition: IParticlePropertySvc.h:29
ParticleID.h
IParticlePropertySvc.h
Gaudi::Examples::PartPropAlg
an algorithm to test the particle property service
Definition: PartPropAlg.h:27
Gaudi::Examples::PartPropAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition: PartPropAlg.cpp:44
GaudiPython.Pythonizations.ctx
ctx
Definition: Pythonizations.py:578
StatusCode
Definition: StatusCode.h:65
Gaudi::Examples::PartPropAlg::PartPropAlg
PartPropAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: PartPropAlg.cpp:15
Gaudi::Algorithm
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:90
Gaudi::Examples::PartPropAlg::m_ppSvc
SmartIF< Gaudi::Interfaces::IParticlePropertySvc > m_ppSvc
Definition: PartPropAlg.h:39
Algorithm.h
SmartIF< Gaudi::Interfaces::IParticlePropertySvc >
Gaudi::Examples::PartPropAlg::ppSvc
const Gaudi::Interfaces::IParticlePropertySvc * ppSvc() const
Definition: PartPropAlg.cpp:33
Gaudi::Examples::PartPropAlg::initialize
StatusCode initialize() override
Definition: PartPropAlg.cpp:18
Gaudi
Header file for std:chrono::duration-based Counters.
Definition: __init__.py:1
EventContext
Definition: EventContext.h:34
ParticleProperty.h
Gaudi::Examples::PartPropAlg::finalize
StatusCode finalize() override
Definition: PartPropAlg.cpp:26