Last change
on this file since 95a917c was 95a917c, checked in by Pavel Demin <pavel.demin@…>, 3 years ago |
add HepMC3 library
|
-
Property mode
set to
100644
|
File size:
767 bytes
|
Line | |
---|
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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.