Project
Loading...
Searching...
No Matches
CTFDictHeader.cxx
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
#include "
DetectorsCommonDataFormats/CTFDictHeader.h
"
17
#include <ctime>
18
#include <sstream>
19
#include <iomanip>
20
21
using namespace
o2::ctf
;
22
23
std::string
CTFDictHeader::asString
()
const
24
{
25
std::time_t temp =
dictTimeStamp
;
26
std::tm* t = std::gmtime(&temp);
27
std::stringstream ss;
28
ss <<
det
.
getName
() <<
" CTF dictionary v"
<<
int
(
majorVersion
) <<
'.'
<<
int
(
minorVersion
) <<
'.'
<<
dictTimeStamp
<<
" ("
<< std::put_time(t,
"%d/%m/%y %H:%M:%S"
) <<
" UTC)"
;
29
return
ss.str();
30
}
CTFDictHeader.h
Header: timestamps and format version for detector CTF dictionary.
int
o2::detectors::DetID::getName
static constexpr const char * getName(ID id)
names of defined detectors
Definition
DetID.h:145
o2::ctf
pair of input and output size
Definition
ANSHeader.h:25
o2::ctf::CTFDictHeader::dictTimeStamp
uint32_t dictTimeStamp
Definition
CTFDictHeader.h:31
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::minorVersion
uint8_t minorVersion
Definition
CTFDictHeader.h:33
DataFormats
Detectors
Common
src
CTFDictHeader.cxx
Generated on Tue Feb 25 2025 17:02:51 for Project by
1.9.8