BOSS
7.1.3
BESIII Offline Software System
Loading...
Searching...
No Matches
FullEventFragment24.cxx
Go to the documentation of this file.
1
//Dear emacs, this is -*- c++ -*-
2
3
/**
4
* @file old/FullEventFragment.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 the old FullEventFragment class
11
*/
12
13
#include "
eformat/old/FullEventFragment.h
"
14
#include "
eformat/old/SubDetectorFragment.h
"
15
#include "
eformat/SizeCheckIssue.h
"
16
#include "
eformat/HeaderMarker.h
"
17
18
eformat::old::FullEventFragment::FullEventFragment
(
const
uint32_t* it)
19
:
eformat
::
old
::
Header
(it,
eformat
::
FULL_EVENT
),
20
m_start(
specific_header
())
21
{
22
}
23
24
bool
eformat::old::FullEventFragment::check
()
const
25
{
26
eformat::old::Header::check
();
//< first do a generic check
27
if
(
nspecific
() != 10) {
//@warning THIS IS WRONG!!! It should be 9
28
throw
EFORMAT_SIZE_CHECK
(10,
nspecific
());
29
}
30
return
true
;
31
}
32
33
bool
eformat::old::FullEventFragment::check_tree
()
const
34
{
35
check
();
// check myself
36
for
(
size_t
i=0; i<
noffset
(); ++i) {
37
eformat::old::SubDetectorFragment
sd(
child
(i));
38
sd.
check_tree
();
39
}
40
return
true
;
41
}
42
43
44
HeaderMarker.h
Defines the constants used by Event Fragments.
SizeCheckIssue.h
When size checks do not match, this exception must be thrown.
EFORMAT_SIZE_CHECK
#define EFORMAT_SIZE_CHECK(actual, informed)
Definition
SizeCheckIssue.h:67
eformat::old::FullEventFragment::check_tree
bool check_tree() const
Definition
FullEventFragment24.cxx:33
eformat::old::FullEventFragment::FullEventFragment
FullEventFragment(const uint32_t *it)
Definition
FullEventFragment24.cxx:18
eformat::old::FullEventFragment::check
virtual bool check() const
Definition
FullEventFragment24.cxx:24
eformat::old::Header::check
virtual bool check() const
Definition
Header24.cxx:29
eformat::old::Header::Header
Header(const uint32_t *it, uint32_t match)
Definition
Header24.cxx:21
eformat::old::Header::child
const uint32_t * child(size_t n) const
Definition
Header24.cxx:39
eformat::old::Header::noffset
uint32_t noffset() const
Definition
old/Header.h:110
eformat::old::Header::nspecific
uint32_t nspecific() const
Definition
old/Header.h:123
eformat::old::Header::specific_header
const uint32_t * specific_header(void) const
Definition
old/Header.h:130
eformat::old::SubDetectorFragment
Definition
old/SubDetectorFragment.h:27
eformat::old::SubDetectorFragment::check_tree
bool check_tree() const
Definition
SubDetectorFragment24.cxx:31
eformat::old
Definition
old/FullEventFragment.h:21
eformat
Definition
BadVersionIssue.h:20
eformat::FULL_EVENT
@ FULL_EVENT
Definition
HeaderMarker.h:30
FullEventFragment.h
Defines the Event Fragment entity. The definition is based on the update of ATL-DAQ-98-129,...
SubDetectorFragment.h
Defines the subdetector fragment entity. The definition is based on the update of ATL-DAQ-98-129,...
7.1.3
Event
eformat
eformat-00-01-00
src
old
FullEventFragment24.cxx
Generated by
1.13.2