HepMC3 event record library: GenVertexData.h Source File

HepMC3 event record library

GenVertexData.h
Go to the documentation of this file.
1// -*- C++ -*-
2//
3// This file is part of HepMC
4// Copyright (C) 2014-2023 The HepMC collaboration (see AUTHORS for details)
5//
6#ifndef HEPMC3_DATA_GENVERTEXDATA_H
7#define HEPMC3_DATA_GENVERTEXDATA_H
8/**
9 * @file GenVertexData.h
10 * @brief Definition of \b class GenVertexData
11 *
12 * @struct HepMC3::GenVertexData
13 * @brief Stores serializable vertex information
14 *
15 * @ingroup data
16 *
17 */
18#include "HepMC3/FourVector.h"
19
20namespace HepMC3 {
21
22 struct GenVertexData {
23 int status; ///< Vertex status
24 FourVector position; ///< Position in time-space
25
26 /// @brief Check if this struct fields are zero
27 bool is_zero() const {
28 if( status ) return false;
29
30 return position.is_zero();
31 }
32};
33
34} // namespace HepMC
35
36#endif
FourVector.h
Definition of class FourVector.
HepMC3::FourVector
Generic 4-vector.
Definition FourVector.h:36
HepMC3
HepMC3 main namespace.
Definition AnalysisExample.h:24
HepMC3::GenVertexData
Stores serializable vertex information.
Definition GenVertexData.h:22
HepMC3::GenVertexData::is_zero
bool is_zero() const
Check if this struct fields are zero.
Definition GenVertexData.h:27
HepMC3::GenVertexData::status
int status
Vertex status.
Definition GenVertexData.h:23
HepMC3::GenVertexData::position
FourVector position
Position in time-space.
Definition GenVertexData.h:24