BOSS 7.0.6
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:[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 SubDetector fragment interface
11 */
12
17
19 : eformat::old::Header(it, eformat::SUB_DETECTOR),
20 m_start(specific_header())
21{
22}
23
25{
26 eformat::old::Header::check(); //< first do a generic check
27 if (nspecific() != 1) throw EFORMAT_SIZE_CHECK(1, nspecific());
28 return true;
29}
30
32{
33 check(); // check myself
34 for (size_t i=0; i<noffset(); ++i) {
35 eformat::old::ROSFragment ros(child(i));
36 ros.check_tree();
37 }
38 return true;
39}
40
41
42
Defines the constants used by Event Fragments.
When size checks do not match, this exception must be thrown.
#define EFORMAT_SIZE_CHECK(actual, informed)
virtual bool check() const
Definition: Header24.cxx:29
@ SUB_DETECTOR
The SubDet. marker.
Definition: HeaderMarker.h:29
Describes the ROS fragment as defined in the Event Format note, version 2.4.
Defines the subdetector fragment entity. The definition is based on the update of ATL-DAQ-98-129,...