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
17#include <ctime>
18#include <sstream>
19#include <iomanip>
20
21using namespace o2::ctf;
22
23std::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}
Header: timestamps and format version for detector CTF dictionary.
static constexpr const char * getName(ID id)
names of defined detectors
Definition DetID.h:145
pair of input and output size
Definition ANSHeader.h:25
std::string asString() const
o2::detectors::DetID det