Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v38r0 (2143aa4c)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
PartPropExa.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 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_PARTPROPEXA_H
12 #define GAUDIEXAMPLES_PARTPROPEXA_H 1
13 
14 #include "GaudiKernel/Algorithm.h"
15 #if HEPPDT_VERSION_MAJOR == 2
16 # include "HepPDT/CommonParticleData.hh"
17 #endif
18 #if HEPPDT_VERSION_MAJOR == 3
19 # include "HepPDT/ParticleData.hh"
20 namespace HepPDT {
21  using CommonParticleData = ParticleData;
22 }
23 #endif
24 #include "HepPDT/ProcessUnknownID.hh"
25 
26 class IPartPropSvc;
27 
28 class PartPropExa : public Algorithm {
29 
30 public:
32  StatusCode initialize() override;
33  StatusCode execute() override;
34 
35 private:
36  IPartPropSvc* m_pps{ nullptr };
37 };
38 
39 namespace HepPDT {
40  class TestUnknownID : public ProcessUnknownID {
41  public:
42  TestUnknownID() = default;
43 
44  CommonParticleData* processUnknownID( ParticleID, const ParticleDataTable& pdt ) override;
45  };
46 } // namespace HepPDT
47 
48 #endif // GAUDIEXAMPLES_PARTPROPEXA_H
PartPropExa::execute
StatusCode execute() override
Definition: PartPropExa.cpp:52
PartPropExa::initialize
StatusCode initialize() override
Definition: PartPropExa.cpp:26
IPartPropSvc
Definition: IPartPropSvc.h:30
ParticleID
Definition: ParticleID.py:1
Algorithm
Alias for backward compatibility.
Definition: Algorithm.h:58
Algorithm.h
PartPropExa::m_pps
IPartPropSvc * m_pps
Definition: PartPropExa.h:36
HepPDT::TestUnknownID::processUnknownID
CommonParticleData * processUnknownID(ParticleID, const ParticleDataTable &pdt) override
Definition: PartPropExa.cpp:58
HepPDT
Definition: PartPropExa.cpp:56
StatusCode
Definition: StatusCode.h:65
HepPDT::TestUnknownID::TestUnknownID
TestUnknownID()=default
HepPDT::TestUnknownID
Definition: PartPropExa.h:40
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition: Algorithm.h:101
PartPropExa
Definition: PartPropExa.h:28