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
12
#include "
ReconstructionDataFormats/PrimaryVertex.h
"
13
#include <fmt/printf.h>
14
#include <iostream>
15
#include "
CommonUtils/StringUtils.h
"
16
17
namespace
o2
18
{
19
namespace
dataformats
20
{
21
22
std::string
PrimaryVertex::asString
()
const
23
{
24
auto
str
=
o2::utils::Str::concat_string
(
VertexBase::asString
(),
25
fmt::format(
"Chi2={:.2f} NCont={:d}: T={:.3f}+-{:.3f} IR="
,
mChi2
,
mNContributors
,
mTimeStamp
.getTimeStamp(),
mTimeStamp
.getTimeStampError()),
26
mIRMin
.
asString
());
27
if
(!
hasUniqueIR
()) {
28
str
=
o2::utils::Str::concat_string
(
str
,
" : "
,
mIRMax
.
asString
());
29
}
30
return
str
;
31
}
32
33
std::ostream&
operator<<
(std::ostream& os,
const
o2::dataformats::PrimaryVertex
&
v
)
34
{
35
// stream itself
36
os <<
v
.asString();
37
return
os;
38
}
39
40
void
PrimaryVertex::print
()
const
41
{
42
std::cout << *
this
<< std::endl;
43
}
44
45
}
// namespace dataformats
46
}
// namespace o2
StringUtils.h
PrimaryVertex.h
o2::dataformats::PrimaryVertex
Definition
PrimaryVertex.h:26
o2::dataformats::PrimaryVertex::hasUniqueIR
bool hasUniqueIR() const
Definition
PrimaryVertex.h:38
o2::dataformats::PrimaryVertex::asString
std::string asString() const
Definition
PrimaryVertex.cxx:22
o2::dataformats::PrimaryVertex::mIRMax
InteractionRecord mIRMax
by default not assigned!
Definition
PrimaryVertex.h:52
o2::dataformats::PrimaryVertex::mIRMin
InteractionRecord mIRMin
by default not assigned!
Definition
PrimaryVertex.h:51
o2::dataformats::PrimaryVertex::print
void print() const
Definition
PrimaryVertex.cxx:40
o2::dataformats::VertexBase::asString
std::string asString() const
Definition
Vertex.cxx:23
o2::dataformats::Vertex< TimeStampWithError< float, float > >::mNContributors
ushort mNContributors
N contributors.
Definition
Vertex.h:176
o2::dataformats::Vertex< TimeStampWithError< float, float > >::mChi2
const float ushort float mChi2(chi2)
o2::dataformats::Vertex< TimeStampWithError< float, float > >::mTimeStamp
TimeStampWithError< float, float > mTimeStamp
vertex time-stamp
Definition
Vertex.h:178
v
const GLdouble * v
Definition
glcorearb.h:832
o2::dataformats::operator<<
std::ostream & operator<<(std::ostream &os, const o2::dataformats::MeanVertexObject &o)
Definition
MeanVertexObject.cxx:51
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
FlattenRestore.h:23
o2::InteractionRecord::asString
std::string asString() const
Definition
InteractionRecord.cxx:18
o2::utils::Str::concat_string
static std::string concat_string(Ts const &... ts)
Definition
StringUtils.h:144
str
const std::string str
Definition
test_ransEncodeDecode.cxx:37
DataFormats
Reconstruction
src
PrimaryVertex.cxx
Generated on Tue May 5 2026 22:19:39 for Project by
1.9.8