-
Notifications
You must be signed in to change notification settings - Fork 496
Expand file tree
/
Copy pathO2GPUDPLDisplay.h
More file actions
84 lines (76 loc) · 2.77 KB
/
O2GPUDPLDisplay.h
File metadata and controls
84 lines (76 loc) · 2.77 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
// 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.
#ifndef O2_GPU_DPL_DISPLAY_H
#define O2_GPU_DPL_DISPLAY_H
#include "ReconstructionDataFormats/GlobalTrackID.h"
#include "Framework/Task.h"
#include <memory>
namespace o2::base
{
struct GRPGeomRequest;
}
namespace o2::trd
{
class GeometryFlat;
}
namespace o2::globaltracking
{
struct DataRequest;
}
namespace o2::itsmft
{
class TopologyDictionary;
}
namespace o2::tpc
{
class CorrectionMapsLoader;
}
namespace o2::gpu
{
class GPUO2InterfaceDisplay;
struct GPUO2InterfaceConfiguration;
class TPCFastTransform;
struct GPUSettingsTF;
struct GPUSettingsO2;
class O2GPUDPLDisplaySpec : public o2::framework::Task
{
public:
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) {}
~O2GPUDPLDisplaySpec() override = default;
void init(o2::framework::InitContext& ic) final;
void run(o2::framework::ProcessingContext& pc) final;
void endOfStream(o2::framework::EndOfStreamContext& ec) final;
void finaliseCCDB(o2::framework::ConcreteDataMatcher& matcher, void* obj) final;
private:
bool mUseMC = false;
bool mUpdateCalib = false;
bool mDisplayShutDown = false;
bool mDisplayStarted = false;
bool mGRPGeomUpdated = false;
bool mAutoContinuousMaxTimeBin = false;
bool mGeometryCreated = false;
o2::dataformats::GlobalTrackID::mask_t mTrkMask;
o2::dataformats::GlobalTrackID::mask_t mClMask;
std::unique_ptr<GPUO2InterfaceDisplay> mDisplay;
std::unique_ptr<GPUO2InterfaceConfiguration> mConfig;
std::unique_ptr<GPUSettingsO2> mConfParam;
std::unique_ptr<TPCFastTransform> mFastTransform;
std::unique_ptr<TPCFastTransform> mFastTransformRef;
std::unique_ptr<TPCFastTransform> mFastTransformMShape;
std::unique_ptr<o2::tpc::CorrectionMapsLoader> mFastTransformHelper;
std::unique_ptr<o2::trd::GeometryFlat> mTrdGeo;
std::unique_ptr<o2::itsmft::TopologyDictionary> mITSDict;
std::shared_ptr<o2::globaltracking::DataRequest> mDataRequest;
std::unique_ptr<o2::gpu::GPUSettingsTF> mTFSettings;
std::shared_ptr<o2::base::GRPGeomRequest> mGGR;
};
} // namespace o2::gpu
#endif