Project
Loading...
Searching...
No Matches
V0.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_V0_H
13
#define ALICEO2_V0_H
14
15
#include "
ReconstructionDataFormats/VtxTrackIndex.h
"
16
#include "
ReconstructionDataFormats/Track.h
"
17
#include "
ReconstructionDataFormats/PID.h
"
18
#include "
ReconstructionDataFormats/DecayNBodyIndex.h
"
// RS Remove after dropping indices in O2Physics
19
#include <array>
20
#include <Math/SVector.h>
21
22
namespace
o2
23
{
24
namespace
dataformats
25
{
26
27
class
V0
:
public
o2::track::TrackParCov
28
{
29
public
:
30
using
GIndex
=
o2::dataformats::VtxTrackIndex
;
31
using
Track
=
o2::track::TrackParCov
;
32
using
PID
=
o2::track::PID
;
33
34
V0
() =
default
;
35
36
V0
(
const
std::array<float, 3>& xyz,
const
std::array<float, 3>& pxyz,
const
std::array<float, 6>& covxyz,
37
const
o2::track::TrackParCov
& trPos,
const
o2::track::TrackParCov
& trNeg,
o2::track::PID
pid = o2::track::PID::K0);
38
39
const
Track
&
getProng
(
int
i
)
const
{
return
mProngs
[
i
]; }
40
Track
&
getProng
(
int
i
) {
return
mProngs
[
i
]; }
41
void
setProng
(
int
i
,
const
Track
& t) {
mProngs
[
i
] = t; }
42
43
float
getCosPA
()
const
{
return
mCosPA
; }
44
void
setCosPA
(
float
c
) {
mCosPA
=
c
; }
45
46
float
getDCA
()
const
{
return
mDCA
; }
47
void
setDCA
(
float
d) {
mDCA
= d; }
48
49
float
calcMass2
()
const
{
return
calcMass2PID
(
mProngs
[0].getPID(),
mProngs
[1].getPID()); }
50
float
calcMass2PID
(
PID
pidPos,
PID
pidNeg)
const
{
return
calcMass2
(PID::getMass2(pidPos), PID::getMass2(pidNeg)); }
51
float
calcMass2
(
float
massPos2,
float
massNeg2)
const
;
52
53
float
calcMass2AsPhoton
()
const
{
return
calcMass2PID
(PID::Electron, PID::Electron); }
54
float
calcMass2AsK0
()
const
{
return
calcMass2PID
(PID::Pion, PID::Pion); }
55
float
calcMass2AsLambda
()
const
{
return
calcMass2PID
(PID::Proton, PID::Pion); }
56
float
calcMass2AsAntiLambda
()
const
{
return
calcMass2PID
(PID::Pion, PID::Proton); }
57
float
calcMass2AsHyperTriton
()
const
{
return
calcMass2PID
(PID::Helium3, PID::Pion); }
58
float
calcMass2AsAntiHyperTriton
()
const
{
return
calcMass2PID
(PID::Pion, PID::Helium3); }
59
float
calcMass2AsHyperhydrog4
()
const
{
return
calcMass2PID
(PID::Alpha, PID::Pion); }
60
float
calcMass2AsAntiHyperhydrog4
()
const
{
return
calcMass2PID
(PID::Pion, PID::Alpha); }
61
float
calcAPQt
()
const
;
62
float
calcAPAlpha
()
const
;
63
float
calcR2
()
const
{
return
getX() * getX() + getY() * getY(); }
64
65
protected
:
66
std::array<Track, 2>
mProngs
;
// prongs kinematics at vertex
67
float
mCosPA
= 0;
// cos of pointing angle
68
float
mDCA
= 9990;
// distance of closest approach of prongs
69
70
ClassDefNV
(
V0
, 2);
71
};
72
73
}
// namespace dataformats
74
}
// namespace o2
75
#endif
PID.h
particle ids, masses, names class definition
Track.h
Base track model for the Barrel, params only, w/o covariance.
DecayNBodyIndex.h
i
int32_t i
Definition
GPUCommonAlgorithm.h:451
c
uint32_t c
Definition
RawData.h:2
VtxTrackIndex.h
Extention of GlobalTrackID by flags relevant for verter-track association.
o2::dataformats::V0
Definition
V0.h:28
o2::dataformats::V0::ClassDefNV
ClassDefNV(V0, 2)
o2::dataformats::V0::calcMass2AsPhoton
float calcMass2AsPhoton() const
Definition
V0.h:53
o2::dataformats::V0::getCosPA
float getCosPA() const
Definition
V0.h:43
o2::dataformats::V0::calcMass2AsHyperhydrog4
float calcMass2AsHyperhydrog4() const
Definition
V0.h:59
o2::dataformats::V0::calcMass2PID
float calcMass2PID(PID pidPos, PID pidNeg) const
Definition
V0.h:50
o2::dataformats::V0::Track
o2::track::TrackParCov Track
Definition
V0.h:31
o2::dataformats::V0::getProng
const Track & getProng(int i) const
Definition
V0.h:39
o2::dataformats::V0::setDCA
void setDCA(float d)
Definition
V0.h:47
o2::dataformats::V0::mProngs
std::array< Track, 2 > mProngs
Definition
V0.h:66
o2::dataformats::V0::calcMass2
float calcMass2() const
Definition
V0.h:49
o2::dataformats::V0::setCosPA
void setCosPA(float c)
Definition
V0.h:44
o2::dataformats::V0::calcR2
float calcR2() const
Definition
V0.h:63
o2::dataformats::V0::calcMass2AsAntiHyperTriton
float calcMass2AsAntiHyperTriton() const
Definition
V0.h:58
o2::dataformats::V0::calcMass2AsK0
float calcMass2AsK0() const
Definition
V0.h:54
o2::dataformats::V0::V0
V0()=default
o2::dataformats::V0::calcMass2AsAntiLambda
float calcMass2AsAntiLambda() const
Definition
V0.h:56
o2::dataformats::V0::calcAPAlpha
float calcAPAlpha() const
Definition
V0.cxx:39
o2::dataformats::V0::getProng
Track & getProng(int i)
Definition
V0.h:40
o2::dataformats::V0::calcAPQt
float calcAPQt() const
Definition
V0.cxx:55
o2::dataformats::V0::mCosPA
float mCosPA
Definition
V0.h:67
o2::dataformats::V0::calcMass2AsHyperTriton
float calcMass2AsHyperTriton() const
Definition
V0.h:57
o2::dataformats::V0::setProng
void setProng(int i, const Track &t)
Definition
V0.h:41
o2::dataformats::V0::getDCA
float getDCA() const
Definition
V0.h:46
o2::dataformats::V0::calcMass2AsAntiHyperhydrog4
float calcMass2AsAntiHyperhydrog4() const
Definition
V0.h:60
o2::dataformats::V0::calcMass2AsLambda
float calcMass2AsLambda() const
Definition
V0.h:55
o2::dataformats::V0::mDCA
float mDCA
Definition
V0.h:68
o2::dataformats::VtxTrackIndex
Definition
VtxTrackIndex.h:31
o2::track::PID
Definition
PID.h:89
o2::track::TrackParCov
TrackParCovF TrackParCov
Definition
Track.h:33
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
FlattenRestore.h:23
DataFormats
Reconstruction
include
ReconstructionDataFormats
V0.h
Generated on Fri Oct 9 2026 22:17:05 for Project by
1.9.8