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>
22
23namespace o2
24{
25namespace ctf
26{
27
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
47};
48
49} // namespace ctf
50} // namespace o2
51
52#endif
bool o
Static class with identifiers, bitmasks and names for ALICE detectors.
Definition DetID.h:58
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Detector header base.
bool isValidDictTimeStamp() const
bool operator==(const CTFDictHeader &o) const
std::string asString() const
o2::detectors::DetID det
ClassDefNV(CTFDictHeader, 2)
bool operator!=(const CTFDictHeader &o) const