Project
Loading...
Searching...
No Matches
DCA.h
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#ifndef ALICEO2_DCA_H
13#define ALICEO2_DCA_H
14
15#include "GPUCommonDef.h"
16#include "GPUCommonRtypes.h"
17
18#ifndef GPUCA_GPUCODE_DEVICE
19#include <iosfwd>
20#include <array>
21#endif
22
25
26namespace o2
27{
28namespace dataformats
29{
30
31class DCA
32{
33
34 public:
35 GPUdDefault() DCA() = default;
36
37 GPUd() DCA(float y, float z, float syy = 0.f, float syz = 0.f, float szz = 0.f)
38 {
39 set(y, z, syy, syz, szz);
40 }
41
42 GPUd() void set(float y, float z, float syy, float syz, float szz)
43 {
44 mY = y;
45 mZ = z;
46 mCov[0] = syy;
47 mCov[1] = syz;
48 mCov[2] = szz;
49 }
50
51 GPUd() void set(float y, float z)
52 {
53 mY = y;
54 mZ = z;
55 }
56
57 GPUd() void setY(float y) { mY = y; }
58 GPUd() void setZ(float z) { mZ = z; }
59 GPUd() void setSigmaY2(float v) { mCov[0] = v; }
60 GPUd() void setSigmaYZ(float v) { mCov[1] = v; }
61 GPUd() void setSigmaZ2(float v) { mCov[2] = v; }
62 GPUd() void addCov(const std::array<float, 3>& vadd)
63 {
64 mCov[0] += vadd[0];
65 mCov[1] += vadd[1];
66 mCov[2] += vadd[2];
67 }
68 GPUd() auto getY() const { return mY; }
69 GPUd() auto getZ() const { return mZ; }
70 GPUd() auto getR2() const { return mY * mY + mZ * mZ; }
71 GPUd() auto getSigmaY2() const { return mCov[0]; }
72 GPUd() auto getSigmaYZ() const { return mCov[1]; }
73 GPUd() auto getSigmaZ2() const { return mCov[2]; }
74 GPUd() const auto& getCovariance() const { return mCov; }
75 GPUd() float calcChi2() const;
76
77 void print() const;
78
79 private:
80 float mY = 0.f;
81 float mZ = 0.f;
82 std::array<float, 3> mCov;
83
84 ClassDefNV(DCA, 1);
85};
86
87#ifndef GPUCA_GPUCODE_DEVICE
88std::ostream& operator<<(std::ostream& os, const DCA& d);
89#endif
90
91} // namespace dataformats
92} // namespace o2
93
94#endif //ALICEO2_DCA_H
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual Show related Highlight grid Show only individual collision Color clusters belonging to track objects Set line Enable drawing TPC data Enable drawing TOF data Enable drawing magnetic field Set field line step count Invert colors configStandalone Heavy OpenGL display display_heavy Show tracks with ITS contribution Show tracks with TOF contribution Enable propagation of loopers Show clusters at nominal x of pad row for early transformed data Split CE tracks when they cross the central Mark clusters Mark adjacent clusters Hide rejected tracks Apply filter on tracks to be displayed Separate increase X h configStandalone Camera window renderer OpenGL display display_camera Orient the camera such that the y axis is always upwards Full Screen MultiSample Anti Downsampling Anti Enable Vertical Sync Target frame or if the backend cannot limit to the refresh Use OpenGL indirect draws to reduce number of draw calls Display h configStandalone Vulkan display display_vulkan Have uniform buffers in host accessible device memory h configStandalone Internal display display_internal Number of updates the Qt GUI may send ahead of the last one the display has before it waits for the display Opacity of the console background Number of console lines the history is shortened to this when it reaches twice the size Time in seconds an info message fades out after setInfoTime h OpenGL display display Font size Do not use Freetype for font auto
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events d
configStandalone Reconstruction rec_tpc float
float float float float szz
Definition DCA.h:37
GPUdDefault() DCA()=default
GPUd() DCA(float y
float float float syz
Definition DCA.h:37
float float syy
Definition DCA.h:37
void print() const
Definition DCA.cxx:42
const GLdouble * v
Definition glcorearb.h:832
GLdouble f
Definition glcorearb.h:310
GLint y
Definition glcorearb.h:270
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
GLdouble GLdouble GLdouble z
Definition glcorearb.h:843
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 ...