Project
Loading...
Searching...
No Matches
ROFRecord.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
12#include <iostream>
13#include <format>
14
16#include "Framework/Logger.h"
17
18using namespace o2::itsmft;
19
20std::string ROFRecord::asString() const
21{
22 return std::format("ROF: {} | {} entries starting from {} | IR: {}", mROFrame, getNEntries(), getFirstEntry(), mBCData.asString());
23}
24
25void ROFRecord::print() const
26{
27 LOG(info) << asString();
28}
29
30std::ostream& operator<<(std::ostream& stream, ROFRecord const& rec)
31{
32 stream << rec.asString();
33 return stream;
34}
35
36std::string MC2ROFRecord::asString() const
37{
38 return std::format("MCEventID: {} ROFs: {}-{} Entry in ROFRecords: {}", eventRecordID, minROF, maxROF, rofRecordID);
39}
40
42{
43 LOG(info) << asString();
44}
45
46std::ostream& operator<<(std::ostream& stream, MC2ROFRecord const& rec)
47{
48 stream << rec.asString();
49 return stream;
50}
Definition of the ITSMFT ROFrame (trigger) record.
int getNEntries() const
Definition ROFRecord.h:62
std::string asString() const
Definition ROFRecord.cxx:20
int getFirstEntry() const
Definition ROFRecord.h:63
GLuint GLuint stream
Definition glcorearb.h:1806
std::ostream & operator<<(std::ostream &os, const ClusterPattern &pattern)
GPUReconstruction * rec
std::string asString() const
std::string asString() const
Definition ROFRecord.cxx:36
ROFtype maxROF
last ROF event contributed
Definition ROFRecord.h:116
int rofRecordID
1st entry in the ROFRecords vector
Definition ROFRecord.h:114
int eventRecordID
MCevent entry in the EventRecord.
Definition ROFRecord.h:113
ROFtype minROF
1st ROFrame it contributed
Definition ROFRecord.h:115
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"