Project
Loading...
Searching...
No Matches
O2GPUDPLDisplay.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
12#ifndef O2_GPU_DPL_DISPLAY_H
13#define O2_GPU_DPL_DISPLAY_H
14
16#include "Framework/Task.h"
17#include <memory>
18
19namespace o2::base
20{
21struct GRPGeomRequest;
22}
23namespace o2::trd
24{
25class GeometryFlat;
26}
27namespace o2::globaltracking
28{
29struct DataRequest;
30}
31namespace o2::itsmft
32{
33class TopologyDictionary;
34}
35namespace o2::tpc
36{
37class CorrectionMapsLoader;
38}
39
40namespace o2::gpu
41{
42class GPUO2InterfaceDisplay;
43struct GPUO2InterfaceConfiguration;
44class TPCFastTransform;
45struct GPUSettingsTF;
46struct GPUSettingsO2;
47
49{
50 public:
51 O2GPUDPLDisplaySpec(bool useMC, o2::dataformats::GlobalTrackID::mask_t trkMask, o2::dataformats::GlobalTrackID::mask_t clMask, std::shared_ptr<o2::globaltracking::DataRequest> dataRequest, std::shared_ptr<o2::base::GRPGeomRequest> ggr) : mUseMC(useMC), mTrkMask(trkMask), mClMask(clMask), mDataRequest(dataRequest), mGGR(ggr) {}
52 ~O2GPUDPLDisplaySpec() override = default;
53 void init(o2::framework::InitContext& ic) final;
56 void finaliseCCDB(o2::framework::ConcreteDataMatcher& matcher, void* obj) final;
57
58 private:
59 bool mUseMC = false;
60 bool mUpdateCalib = false;
61 bool mDisplayShutDown = false;
62 bool mDisplayStarted = false;
63 bool mGRPGeomUpdated = false;
64 bool mAutoContinuousMaxTimeBin = false;
65 bool mGeometryCreated = false;
68 std::unique_ptr<GPUO2InterfaceDisplay> mDisplay;
69 std::unique_ptr<GPUO2InterfaceConfiguration> mConfig;
70 std::unique_ptr<GPUSettingsO2> mConfParam;
71 std::unique_ptr<TPCFastTransform> mFastTransform;
72 std::unique_ptr<TPCFastTransform> mFastTransformRef;
73 std::unique_ptr<TPCFastTransform> mFastTransformMShape;
74 std::unique_ptr<o2::tpc::CorrectionMapsLoader> mFastTransformHelper;
75 std::unique_ptr<o2::trd::GeometryFlat> mTrdGeo;
76 std::unique_ptr<o2::itsmft::TopologyDictionary> mITSDict;
77 std::shared_ptr<o2::globaltracking::DataRequest> mDataRequest;
78 std::unique_ptr<o2::gpu::GPUSettingsTF> mTFSettings;
79 std::shared_ptr<o2::base::GRPGeomRequest> mGGR;
80};
81
82} // namespace o2::gpu
83
84#endif
Global index for barrel track: provides provenance (detectors combination), index in respective array...
void run(o2::framework::ProcessingContext &pc) final
void finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj) final
O2GPUDPLDisplaySpec(bool useMC, o2::dataformats::GlobalTrackID::mask_t trkMask, o2::dataformats::GlobalTrackID::mask_t clMask, std::shared_ptr< o2::globaltracking::DataRequest > dataRequest, std::shared_ptr< o2::base::GRPGeomRequest > ggr)
void init(o2::framework::InitContext &ic) final
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
~O2GPUDPLDisplaySpec() override=default
Global TPC definitions and constants.
Definition SimTraits.h:167