BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
HeaderMarker.h
Go to the documentation of this file.
1//Dear emacs, this is -*- c++ -*-
2
3/**
4 * @file eformat/HeaderMarker.h
5 * @author <a href="mailto:[email protected]>Andr� DOS ANJOS</a>
6 * $Author: zhangy $
7 * $Revision: 1.1.1.1 $
8 * $Date: 2009/06/19 07:35:41 $
9 *
10 * @brief Defines the constants used by Event Fragments.
11 */
12
13#ifndef EFORMAT_HEADERMARKER_H
14#define EFORMAT_HEADERMARKER_H
15
16#include <stdint.h>
17#include <string>
18
19namespace eformat {
20
21 /**
22 * The types of header markers available. They are all 32 bit
23 * numbers, with 1234 in the middle for the identification of byte
24 * ordering (endianness).
25 */
26 enum HeaderMarker { ROD = 0xee1234ee, ///< The ROD marker
27 ROB = 0xdd1234dd, ///< The ROB marker
28 ROS = 0xcc1234cc, ///< The ROS marker
29 SUB_DETECTOR = 0xbb1234bb, ///< The SubDet. marker
30 FULL_EVENT = 0xaa1234aa}; ///< The event marker
31
32 /**
33 * An alias
34 */
36
37 /**
38 * Returns the child marker of a given parent marker
39 *
40 * @param e The marker from which you would like to the get child fragment
41 * type from
42 */
44
45 /**
46 * Returns a string that represents the string of the equivalent marker
47 *
48 * @param e The enumeration value
49 */
50 std::string marker2string (const eformat::HeaderMarker& e);
51
52 /**
53 * Returns a string that represents the string of the equivalent marker
54 *
55 * @param e The enumeration value
56 */
57 std::string marker2string (uint32_t e);
58
59}
60
61#endif //EFORMAT_HEADERMARKER_H
@ SUB_DETECTOR
The SubDet. marker.
@ ROB
The ROB marker.
@ ROD
The ROD marker.
@ ROS
The ROS marker.
HeaderMarker child_marker(HeaderMarker e)
std::string marker2string(const eformat::HeaderMarker &e)