BOSS 7.1.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
14
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
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
51std::string eformat::marker2string (uint32_t e)
52{
54}
Defines the constants used by Event Fragments.
@ 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)