HepMC event record
include/HepMC/Data/GenVertexData.h
1 // -*- C++ -*-
2 //
3 // This file is part of HepMC
4 // Copyright (C) 2014 The HepMC collaboration (see AUTHORS for details)
5 //
6 #ifndef HEPMC_DATA_GENVERTEXDATA_H
7 #define HEPMC_DATA_GENVERTEXDATA_H
8 /**
9  * @file GenVertexData.h
10  * @brief Definition of \b class GenVertexData
11  *
12  * @struct HepMC::GenVertexData
13  * @brief Stores serializable vertex information
14  *
15  * @ingroup data
16  *
17  */
18 #include "HepMC/FourVector.h"
19 
20 namespace HepMC {
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
bool is_zero() const
Check if this struct fields are zero.
bool is_zero() const
Check if the length of this vertex is zero.
FourVector position
Position in time-space.
Definition of template class SmartPointer.