Debian Codegraph @

include/HepMC3/Data/GenVertexData.h

raw
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
20 namespace 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