Project
Loading...
Searching...
No Matches
Cascade.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_CASCADE_H
13#define ALICEO2_CASCADE_H
14
19#include <array>
20#include <Math/SVector.h>
21
22namespace o2
23{
24namespace dataformats
25{
26
27class Cascade : public V0
28{
29 public:
30 using V0::V0;
31 Cascade() = default;
32
33 Cascade(const std::array<float, 3>& xyz, const std::array<float, 3>& pxyz, const std::array<float, 6>& covxyz,
34 const o2::track::TrackParCov& v0, const o2::track::TrackParCov& bachelor,
35 o2::track::PID pid = o2::track::PID::XiMinus) : V0(xyz, pxyz, covxyz, v0, bachelor, pid) {}
36
37 const Track& getV0Track() const { return mProngs[0]; }
38 Track& getV0Track() { return mProngs[0]; }
39
40 const Track& getBachelorTrack() const { return mProngs[1]; }
41 Track& getBachelorTrack() { return mProngs[1]; }
42
43 void setV0Track(const Track& t) { mProngs[0] = t; }
44 void setBachelorTrack(const Track& t) { mProngs[1] = t; }
45
48
50};
51
52} // namespace dataformats
53} // namespace o2
54#endif
particle ids, masses, names class definition
Base track model for the Barrel, params only, w/o covariance.
Global index for barrel track: provides provenance (detectors combination), index in respective array...
uint16_t pid
Definition RawData.h:2
Track & getBachelorTrack()
Definition Cascade.h:41
Cascade(const std::array< float, 3 > &xyz, const std::array< float, 3 > &pxyz, const std::array< float, 6 > &covxyz, const o2::track::TrackParCov &v0, const o2::track::TrackParCov &bachelor, o2::track::PID pid=o2::track::PID::XiMinus)
Definition Cascade.h:33
void setBachelorTrack(const Track &t)
Definition Cascade.h:44
float calcMass2AsXiMinus() const
Definition Cascade.h:46
const Track & getBachelorTrack() const
Definition Cascade.h:40
float calcMass2AsOmegaMinus() const
Definition Cascade.h:47
void setV0Track(const Track &t)
Definition Cascade.h:43
const Track & getV0Track() const
Definition Cascade.h:37
float calcMass2PID(PID pidPos, PID pidNeg) const
Definition V0.h:50
o2::track::TrackParCov Track
Definition V0.h:31
std::array< Track, 2 > mProngs
Definition V0.h:66
static constexpr ID Lambda
Definition PID.h:112
static constexpr ID Kaon
Definition PID.h:97
static constexpr ID Pion
Definition PID.h:96
static constexpr ID XiMinus
Definition PID.h:115
GLfloat v0
Definition glcorearb.h:811
TrackParCovF TrackParCov
Definition Track.h:33
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...