Project
Loading...
Searching...
No Matches
Cluster.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.
14
15#include "MFTTracking/Cluster.h"
16
17#include "MathUtils/Utils.h"
18#include "MathUtils/Cartesian.h"
19
20namespace o2
21{
22namespace mft
23{
24
25Cluster::Cluster(const Float_t x, const Float_t y, const Float_t z, const Int_t index)
26 : BaseCluster(1, x, y, z),
27 phiCoordinate{0.},
28 rCoordinate{0.},
29 clusterId{index},
30 indexTableBin{0}
31{
32 auto clsPoint2D = math_utils::Point2D<Float_t>(x, y);
33 rCoordinate = clsPoint2D.R();
34 phiCoordinate = clsPoint2D.Phi();
36}
37
38} // namespace mft
39} // namespace o2
General auxilliary methods.
A simple structure for the MFT cluster, used by the standalone track finder.
GLint GLenum GLint x
Definition glcorearb.h:403
GLuint index
Definition glcorearb.h:781
GLdouble GLdouble GLdouble z
Definition glcorearb.h:843
void bringTo02PiGen(float &phi)
Definition Utils.h:80
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Float_t rCoordinate
Definition Cluster.h:45
Float_t phiCoordinate
Definition Cluster.h:44