Project
Loading...
Searching...
No Matches
Decay3Body.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_3BODY_H
13
#define ALICEO2_3BODY_H
14
15
#include "
ReconstructionDataFormats/Track.h
"
16
#include "
ReconstructionDataFormats/PID.h
"
17
#include <array>
18
#include <Math/SVector.h>
19
20
namespace
o2
21
{
22
namespace
dataformats
23
{
24
25
class
Decay3Body
:
public
o2::track::TrackParCov
26
{
27
public
:
28
using
Track
=
o2::track::TrackParCov
;
29
using
PID
=
o2::track::PID
;
30
31
Decay3Body
() =
default
;
32
Decay3Body
(
const
std::array<float, 3>& xyz,
const
std::array<float, 3>& pxyz,
const
std::array<float, 6>& covxyz,
const
Track
& tr0,
const
Track
& tr1,
const
Track
& tr2,
o2::track::PID
pid = o2::track::PID::HyperTriton);
33
34
const
Track
&
getProng
(
int
i
)
const
{
return
mProngs
[
i
]; }
35
Track
&
getProng
(
int
i
) {
return
mProngs
[
i
]; }
36
void
setProng
(
int
i
,
const
Track
& t) {
mProngs
[
i
] = t; }
37
38
float
getCosPA
()
const
{
return
mCosPA
; }
39
void
setCosPA
(
float
c
) {
mCosPA
=
c
; }
40
41
float
getDCA
()
const
{
return
mDCA
; }
42
void
setDCA
(
float
d) {
mDCA
= d; }
43
44
float
calcMass2
()
const
{
return
calcMass2PID
(
mProngs
[0].getPID(),
mProngs
[1].getPID(),
mProngs
[2].getPID()); }
45
float
calcMass2PID
(
int
pid0
,
int
pid1
,
int
pid2
)
const
{
return
calcMass2
(PID::getMass2(
pid0
), PID::getMass2(
pid1
), PID::getMass2(
pid2
)); }
46
float
calcMass2
(
float
mass0,
float
mass1,
float
mass2)
const
;
47
48
float
calcR2
()
const
{
return
getX() * getX() + getY() * getY(); }
49
50
protected
:
51
std::array<Track, 3>
mProngs
;
// prongs kinematics at vertex
52
float
mCosPA
= 0;
// cos of pointing angle
53
float
mDCA
= 9990;
// distance of closest approach of prongs
54
55
ClassDefNV
(
Decay3Body
, 1);
56
};
57
58
}
// namespace dataformats
59
}
// namespace o2
60
#endif
PID.h
particle ids, masses, names class definition
Track.h
Base track model for the Barrel, params only, w/o covariance.
i
int32_t i
Definition
GPUCommonAlgorithm.h:451
pid1
uint32_t pid1
Definition
RawData.h:2
c
uint32_t c
Definition
RawData.h:2
pid0
uint32_t pid0
Definition
RawData.h:1
pid2
uint32_t pid2
Definition
RawData.h:3
o2::dataformats::Decay3Body
TO BE DONE: extend to generic N body vertex.
Definition
Decay3Body.h:26
o2::dataformats::Decay3Body::calcMass2PID
float calcMass2PID(int pid0, int pid1, int pid2) const
Definition
Decay3Body.h:45
o2::dataformats::Decay3Body::calcR2
float calcR2() const
Definition
Decay3Body.h:48
o2::dataformats::Decay3Body::getDCA
float getDCA() const
Definition
Decay3Body.h:41
o2::dataformats::Decay3Body::getProng
const Track & getProng(int i) const
Definition
Decay3Body.h:34
o2::dataformats::Decay3Body::getCosPA
float getCosPA() const
Definition
Decay3Body.h:38
o2::dataformats::Decay3Body::setCosPA
void setCosPA(float c)
Definition
Decay3Body.h:39
o2::dataformats::Decay3Body::ClassDefNV
ClassDefNV(Decay3Body, 1)
o2::dataformats::Decay3Body::Track
o2::track::TrackParCov Track
Definition
Decay3Body.h:28
o2::dataformats::Decay3Body::setProng
void setProng(int i, const Track &t)
Definition
Decay3Body.h:36
o2::dataformats::Decay3Body::calcMass2
float calcMass2() const
Definition
Decay3Body.h:44
o2::dataformats::Decay3Body::mCosPA
float mCosPA
Definition
Decay3Body.h:52
o2::dataformats::Decay3Body::Decay3Body
Decay3Body()=default
o2::dataformats::Decay3Body::mDCA
float mDCA
Definition
Decay3Body.h:53
o2::dataformats::Decay3Body::getProng
Track & getProng(int i)
Definition
Decay3Body.h:35
o2::dataformats::Decay3Body::setDCA
void setDCA(float d)
Definition
Decay3Body.h:42
o2::dataformats::Decay3Body::mProngs
std::array< Track, 3 > mProngs
Definition
Decay3Body.h:51
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
Decay3Body.h
Generated on Wed Sep 30 2026 16:05:57 for Project by
1.9.8