Project
Loading...
Searching...
No Matches
CTFDictHeader.h
Go to the documentation of this file.
1
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3
// All rights not expressly granted are reserved.
4
//
5
// This software is distributed under the terms of the GNU General Public
6
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7
//
8
// In applying this license CERN does not waive the privileges and immunities
9
// granted to it by virtue of its status as an Intergovernmental Organization
10
// or submit itself to any jurisdiction.
11
15
16
#ifndef _ALICEO2_CTFDICTHEADER_H
17
#define _ALICEO2_CTFDICTHEADER_H
18
19
#include <Rtypes.h>
20
#include <string>
21
#include "
DetectorsCommonDataFormats/DetID.h
"
22
23
namespace
o2
24
{
25
namespace
ctf
26
{
27
29
struct
CTFDictHeader
{
30
o2::detectors::DetID
det
{};
31
uint32_t
dictTimeStamp
= 0;
// dictionary creation time (seconds since epoch) / hash
32
uint8_t
majorVersion
= 1;
33
uint8_t
minorVersion
= 0;
34
35
bool
isValidDictTimeStamp
()
const
{
return
dictTimeStamp
!= 0; }
36
bool
operator==
(
const
CTFDictHeader
&
o
)
const
37
{
38
return
dictTimeStamp
==
o
.dictTimeStamp &&
majorVersion
==
o
.majorVersion &&
minorVersion
==
o
.minorVersion;
39
}
40
bool
operator!=
(
const
CTFDictHeader
&
o
)
const
41
{
42
return
dictTimeStamp
!=
o
.dictTimeStamp ||
majorVersion
!=
o
.majorVersion ||
minorVersion
!=
o
.minorVersion;
43
}
44
std::string
asString
()
const
;
45
46
ClassDefNV
(
CTFDictHeader
, 2);
47
};
48
49
}
// namespace ctf
50
}
// namespace o2
51
52
#endif
DetID.h
o
bool o
Definition
GPUTPCGMMerger.cxx:1459
o2::detectors::DetID
Static class with identifiers, bitmasks and names for ALICE detectors.
Definition
DetID.h:58
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
o2::ctf::CTFDictHeader
Detector header base.
Definition
CTFDictHeader.h:29
o2::ctf::CTFDictHeader::isValidDictTimeStamp
bool isValidDictTimeStamp() const
Definition
CTFDictHeader.h:35
o2::ctf::CTFDictHeader::dictTimeStamp
uint32_t dictTimeStamp
Definition
CTFDictHeader.h:31
o2::ctf::CTFDictHeader::operator==
bool operator==(const CTFDictHeader &o) const
Definition
CTFDictHeader.h:36
o2::ctf::CTFDictHeader::asString
std::string asString() const
Definition
CTFDictHeader.cxx:23
o2::ctf::CTFDictHeader::majorVersion
uint8_t majorVersion
Definition
CTFDictHeader.h:32
o2::ctf::CTFDictHeader::det
o2::detectors::DetID det
Definition
CTFDictHeader.h:30
o2::ctf::CTFDictHeader::ClassDefNV
ClassDefNV(CTFDictHeader, 2)
o2::ctf::CTFDictHeader::minorVersion
uint8_t minorVersion
Definition
CTFDictHeader.h:33
o2::ctf::CTFDictHeader::operator!=
bool operator!=(const CTFDictHeader &o) const
Definition
CTFDictHeader.h:40
DataFormats
Detectors
Common
include
DetectorsCommonDataFormats
CTFDictHeader.h
Generated on Tue Feb 25 2025 17:02:51 for Project by
1.9.8