File tree Expand file tree Collapse file tree
include/DetectorsCommonDataFormats Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,12 @@ o2_target_root_dictionary(
3434 include /DetectorsCommonDataFormats/CTFHeader.h
3535 include /DetectorsCommonDataFormats/DetMatrixCache.h )
3636
37+ configure_file (UpgradesStatus.h.in
38+ ${CMAKE_CURRENT_BINARY_DIR } /include/DetectorsCommonDataFormats/UpgradesStatus.h )
39+
40+ install (FILES ${CMAKE_CURRENT_BINARY_DIR } /include/DetectorsCommonDataFormats/UpgradesStatus.h
41+ DESTINATION include/DetectorsCommonDataFormats)
42+
3743o2_add_test (DetID
3844 SOURCES test /testDetID.cxx
3945 PUBLIC_LINK_LIBRARIES O2::DetectorsCommonDataFormats
Original file line number Diff line number Diff line change 1+ // Copyright CERN and copyright holders of ALICE O2. This software is
2+ // distributed under the terms of the GNU General Public License v3 (GPL
3+ // Version 3), copied verbatim in the file "COPYING".
4+ //
5+ // See http://alice-o2.web.cern.ch/license for full licensing information.
6+ //
7+ // In applying this license CERN does not waive the privileges and immunities
8+ // granted to it by virtue of its status as an Intergovernmental Organization
9+ // or submit itself to any jurisdiction.
10+
11+ #ifndef O2_UPGRADES_STATUS_H
12+ #define O2_UPGRADES_STATUS_H
13+
14+ // cmake-generated define to make installed headers aware of what was used at build-time
15+ #cmakedefine ENABLE_UPGRADES
16+
17+ #endif
Original file line number Diff line number Diff line change 3030#include " GPUCommonRtypes.h"
3131#include " GPUCommonBitSet.h"
3232#include " MathUtils/Utils.h"
33+ #include " DetectorsCommonDataFormats/UpgradesStatus.h"
3334#ifndef GPUCA_GPUCODE_DEVICE
3435#include " Headers/DataHeader.h"
3536#include < array>
@@ -143,6 +144,15 @@ class DetID
143144
144145#endif // GPUCA_GPUCODE_DEVICE
145146
147+ static bool upgradesEnabled ()
148+ {
149+ #ifdef ENABLE_UPGRADES
150+ return true ;
151+ #else
152+ return false ;
153+ #endif
154+ }
155+
146156 private:
147157 // are 2 strings equal ? (trick from Giulio)
148158 GPUdi () static constexpr bool sameStr (char const * x, char const * y)
Original file line number Diff line number Diff line change 1+ // Copyright CERN and copyright holders of ALICE O2. This software is
2+ // distributed under the terms of the GNU General Public License v3 (GPL
3+ // Version 3), copied verbatim in the file "COPYING".
4+ //
5+ // See http://alice-o2.web.cern.ch/license for full licensing information.
6+ //
7+ // In applying this license CERN does not waive the privileges and immunities
8+ // granted to it by virtue of its status as an Intergovernmental Organization
9+ // or submit itself to any jurisdiction.
10+
11+ #ifndef O2_UPGRADES_STATUS_H
12+ #define O2_UPGRADES_STATUS_H
13+ #endif
14+ // dummy header, will be regenerated and installed at built time from UpgradesStatus.h.in
Original file line number Diff line number Diff line change @@ -565,13 +565,11 @@ constexpr o2::header::DataOrigin gDataOriginTOF{"TOF"};
565565constexpr o2::header::DataOrigin gDataOriginTPC {" TPC" };
566566constexpr o2::header::DataOrigin gDataOriginTRD {" TRD" };
567567constexpr o2::header::DataOrigin gDataOriginZDC {" ZDC" };
568- # ifdef ENABLE_UPGRADES
568+
569569constexpr o2::header::DataOrigin gDataOriginIT3 {" IT3" };
570570constexpr o2::header::DataOrigin gDataOriginTRK {" TRK" };
571571constexpr o2::header::DataOrigin gDataOriginFT3 {" FT3" };
572572
573- #endif
574-
575573// possible data types
576574constexpr o2::header::DataDescription gDataDescriptionAny {" ***************" };
577575constexpr o2::header::DataDescription gDataDescriptionInvalid {" INVALID_DESC" };
Original file line number Diff line number Diff line change 4343#include "FairRunSim.h"
4444#include <FairLogger.h>
4545#include <algorithm>
46+ #include "DetectorsCommonDataFormats/UpgradesStatus.h"
4647#endif
4748
4849#ifdef ENABLE_UPGRADES
You can’t perform that action at this time.
0 commit comments