forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVisualisationConstants.h
More file actions
101 lines (89 loc) · 1.98 KB
/
VisualisationConstants.h
File metadata and controls
101 lines (89 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
///
/// \file VisualisationConstants.h
/// \author Jeremi Niedziela
/// \author julian.myrcha@cern.ch
///
#ifndef ALICE_O2_EVENTVISUALISATION_BASE_VISUALISATIONCONSTANTS_H
#define ALICE_O2_EVENTVISUALISATION_BASE_VISUALISATIONCONSTANTS_H
#include <string>
namespace o2
{
namespace event_visualisation
{
enum EVisualisationGroup {
ITS,
TPC,
TRD,
TOF,
MFT,
MCH,
MID,
EMC,
PHS,
CPV,
HMP,
FT0,
FV0,
NvisualisationGroups
};
const std::string gVisualisationGroupName[NvisualisationGroups] = {
"ITS",
"TPC",
"TRD",
"TOF",
"MFT",
"MCH",
"MID",
"EMC",
"PHS",
"CPV",
"HMP",
"FT0",
"FV0"};
const bool R3Visualisation[NvisualisationGroups] = {
true, //"ITS",
true, //"TPC",
true, //"TRD",
true, //"TOF",
true, // "MFT"
true, //"MCH",
true, //"MID",
true, //"EMC",
true, //"PHS",
true, //"CPV"
true, //"HMP"
true, //"FT0"
true, //"FV0"
};
enum EVisualisationDataType {
Clusters, ///< Reconstructed clusters (RecPoints)
Tracks, ///< Event Summary Data
Calorimeters, ///< Calorimeters
NdataTypes ///< number of supported data types
};
const std::string gDataTypeNames[NdataTypes] = {
"Clusters",
"Tracks",
"Calorimeters"};
static int findGroupIndex(const std::string& name)
{
for (int i = 0; i < NvisualisationGroups; i++) {
if (name == gVisualisationGroupName[i]) {
return i;
}
}
return -1;
};
} // namespace event_visualisation
} // namespace o2
#endif