Project
Loading...
Searching...
No Matches
PrimaryVertex.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 <fmt/printf.h>
14#include <iostream>
16
17namespace o2
18{
19namespace dataformats
20{
21
22#ifndef GPUCA_ALIGPUCODE
23
24std::string PrimaryVertex::asString() const
25{
27 fmt::format("Chi2={:.2f} NCont={:d}: T={:.3f}+-{:.3f} IR=", mChi2, mNContributors, mTimeStamp.getTimeStamp(), mTimeStamp.getTimeStampError()),
29 if (!hasUniqueIR()) {
31 }
32 return str;
33}
34
35std::ostream& operator<<(std::ostream& os, const o2::dataformats::PrimaryVertex& v)
36{
37 // stream itself
38 os << v.asString();
39 return os;
40}
41
43{
44 std::cout << *this << std::endl;
45}
46
47#endif
48
49} // namespace dataformats
50} // namespace o2
InteractionRecord mIRMax
by default not assigned!
InteractionRecord mIRMin
by default not assigned!
std::string asString() const
Definition Vertex.cxx:25
TimeStampWithError< float, float > mTimeStamp
vertex time-stamp
Definition Vertex.h:158
const GLdouble * v
Definition glcorearb.h:832
std::ostream & operator<<(std::ostream &os, const o2::dataformats::MeanVertexObject &o)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::string asString() const
static std::string concat_string(Ts const &... ts)
const std::string str