Project
Loading...
Searching...
No Matches
PrimaryVertexExt.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_PRIMARYVERTEX_EXT_H
13#define ALICEO2_PRIMARYVERTEX_EXT_H
14
18
19namespace o2
20{
21namespace dataformats
22{
23
24// extended primary vertex info
25
28 std::array<uint16_t, o2::dataformats::GlobalTrackID::Source::NSources> nSrc{}; // N contributors for each source type
29 std::array<uint16_t, o2::dataformats::GlobalTrackID::Source::NSources> nSrcA{}; // N associated and passing cuts for each source type
30 std::array<uint16_t, o2::dataformats::GlobalTrackID::Source::NSources> nSrcAU{}; // N ambgous associated and passing cuts for each source type
32 double FT0Time = -1.; // time of closest FT0 trigger
33 float FT0A = -1; // amplitude of closest FT0 A side
34 float FT0C = -1; // amplitude of closest FT0 C side
35 int VtxID = -1; // original vtx ID
36
37 int getNSrc(int i) const { return nSrc[i]; }
38 int getNSrcA(int i) const { return nSrcA[i]; }
39 int getNSrcAU(int i) const { return nSrcAU[i]; }
40
41#ifndef GPUCA_GPUCODE_DEVICE
42 void print() const;
43 std::string asString() const;
44#endif
45
47};
48
49#ifndef GPUCA_GPUCODE_DEVICE
50std::ostream& operator<<(std::ostream& os, const o2::dataformats::PrimaryVertexExt& v);
51#endif
52
53} // namespace dataformats
54
56namespace framework
57{
58template <typename T>
59struct is_messageable;
60template <>
61struct is_messageable<o2::dataformats::PrimaryVertexExt> : std::true_type {
62};
63} // namespace framework
64
65} // namespace o2
66#endif
int32_t i
Global index for barrel track: provides provenance (detectors combination), index in respective array...
const GLdouble * v
Definition glcorearb.h:832
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 ...
ClassDefNV(PrimaryVertexExt, 7)
std::array< uint16_t, o2::dataformats::GlobalTrackID::Source::NSources > nSrcAU
std::array< uint16_t, o2::dataformats::GlobalTrackID::Source::NSources > nSrcA
std::array< uint16_t, o2::dataformats::GlobalTrackID::Source::NSources > nSrc