ATLAS Offline Software
Loading...
Searching...
No Matches
offline_EventStorage_v5 Namespace Reference

Classes

struct  data_separator_record
class  DataBuffer
class  DataWriter
struct  file_end_record
struct  file_name_strings
struct  file_start_record
struct  internal_run_parameters_record
struct  iovec_const
struct  old_internal_run_parameters_record
struct  run_parameters_record

Typedefs

typedef std::vector< std::string > freeMetaDataStrings

Enumerations

enum  FileStatus { FINISHED , UNFINISHED }
enum  CompressionType { NONE , RESERVED , UNKNOWN , ZLIB }

Functions

std::string string_record (void *ri, const void *pi)
std::string string_record (const file_name_strings &nst)
void reset_record (void *ri, const void *pi)
std::string zmsg (const z_stream &strm)

Variables

const uint32_t file_name_strings_marker = STRING_SECTION_MARKER
const uint32_t free_strings_marker = FREE_STRINGS_MARKER
const file_start_record file_start_pattern
const internal_run_parameters_record run_parameters_pattern
const old_internal_run_parameters_record old_run_parameters_pattern
const data_separator_record data_separator_pattern
const file_end_record file_end_pattern

Typedef Documentation

◆ freeMetaDataStrings

typedef std::vector<std::string> offline_EventStorage_v5::freeMetaDataStrings

Definition at line 60 of file v5_EventStorageRecords.h.

Enumeration Type Documentation

◆ CompressionType

◆ FileStatus

Enumerator
FINISHED 
UNFINISHED 

Definition at line 42 of file v5_DataWriter.h.

Function Documentation

◆ reset_record()

void offline_EventStorage_v5::reset_record ( void * ri,
const void * pi )

Definition at line 56 of file v5_EventStorageRecords.cxx.

56 {
57
58 uint32_t *record = reinterpret_cast<uint32_t *>(ri);
59 const uint32_t *pattern = reinterpret_cast<const uint32_t *>(pi);
60 int size=pattern[1];
61
62 for(int i=0; i<size; i++) record[i] = pattern[i];
63}
#define pi

◆ string_record() [1/2]

std::string offline_EventStorage_v5::string_record ( const file_name_strings & nst)

Definition at line 33 of file v5_EventStorageRecords.cxx.

33 {
34
35 std::ostringstream s;
36
37 s << std::hex << offline_EventStorage_v5::file_name_strings_marker << std::dec;
38
39 s << " " << nst.appName.size();
40 s << " " << nst.appName;
41
42 char ns = nst.appName.size() % 4;
43 if(ns) s.write("____",4-ns);
44
45 s << " " << nst.fileNameCore.size();
46 s << " " << nst.fileNameCore;
47
48 ns = nst.fileNameCore.size() % 4;
49 if(ns) s.write("____",4-ns);
50
51 std::string rs = s.str();
52 return rs;
53
54}
static Double_t rs

◆ string_record() [2/2]

std::string offline_EventStorage_v5::string_record ( void * ri,
const void * pi )

Definition at line 13 of file v5_EventStorageRecords.cxx.

13 {
14
15 std::ostringstream s;
16
17 uint32_t *record = reinterpret_cast<uint32_t *>(ri);
18 const uint32_t *pattern = reinterpret_cast<const uint32_t *>(pi);
19 int size=pattern[1];
20
21 for(int i=0; i<size; i++) {
22 if(pattern[i] != 0) {
23 s << std::hex << pattern[i] << std::dec << " ";
24 } else {
25 s << record[i] << " ";
26 }
27 }
28
29 std::string rs = s.str();
30 return rs;
31}

◆ zmsg()

std::string offline_EventStorage_v5::zmsg ( const z_stream & strm)

Definition at line 54 of file v5_ESCompression.cxx.

54 {
55 std::string zmsg("None");
56 if(strm.msg){
57 zmsg = strm.msg;
58 }
59 return zmsg;
60 }
std::string zmsg(const z_stream &strm)

Variable Documentation

◆ data_separator_pattern

const data_separator_record offline_EventStorage_v5::data_separator_pattern
Initial value:

Definition at line 160 of file v5_EventStorageRecords.h.

160 {
162 sizeof(data_separator_record)/sizeof(uint32_t),
163 0,
164 0
165 };

◆ file_end_pattern

const file_end_record offline_EventStorage_v5::file_end_pattern
Initial value:
= {
sizeof(file_end_record)/sizeof(uint32_t),
0,
0,
0,
0,
0,
0,
0,
}
#define FILE_END_MARKER_LAST
#define FILE_END_MARKER

Definition at line 167 of file v5_EventStorageRecords.h.

167 {
169 sizeof(file_end_record)/sizeof(uint32_t),
170 0,
171 0,
172 0,
173 0,
174 0,
175 0,
176 0,
178 };

◆ file_name_strings_marker

const uint32_t offline_EventStorage_v5::file_name_strings_marker = STRING_SECTION_MARKER

Definition at line 95 of file v5_EventStorageRecords.h.

◆ file_start_pattern

const file_start_record offline_EventStorage_v5::file_start_pattern
Initial value:
= {
sizeof(file_start_record)/sizeof(uint32_t),
0,
0,
0,
0,
0
}
#define FILE_FORMAT_VERSION_V5
metadata records for EventStorage library
#define FILE_START_MARKER

Definition at line 98 of file v5_EventStorageRecords.h.

98 {
100 sizeof(file_start_record)/sizeof(uint32_t),
102 0,
103 0,
104 0,
105 0,
106 0
107 };

◆ free_strings_marker

const uint32_t offline_EventStorage_v5::free_strings_marker = FREE_STRINGS_MARKER

Definition at line 96 of file v5_EventStorageRecords.h.

◆ old_run_parameters_pattern

const old_internal_run_parameters_record offline_EventStorage_v5::old_run_parameters_pattern
Initial value:

Definition at line 147 of file v5_EventStorageRecords.h.

147 {
149 sizeof(old_internal_run_parameters_record)/sizeof(uint32_t),
150 0,
151 0,
152 0,
153 0,
154 0,
155 0,
156 0
157 };

◆ run_parameters_pattern

const internal_run_parameters_record offline_EventStorage_v5::run_parameters_pattern
Initial value:

Definition at line 134 of file v5_EventStorageRecords.h.

134 {
136 sizeof(internal_run_parameters_record)/sizeof(uint32_t),
137 0,
138 0,
139 0,
140 0,
141 0,
142 0,
143 0,
144 0
145 };