From 3e0c79521f6b86e58cca2b8b9a14960acf992a5c Mon Sep 17 00:00:00 2001 From: Julian Date: Wed, 28 Jul 2021 16:26:33 +0200 Subject: [PATCH 1/5] add parameters to eve workflow --- EventVisualisation/Workflow/CMakeLists.txt | 37 +++- .../include/EveWorkflow/EveConfiguration.h | 95 ++++++++ .../include/EveWorkflow/EveWorkflowHelper.h | 42 ++++ .../include/EveWorkflow/FileProducer.h | 18 +- .../include/EveWorkflow/O2DPLDisplay.h | 39 +++- .../Workflow/src/EveConfiguration.cxx | 21 ++ .../Workflow/src/EveWorkflowHelper.cxx | 209 ++++++++++++++++++ .../Workflow/src/FileProducer.cxx | 6 +- .../Workflow/src/O2DPLDisplay.cxx | 86 +++---- 9 files changed, 484 insertions(+), 69 deletions(-) create mode 100644 EventVisualisation/Workflow/include/EveWorkflow/EveConfiguration.h create mode 100644 EventVisualisation/Workflow/include/EveWorkflow/EveWorkflowHelper.h create mode 100644 EventVisualisation/Workflow/src/EveConfiguration.cxx create mode 100644 EventVisualisation/Workflow/src/EveWorkflowHelper.cxx diff --git a/EventVisualisation/Workflow/CMakeLists.txt b/EventVisualisation/Workflow/CMakeLists.txt index 635b1ad82e047..0d8da50f6cec9 100644 --- a/EventVisualisation/Workflow/CMakeLists.txt +++ b/EventVisualisation/Workflow/CMakeLists.txt @@ -21,18 +21,31 @@ if(ALIGPU_BUILD_TYPE STREQUAL "O2" COMPONENT_NAME eve TARGETVARNAME targetName SOURCES - src/O2DPLDisplay.cxx - src/FileProducer.cxx + src/O2DPLDisplay.cxx + src/FileProducer.cxx + src/EveWorkflowHelper.cxx + src/EveConfiguration.cxx PUBLIC_LINK_LIBRARIES - O2::EventVisualisationBase - O2::EventVisualisationDetectors - O2::GPUO2Interface - O2::GPUWorkflowHelper - O2::DataFormatsGlobalTracking - O2::TPCFastTransformation - O2::TRDBase - O2::TOFBase - O2::TPCReconstruction - O2::GlobalTrackingWorkflowHelpers) + O2::DataFormatsGlobalTracking + O2::DetectorsRaw + O2::DetectorsVertexing + O2::EventVisualisationBase + O2::EventVisualisationDetectors + O2::FrameworkFoundation + O2::FT0Workflow + O2::GlobalTrackingWorkflowHelpers + O2::GlobalTrackingWorkflowReaders + O2::GPUO2Interface + O2::GPUWorkflowHelper + O2::ITSMFTWorkflow + O2::MFTWorkflow + O2::TOFBase + O2::TOFWorkflowIO + O2::TPCFastTransformation + O2::TPCReconstruction + O2::TPCWorkflow + O2::TRDBase + O2::TRDWorkflowIO + ) target_include_directories(${targetName} PUBLIC "include") endif() diff --git a/EventVisualisation/Workflow/include/EveWorkflow/EveConfiguration.h b/EventVisualisation/Workflow/include/EveWorkflow/EveConfiguration.h new file mode 100644 index 0000000000000..0271dd2040efc --- /dev/null +++ b/EventVisualisation/Workflow/include/EveWorkflow/EveConfiguration.h @@ -0,0 +1,95 @@ +// 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 +/// \author David Rohr (as O2DPLConfiguration.h) +/// \author Julian Myrcha + +#ifndef ALICE_O2_EVENTVISUALISATION_WORKFLOW_EVECONFIGURATION_H +#define ALICE_O2_EVENTVISUALISATION_WORKFLOW_EVECONFIGURATION_H + +// Some defines denoting that we are compiling for O2 +#ifndef GPUCA_HAVE_O2HEADERS +#define GPUCA_HAVE_O2HEADERS +#endif +#ifndef GPUCA_TPC_GEOMETRY_O2 +#define GPUCA_TPC_GEOMETRY_O2 +#endif +#ifndef GPUCA_O2_INTERFACE +#define GPUCA_O2_INTERFACE +#endif + +#include +#include +#include +#include +#include +#include +#include "GPUSettings.h" +#include "DataFormatsTPC/Constants.h" + +class TH1F; + +namespace o2 +{ +namespace event_visualisation +{ +template +struct DefaultPtr { + typedef T type; +}; +template +struct ConstPtr { + typedef const T type; +}; + +template