EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HepMC3Particle.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file HepMC3Particle.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2018 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
13 
14 #include <HepMC3/FourVector.h>
15 #include <HepMC3/GenParticle.h>
16 #include <HepMC3/GenVertex.h>
17 #include <HepPID/ParticleIDMethods.hh>
18 
19 namespace ActsExamples {
20 
23  public:
27  std::unique_ptr<SimParticle> particle(
28  const std::shared_ptr<HepMC3::GenParticle> particle);
29 
33  int id(const std::shared_ptr<HepMC3::GenParticle> particle);
34 
38  std::unique_ptr<SimVertex> productionVertex(
39  const std::shared_ptr<HepMC3::GenParticle> particle);
40 
44  std::unique_ptr<SimVertex> endVertex(
45  const std::shared_ptr<HepMC3::GenParticle> particle);
46 
50  int pdgID(const std::shared_ptr<HepMC3::GenParticle> particle);
51 
55  Acts::Vector3D momentum(const std::shared_ptr<HepMC3::GenParticle> particle);
56 
60  double energy(const std::shared_ptr<HepMC3::GenParticle> particle);
61 
65  double mass(const std::shared_ptr<HepMC3::GenParticle> particle);
66 
70  double charge(const std::shared_ptr<HepMC3::GenParticle> particle);
71 
75  void pdgID(std::shared_ptr<HepMC3::GenParticle> particle, const int pid);
76 
80  void momentum(std::shared_ptr<HepMC3::GenParticle> particle,
81  const Acts::Vector3D& mom);
82 
86  void energy(std::shared_ptr<HepMC3::GenParticle> particle,
87  const double energy);
88 
92  void mass(std::shared_ptr<HepMC3::GenParticle> particle, const double mass);
93 };
94 
95 } // namespace ActsExamples