BOSS
7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
HeaderMarker.cxx
Go to the documentation of this file.
1
//Dear emacs, this is -*- c++ -*-
2
3
/**
4
* @file HeaderMarker.cxx
5
* @author <a href="mailto:
[email protected]
">Andre DOS ANJOS</a>
6
* $Author: zhangy $
7
* $Revision: 1.1.1.1 $
8
* $Date: 2009/06/19 07:35:41 $
9
*
10
* Implements a few functionality around the header marker
11
*/
12
13
#include "eformat/HeaderMarker.h"
14
15
eformat::HeaderMarker
eformat::child_marker
(
eformat::HeaderMarker
e)
16
{
17
using namespace
eformat
;
18
switch
(e) {
19
case
FULL_EVENT
:
20
return
SUB_DETECTOR
;
21
case
SUB_DETECTOR
:
22
return
ROS
;
23
case
ROS
:
24
return
ROB
;
25
case
ROB
:
26
return
ROD
;
27
default
:
28
break
;
29
}
30
return
FULL_EVENT
;
31
}
32
33
std::string
eformat::marker2string
(
const
eformat::HeaderMarker
& e)
34
{
35
using namespace
eformat
;
36
switch
(e) {
37
case
ROD
:
38
return
"ROD"
;
39
case
ROB
:
40
return
"ROB"
;
41
case
ROS
:
42
return
"ROS"
;
43
case
SUB_DETECTOR
:
44
return
"SUB_DETECTOR"
;
45
case
FULL_EVENT
:
46
return
"FULL_EVENT"
;
47
}
48
return
"UNKNOWN_MARKER"
;
49
}
50
51
std::string
eformat::marker2string
(uint32_t e)
52
{
53
return
marker2string
((
eformat::HeaderMarker
)e);
54
}
eformat
Definition:
Event/eformat/eformat-00-00-04/eformat/BadVersionIssue.h:20
eformat::ROB
@ ROB
The ROB marker.
Definition:
Event/eformat/eformat-00-00-04/eformat/HeaderMarker.h:27
eformat::ROD
@ ROD
The ROD marker.
Definition:
Event/eformat/eformat-00-00-04/eformat/HeaderMarker.h:26
eformat::ROS
@ ROS
The ROS marker.
Definition:
Event/eformat/eformat-00-00-04/eformat/HeaderMarker.h:28
eformat::SUB_DETECTOR
@ SUB_DETECTOR
The SubDet. marker.
Definition:
Event/eformat/eformat-00-00-04/eformat/HeaderMarker.h:29
eformat::FULL_EVENT
@ FULL_EVENT
Definition:
Event/eformat/eformat-00-00-04/eformat/HeaderMarker.h:30
eformat::HeaderMarker
HeaderMarker
Definition:
Event/eformat/eformat-00-00-04/eformat/HeaderMarker.h:26
eformat::child_marker
HeaderMarker child_marker(HeaderMarker e)
Definition:
HeaderMarker.cxx:15
eformat::marker2string
std::string marker2string(const eformat::HeaderMarker &e)
Definition:
HeaderMarker.cxx:33
source
Event
eformat
eformat-00-00-04
src
HeaderMarker.cxx
Generated by
1.9.6