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
17
18namespace o2
19{
20namespace dataformats
21{
22
23// extended primary vertex info
24
27 std::array<uint16_t, o2::dataformats::GlobalTrackID::Source::NSources> nSrc{}; // N contributors for each source type
28 std::array<uint16_t, o2::dataformats::GlobalTrackID::Source::NSources> nSrcA{}; // N associated and passing cuts for each source type
29 std::array<uint16_t, o2::dataformats::GlobalTrackID::Source::NSources> nSrcAU{}; // N ambgous associated and passing cuts for each source type
30 double FT0Time = -1.; // time of closest FT0 trigger
31 float FT0A = -1; // amplitude of closest FT0 A side
32 float FT0C = -1; // amplitude of closest FT0 C side
33 int VtxID = -1; // original vtx ID
34
35 int getNSrc(int i) const { return nSrc[i]; }
36 int getNSrcA(int i) const { return nSrcA[i]; }
37 int getNSrcAU(int i) const { return nSrcAU[i]; }
38
39#ifndef GPUCA_ALIGPUCODE
40 void print() const;
41 std::string asString() const;
42#endif
43
45};
46
47#ifndef GPUCA_ALIGPUCODE
48std::ostream& operator<<(std::ostream& os, const o2::dataformats::PrimaryVertexExt& v);
49#endif
50
51} // namespace dataformats
52
54namespace framework
55{
56template <typename T>
57struct is_messageable;
58template <>
60};
61} // namespace framework
62
63} // namespace o2
64#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, 6)
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