Project
Loading...
Searching...
No Matches
VisualisationCalo.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
16
17#ifndef O2EVE_VISUALISATIONCALO_H
18#define O2EVE_VISUALISATIONCALO_H
19
20#include "rapidjson/document.h"
22
24{
25
27{
30
31 public:
33
36 float time = 0;
37 float energy = 0.0f;
38 float phi = 0;
39 float eta = 0;
40 int PID = 0;
42 };
43 explicit VisualisationCalo(const VisualisationCaloVO& vo);
44
46
47 [[nodiscard]] float getEnergy() const { return mEnergy; }
48 [[nodiscard]] float getTime() const { return mTime; }
49 [[nodiscard]] int getPID() const { return mPID; }
50 [[nodiscard]] o2::dataformats::GlobalTrackID getGID() const { return mBGID; }
51 [[nodiscard]] o2::dataformats::GlobalTrackID::Source getSource() const { return static_cast<o2::dataformats::GlobalTrackID::Source>(mBGID.getSource()); }
52 [[nodiscard]] float getPhi() const { return mPhi; }
53 [[nodiscard]] float getEta() const { return mEta; }
54
55 private:
56 float mTime;
57 float mEnergy;
58 int mPID;
59 float mEta;
60 float mPhi;
62};
63
64} // namespace o2::event_visualisation
65
66#endif // O2EVE_VISUALISATIONCALO_H
Global index for barrel track: provides provenance (detectors combination), index in respective array...
o2::dataformats::GlobalTrackID::Source getSource() const
o2::dataformats::GlobalTrackID getGID() const
GLenum src
Definition glcorearb.h:1767
constructor parametrisation (Value Object) for VisualisationCalo class