Project
Loading...
Searching...
No Matches
VisualisationTrack.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.
11
18
20
21using namespace std;
22
24{
25
27
29{
30 this->mCharge = vo.charge;
31 this->mPID = vo.PID;
32 this->mBGID = vo.gid;
33 this->mTheta = vo.theta;
34 this->mPhi = vo.phi;
35 this->mEta = vo.eta;
36 this->addStartCoordinates(vo.startXYZ);
37 // this->mSource = vo.source;
38 this->mTime = vo.time;
39}
40
42{
43 this->mCharge = src.mCharge;
44 this->mPID = src.mPID;
45 this->mBGID = src.mBGID;
46 this->mTheta = src.mTheta;
47 this->mPhi = src.mPhi;
48 this->mEta = src.mEta;
49 this->addStartCoordinates(src.getStartCoordinates());
50 // this->mSource = src.mSource;
51 this->mTime = src.mTime;
52
53 this->mPolyX = src.mPolyX;
54 this->mPolyY = src.mPolyY;
55 this->mPolyZ = src.mPolyZ;
56 this->mClusters = src.mClusters;
57}
58
59void VisualisationTrack::addStartCoordinates(const float xyz[3])
60{
61 for (int i = 0; i < 3; i++) {
62 mStartCoordinates[i] = xyz[i];
63 }
64}
65
66void VisualisationTrack::addPolyPoint(float x, float y, float z)
67{
68 mPolyX.push_back(x);
69 mPolyY.push_back(y);
70 mPolyZ.push_back(z);
71}
72
74{
75 mPolyX.push_back(p[0]);
76 mPolyY.push_back(p[1]);
77 mPolyZ.push_back(p[2]);
78}
79
81{
82 mClusters.emplace_back(pos, this->mTime, this->mBGID);
83 return mClusters.back();
84}
85
86} // namespace o2
int32_t i
uint16_t pos
Definition RawData.h:3
VisualisationCluster & addCluster(const float pos[])
void addPolyPoint(float x, float y, float z)
GLint GLenum GLint x
Definition glcorearb.h:403
GLenum src
Definition glcorearb.h:1767
GLdouble GLdouble GLdouble z
Definition glcorearb.h:843
Defining DataPointCompositeObject explicitly as copiable.