Project
Loading...
Searching...
No Matches
PVertexerHelpers.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
15
16
#include "
DetectorsVertexing/PVertexerHelpers.h
"
17
18
using namespace
o2::vertexing
;
19
20
void
VertexSeed::print
()
const
21
{
22
auto
terr2 =
tMeanAccErr
> 0 ? 1. /
tMeanAccErr
: 0.;
23
LOGF(info,
"VtxSeed: Scale: %+e ScalePrev: %+e |NScaleIncreased: %d NSlowDecrease: %d| WChi2: %e WSum: %e | TMean: %e TMeanE: %e\n"
,
24
scaleSigma2
,
scaleSigma2Prev
,
nScaleIncrease
,
nScaleSlowConvergence
,
wghChi2
,
wghSum
,
tMeanAcc
* terr2, std::sqrt(terr2));
25
double
dZP, rmsZP, dZN, rmsZN, dTP, rmsTP, dTN, rmsTN;
26
double
dZ, rmsZ, dT, rmsT;
27
PVertex::print
();
28
}
29
30
int
SeedHistoTZ::findPeakBin
()
31
{
32
if
(
nEntries
< 2) {
33
return
-1;
34
}
35
int
maxBin = -1, ib =
filledBins
.size(), last = ib;
36
float
maxv = 0.;
37
while
(ib--) {
38
auto
bin =
filledBins
[ib];
39
auto
v
=
getBinContent
(bin);
40
if
(
v
> maxv) {
41
maxv =
v
;
42
maxBin = bin;
43
}
else
if
(
v
<= 0.) {
// bin was emptied
44
filledBins
[ib] =
filledBins
[--last];
// move last non-empty bin in place of emptied one
45
}
46
}
47
filledBins
.resize(last);
48
return
maxBin;
49
}
50
51
void
TrackVF::reportBadTrack
(
const
o2::track::TrackParCov
&
src
,
const
TimeEst
& t_est,
GTrackID
_gid)
52
{
53
constexpr
int
MaxRep = 10;
54
static
int
count
= 0;
55
if
(
count
< MaxRep) {
56
std::string
msg
= fmt::format(
"Will reject bad track {} {} at t={}"
, _gid.
asString
(),
src
.asString(), t_est.getTimeStamp());
57
if
(++
count
== MaxRep) {
58
msg
+=
" | further warnings will be suppressed"
;
59
}
60
LOG
(warn) <<
msg
;
61
}
62
}
PVertexerHelpers.h
Primary vertex finder helper classes.
o2::dataformats::FlatHisto2D::getBinContent
T getBinContent(uint32_t ib) const
Definition
FlatHisto2D.h:90
o2::dataformats::GlobalTrackID
Definition
GlobalTrackID.h:36
o2::dataformats::GlobalTrackID::asString
std::string asString() const
Definition
GlobalTrackID.cxx:25
o2::dataformats::PrimaryVertex::print
void print() const
Definition
PrimaryVertex.cxx:42
o2::dataformats::TimeStampWithError< float, float >
src
GLenum src
Definition
glcorearb.h:1767
count
GLint GLsizei count
Definition
glcorearb.h:399
v
const GLdouble * v
Definition
glcorearb.h:832
o2::track::TrackParCov
TrackParCovF TrackParCov
Definition
Track.h:33
o2::vertexing
Definition
testDCAFitterNGPU.cxx:29
o2::vertexing::SeedHistoTZ::filledBins
std::vector< int > filledBins
Definition
PVertexerHelpers.h:245
o2::vertexing::SeedHistoTZ::nEntries
int nEntries
Definition
PVertexerHelpers.h:246
o2::vertexing::SeedHistoTZ::findPeakBin
int findPeakBin()
Definition
PVertexerHelpers.cxx:30
o2::vertexing::TrackVF::reportBadTrack
void reportBadTrack(const o2::track::TrackParCov &src, const TimeEst &t_est, GTrackID _gid)
Definition
PVertexerHelpers.cxx:51
o2::vertexing::VertexSeed::print
void print() const
Definition
PVertexerHelpers.cxx:20
o2::vertexing::VertexSeed::tMeanAcc
double tMeanAcc
Definition
PVertexerHelpers.h:49
o2::vertexing::VertexSeed::nScaleIncrease
int nScaleIncrease
Definition
PVertexerHelpers.h:61
o2::vertexing::VertexSeed::scaleSigma2
float scaleSigma2
Definition
PVertexerHelpers.h:55
o2::vertexing::VertexSeed::tMeanAccErr
double tMeanAccErr
Definition
PVertexerHelpers.h:50
o2::vertexing::VertexSeed::wghChi2
double wghChi2
Definition
PVertexerHelpers.h:48
o2::vertexing::VertexSeed::scaleSigma2Prev
float scaleSigma2Prev
Definition
PVertexerHelpers.h:56
o2::vertexing::VertexSeed::nScaleSlowConvergence
int nScaleSlowConvergence
Definition
PVertexerHelpers.h:60
o2::vertexing::VertexSeed::wghSum
double wghSum
Definition
PVertexerHelpers.h:47
LOG
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
msg
uint64_t const void const *restrict const msg
Definition
x9.h:153
Detectors
Vertexing
src
PVertexerHelpers.cxx
Generated on Tue Feb 25 2025 23:16:36 for Project by
1.9.8