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
22std::string PrimaryVertex::asString() const
23{
25 fmt::format("Chi2={:.2f} NCont={:d}: T={:.3f}+-{:.3f} IR=", mChi2, mNContributors, mTimeStamp.getTimeStamp(), mTimeStamp.getTimeStampError()),
27 if (!hasUniqueIR()) {
29 }
30 return str;
31}
32
33std::ostream& operator<<(std::ostream& os, const o2::dataformats::PrimaryVertex& v)
34{
35 // stream itself
36 os << v.asString();
37 return os;
38}
39
41{
42 std::cout << *this << std::endl;
43}
44
45} // namespace dataformats
46} // namespace o2
InteractionRecord mIRMax
by default not assigned!
InteractionRecord mIRMin
by default not assigned!
std::string asString() const
Definition Vertex.cxx:23
TimeStampWithError< float, float > mTimeStamp
vertex time-stamp
Definition Vertex.h:178
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