BOSS
7.0.1
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
EFORMAT_SIZE_CHECK
#define EFORMAT_SIZE_CHECK(actual, informed)
Definition:
Event/eformat/eformat-00-00-04/eformat/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
Definition:
Event/eformat/eformat-00-00-04/eformat/old/Header.h:40
eformat::old::Header::check
virtual bool check() const
Definition:
Header24.cxx:29
eformat::old::SubDetectorFragment
Definition:
Event/eformat/eformat-00-00-04/eformat/old/SubDetectorFragment.h:27
eformat::old::SubDetectorFragment::check_tree
bool check_tree() const
Definition:
SubDetectorFragment24.cxx:31
eformat
Definition:
Event/eformat/eformat-00-00-04/eformat/BadVersionIssue.h:20
eformat::FULL_EVENT
@ FULL_EVENT
Definition:
Event/eformat/eformat-00-00-04/eformat/HeaderMarker.h:30
source
Event
eformat
eformat-00-00-04
src
old
FullEventFragment24.cxx
Generated by
1.9.6