BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
SubDetectorFragment24.cxx
Go to the documentation of this file.
1
// Dear emacs, this is -*- c++ -*-
2
3
/**
4
* @file old/SubDetectorFragment.cxx
5
* @author <a href="mailto:Andre.dos.Anjos@cern.ch">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 SubDetector fragment interface
11
*/
12
13
#include "eformat/HeaderMarker.h"
14
#include "eformat/SizeCheckIssue.h"
15
#include "eformat/old/ROSFragment.h"
16
#include "eformat/old/SubDetectorFragment.h"
17
18
eformat::old::SubDetectorFragment::SubDetectorFragment
(
const
uint32_t* it )
19
:
eformat
::
old
::
Header
( it,
eformat
::
SUB_DETECTOR
), m_start(
specific_header
() ) {}
20
21
bool
eformat::old::SubDetectorFragment::check
()
const
{
22
eformat::old::Header::check
();
//< first do a generic check
23
if
(
nspecific
() != 1 )
throw
EFORMAT_SIZE_CHECK
( 1,
nspecific
() );
24
return
true
;
25
}
26
27
bool
eformat::old::SubDetectorFragment::check_tree
()
const
{
28
check
();
// check myself
29
for
(
size_t
i = 0; i <
noffset
(); ++i )
30
{
31
eformat::old::ROSFragment
ros(
child
( i ) );
32
ros.
check_tree
();
33
}
34
return
true
;
35
}
EFORMAT_SIZE_CHECK
#define EFORMAT_SIZE_CHECK(actual, informed)
Definition
Event/eformat/include/eformat/SizeCheckIssue.h:64
eformat::old::Header::check
virtual bool check() const
Definition
Header24.cxx:27
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:36
eformat::old::Header::noffset
uint32_t noffset() const
Definition
Event/eformat/include/eformat/old/Header.h:109
eformat::old::Header::nspecific
uint32_t nspecific() const
Definition
Event/eformat/include/eformat/old/Header.h:121
eformat::old::Header::specific_header
const uint32_t * specific_header(void) const
Definition
Event/eformat/include/eformat/old/Header.h:127
eformat::old::ROSFragment
Definition
Event/eformat/include/eformat/old/ROSFragment.h:27
eformat::old::ROSFragment::check_tree
bool check_tree() const
Definition
ROSFragment24.cxx:27
eformat::old::SubDetectorFragment::SubDetectorFragment
SubDetectorFragment(const uint32_t *it)
Definition
SubDetectorFragment24.cxx:18
eformat::old::SubDetectorFragment::check_tree
bool check_tree() const
Definition
SubDetectorFragment24.cxx:27
eformat::old::SubDetectorFragment::check
virtual bool check() const
Definition
SubDetectorFragment24.cxx:21
eformat::old
Definition
Event/eformat/include/eformat/old/FullEventFragment.h:21
eformat
Definition
Event/eformat/include/eformat/BadVersionIssue.h:20
eformat::SUB_DETECTOR
@ SUB_DETECTOR
The SubDet. marker.
Definition
Event/eformat/include/eformat/HeaderMarker.h:30
8.0.0
BOSS_Source
Event
eformat
src
old
SubDetectorFragment24.cxx
Generated by
1.16.1