ATLAS Offline Software
Classes | Typedefs | Enumerations | Functions | Variables
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

Enumerator
NONE 
RESERVED 
UNKNOWN 
ZLIB 

Definition at line 41 of file v5_EventStorageRecords.h.

◆ FileStatus

Enumerator
FINISHED 
UNFINISHED 

Definition at line 42 of file v5_DataWriter.h.

42 { FINISHED, UNFINISHED };

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 }

◆ 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 }

◆ 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  }

Variable Documentation

◆ data_separator_pattern

const data_separator_record offline_EventStorage_v5::data_separator_pattern
Initial value:
= {
sizeof(data_separator_record)/sizeof(uint32_t),
0,
0
}

Definition at line 160 of file v5_EventStorageRecords.h.

◆ 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,
}

Definition at line 167 of file v5_EventStorageRecords.h.

◆ 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
}

Definition at line 98 of file v5_EventStorageRecords.h.

◆ 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:
= {
sizeof(old_internal_run_parameters_record)/sizeof(uint32_t),
0,
0,
0,
0,
0,
0,
0
}

Definition at line 147 of file v5_EventStorageRecords.h.

◆ run_parameters_pattern

const internal_run_parameters_record offline_EventStorage_v5::run_parameters_pattern
Initial value:
= {
sizeof(internal_run_parameters_record)/sizeof(uint32_t),
0,
0,
0,
0,
0,
0,
0,
0
}

Definition at line 134 of file v5_EventStorageRecords.h.

NONE
@ NONE
Definition: sTGCenumeration.h:13
mergePhysValFiles.pattern
pattern
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:26
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
offline_EventStorage_v5::zmsg
std::string zmsg(const z_stream &strm)
Definition: v5_ESCompression.cxx:54
offline_EventStorage_v5::FINISHED
@ FINISHED
Definition: v5_DataWriter.h:42
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
FILE_END_MARKER_LAST
#define FILE_END_MARKER_LAST
Definition: v5_EventStorageRecords.h:31
FILE_END_MARKER
#define FILE_END_MARKER
Definition: v5_EventStorageRecords.h:30
EVENT_RECORD_MARKER
#define EVENT_RECORD_MARKER
Definition: v5_EventStorageRecords.h:25
pi
#define pi
Definition: TileMuonFitter.cxx:65
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
offline_EventStorage_v5::file_name_strings_marker
const uint32_t file_name_strings_marker
Definition: v5_EventStorageRecords.h:95
lumiFormat.i
int i
Definition: lumiFormat.py:92
FILE_START_MARKER
#define FILE_START_MARKER
Definition: v5_EventStorageRecords.h:22
offline_EventStorage_v5::UNFINISHED
@ UNFINISHED
Definition: v5_DataWriter.h:42
offline_EventStorage_v5::ZLIB
@ ZLIB
Definition: v5_EventStorageRecords.h:41
offline_EventStorage_v5::RESERVED
@ RESERVED
Definition: v5_EventStorageRecords.h:41
RUN_PARAMETERS_MARKER
#define RUN_PARAMETERS_MARKER
Definition: v5_EventStorageRecords.h:23
python.SystemOfUnits.ns
int ns
Definition: SystemOfUnits.py:130
FILE_FORMAT_VERSION_V5
#define FILE_FORMAT_VERSION_V5
metadata records for EventStorage library
Definition: v5_EventStorageRecords.h:19
offline_EventStorage_v5::UNKNOWN
@ UNKNOWN
Definition: v5_EventStorageRecords.h:41