Project
Loading...
Searching...
No Matches
CTFHeader.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
13#include <Framework/Logger.h>
14
15using namespace o2::ctf;
17
19std::string CTFHeader::describe() const
20{
21 return fmt::format("Run:{:07d} TF:{} Orbit:{:08d} CreationTime:{} Detectors: {}", run, tfCounter, firstTForbit, creationTime, DetID::getNames(detectors));
22}
23
24void CTFHeader::print() const
25{
26 LOG(info) << describe();
27}
28
29std::ostream& o2::ctf::operator<<(std::ostream& stream, const CTFHeader& h)
30{
31 stream << h.describe();
32 return stream;
33}
Header for CTF collection.
Class for time synchronization of RawReader instances.
Static class with identifiers, bitmasks and names for ALICE detectors.
Definition DetID.h:58
static std::string getNames(mask_t mask, char delimiter=',')
Definition DetID.cxx:74
GLuint GLuint stream
Definition glcorearb.h:1806
pair of input and output size
Definition ANSHeader.h:25
std::ostream & operator<<(std::ostream &stream, const CTFHeader &c)
Definition CTFHeader.cxx:29
uint32_t firstTForbit
Definition CTFHeader.h:31
std::string describe() const
describe itsel as a string
Definition CTFHeader.cxx:19
uint32_t tfCounter
Definition CTFHeader.h:32
void print() const
Definition CTFHeader.cxx:24
o2::detectors::DetID::mask_t detectors
Definition CTFHeader.h:33
uint64_t creationTime
Definition CTFHeader.h:30
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"