Auxiliary class for historical event.
More...
#include <JHistory.hh>
|
uint32_t | counter = 0 |
| internal counter
|
|
|
std::ostream & | operator<< (std::ostream &out, const JEvent &event) |
| Write event to output stream.
|
|
Auxiliary class for historical event.
Definition at line 38 of file JHistory.hh.
◆ JEvent() [1/2]
◆ JEvent() [2/2]
JFIT::JEvent::JEvent |
( |
const int | type | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 55 of file JHistory.hh.
56 {
59
62 this->
date = getDateAndTime();
63
64
65
66 random_device device;
67
68 uniform_int_distribution<uint32_t>
generator(1, numeric_limits<uint32_t>::max());
69
70 uint32_t* value =
reinterpret_cast<uint32_t*
>(&(this->
uuid.
uuid));
71
72 for (int i = 0; i != 3; ++i) {
74 }
75 }
std::string getGITVersion(const std::string &tag)
Get GIT version for given GIT tag.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Description of Monte Carlo event generation applications.
std::string git
GIT revision.
◆ ~JEvent()
virtual JFIT::JEvent::~JEvent |
( |
| ) |
|
|
inlinevirtual |
◆ equals()
bool JFIT::JEvent::equals |
( |
const JEvent & | event | ) |
const |
|
inline |
Check equality.
- Parameters
-
- Returns
- true if events are equal; else false
Definition at line 91 of file JHistory.hh.
92 {
94 this->uuid == event.uuid &&
95 this->git == event.git &&
96 this->date == event.date);
97 }
◆ operator()()
const JEvent & JFIT::JEvent::operator() |
( |
| ) |
|
|
inline |
Make this event unique.
- Returns
- event
Definition at line 105 of file JHistory.hh.
106 {
107 uint32_t* value =
reinterpret_cast<uint32_t*
>(&(this->
uuid.
uuid));
108
110
111 return *this;
112 }
uint32_t counter
internal counter
◆ ClassDef()
JFIT::JEvent::ClassDef |
( |
JEvent | , |
|
|
2 | ) |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const JEvent & | event ) |
|
friend |
Write event to output stream.
- Parameters
-
out | output stream |
event | event |
- Returns
- output stream
Definition at line 122 of file JHistory.hh.
123 {
125
126 out << setw(3) << right << event.type << ' '
127 << setw(36) << left << event.uuid << ' '
128 << setw(20) << left << event.git << ' '
129 << setw(20) << left << event.date << right;
130
131 return out;
132 }
◆ type
◆ uuid
◆ git
std::string JFIT::JEvent::git |
◆ date
std::string JFIT::JEvent::date |
◆ counter
uint32_t JFIT::JEvent::counter = 0 |
|
protected |
The documentation for this struct was generated from the following file: