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-2019 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
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
Definition of class FourVector.
Generic 4-vector.
Definition: FourVector.h:36
bool is_zero() const
Check if the length of this vertex is zero.
Definition: FourVector.h:193
HepMC3 main namespace.
Stores serializable vertex information.
Definition: GenVertexData.h:22
bool is_zero() const
Check if this struct fields are zero.
Definition: GenVertexData.h:27
int status
Vertex status.
Definition: GenVertexData.h:23
FourVector position
Position in time-space.
Definition: GenVertexData.h:24