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
13#include <iostream>
14#include "fmt/format.h"
15
16using namespace o2::itsmft;
17
18std::string ROFRecord::asString() const
19{
20 return fmt::format("ROF: {} | {} entries starting from {}", mROFrame, getNEntries(), getFirstEntry());
21}
22
23void ROFRecord::print() const
24{
25 std::cout << this << "\n\t" << mBCData << std::endl;
26}
27
28std::ostream& operator<<(std::ostream& stream, ROFRecord const& rec)
29{
30 stream << rec.asString();
31 return stream;
32}
33
34std::string MC2ROFRecord::asString() const
35{
36 return fmt::format("MCEventID: {} ROFs: {}-{} Entry in ROFRecords: {}", eventRecordID, minROF, maxROF, rofRecordID);
37}
38
40{
41 std::cout << this << std::endl;
42}
43
44std::ostream& operator<<(std::ostream& stream, MC2ROFRecord const& rec)
45{
46 stream << rec.asString();
47 return stream;
48}
Definition of the ITSMFT ROFrame (trigger) record.
int getNEntries() const
Definition ROFRecord.h:62
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:34
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