Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HepMC3Vertex.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file HepMC3Vertex.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 
18 namespace ActsExamples {
19 namespace HepMC3Vertex {
20 
24 std::unique_ptr<SimVertex> processVertex(
25  const std::shared_ptr<HepMC3::GenVertex>& vertex);
26 
31 bool inEvent(const std::shared_ptr<HepMC3::GenVertex>& vertex);
32 
36 int id(const std::shared_ptr<HepMC3::GenVertex>& vertex);
37 
41 std::vector<SimParticle> particlesIn(
42  const std::shared_ptr<HepMC3::GenVertex>& vertex);
43 
47 std::vector<SimParticle> particlesOut(
48  const std::shared_ptr<HepMC3::GenVertex>& vertex);
49 
53 Acts::Vector3 position(const std::shared_ptr<HepMC3::GenVertex>& vertex);
54 
58 double time(const std::shared_ptr<HepMC3::GenVertex>& vertex);
59 
63 void addParticleIn(const std::shared_ptr<HepMC3::GenVertex>& vertex,
64  const std::shared_ptr<SimParticle>& particle);
65 
69 void addParticleOut(const std::shared_ptr<HepMC3::GenVertex>& vertex,
70  const std::shared_ptr<SimParticle>& particle);
71 
75 void removeParticleIn(const std::shared_ptr<HepMC3::GenVertex>& vertex,
76  const std::shared_ptr<SimParticle>& particle);
77 
81 void removeParticleOut(const std::shared_ptr<HepMC3::GenVertex>& vertex,
82  const std::shared_ptr<SimParticle>& particle);
83 
87 void position(const std::shared_ptr<HepMC3::GenVertex>& vertex,
88  const Acts::Vector3& pos);
89 
93 void time(const std::shared_ptr<HepMC3::GenVertex>& vertex, double time);
94 
95 } // namespace HepMC3Vertex
96 } // namespace ActsExamples