The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
PartPropExa.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 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#pragma once
12
15#if HEPPDT_VERSION_MAJOR == 2
16# include <HepPDT/CommonParticleData.hh>
17#endif
18#if HEPPDT_VERSION_MAJOR == 3
19# include <HepPDT/ParticleData.hh>
20namespace HepPDT {
21 using CommonParticleData = ParticleData;
22}
23#endif
24#include <HepPDT/ProcessUnknownID.hh>
25
26class IPartPropSvc;
27
28class PartPropExa : public Algorithm {
29
30public:
32 StatusCode initialize() override;
33 StatusCode execute() override;
34
35private:
36 ServiceHandle<IPartPropSvc> m_pps{ this, "PartPropSvc", "PartPropSvc" };
37};
38
39namespace HepPDT {
40 class TestUnknownID : public ProcessUnknownID {
41 public:
42 TestUnknownID() = default;
43
44 CommonParticleData* processUnknownID( ParticleID, const ParticleDataTable& pdt ) override;
45 };
46} // namespace HepPDT
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition Algorithm.h:98
CommonParticleData * processUnknownID(ParticleID, const ParticleDataTable &pdt) override
StatusCode initialize() override
ServiceHandle< IPartPropSvc > m_pps
Definition PartPropExa.h:36
StatusCode execute() override
Handle to be used in lieu of naked pointers to services.
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64