Project
Loading...
Searching...
No Matches
Label.cxx
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.
15
16#include "ITStracking/Label.h"
17
18namespace o2
19{
20namespace its
21{
22
23Label::Label(const int mcId, const float pT, const float phi, const float eta, const int pdg, const int ncl)
24 : monteCarloId{mcId},
25 transverseMomentum{pT},
26 phi{phi},
27 pseudorapidity{eta},
28 pdgCode{pdg},
29 numberOfClusters{ncl}
30{
31 // Nothing to do
32}
33
34std::ostream& operator<<(std::ostream& outputStream, const Label& label)
35{
36 outputStream << label.monteCarloId << "\t" << label.transverseMomentum << "\t" << label.phi << "\t"
37 << label.pseudorapidity << "\t" << label.pdgCode << "\t" << label.numberOfClusters;
38
39 return outputStream;
40}
41} // namespace its
42} // namespace o2
GLuint GLsizei const GLchar * label
Definition glcorearb.h:2519
std::ostream & operator<<(std::ostream &os, Detector &source)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...