EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
FairRunIdGenerator.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FairRunIdGenerator.h
1
#ifndef FAIRRUNIDGENERATOR_H
2
#define FAIRRUNIDGENERATOR_H
3
4
5
typedef
unsigned
char
uint8_t
;
6
typedef
unsigned
short
int
uint16_t
;
7
typedef
unsigned
int
uint32_t
;
8
typedef
unsigned
char
uuid_t
[16];
9
10
class
FairRunIdGenerator
11
{
12
struct
uuid
{
13
uint32_t
time_low
;
14
uint16_t
time_mid
;
15
uint16_t
time_hi_and_version
;
16
uint16_t
clock_seq
;
17
uint8_t
node
[6];
18
};
19
int
get_random_fd
(
void
);
20
void
get_random_bytes
(
void
*,
int
);
21
int
get_node_id
(
unsigned
char
*);
22
int
get_clock
(
uint32_t
*,
uint32_t
*,
uint16_t
*);
23
void
uuid_generate_time
(
uuid_t
);
24
void
uuid_generate_random
(
uuid_t
);
25
void
uuid_generate
(
uuid_t
);
26
void
uuid_pack
(
const
struct
uuid
*,
uuid_t
);
27
void
uuid_unpack
(
const
uuid_t
,
struct
uuid
*);
28
public
:
29
FairRunIdGenerator
() {}
30
~FairRunIdGenerator
() {}
31
unsigned
int
generateId
(
void
);
32
};
33
34
#endif
EicRoot
blob
master
base
FairRunIdGenerator.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:32
using
1.8.2 with
EIC GitHub integration