Project
Loading...
Searching...
No Matches
TPCInterpolationSpec.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_TPC_INTERPOLATION_SPEC_H
13#define O2_TPC_INTERPOLATION_SPEC_H
14
16
20#include "Framework/Task.h"
21#include "TStopwatch.h"
26
27using namespace o2::framework;
28
29namespace o2::globaltracking
30{
31struct DataRequest;
32} // namespace o2::globaltracking
33
34namespace o2
35{
36namespace tpc
37{
39{
40 public:
41 TPCInterpolationDPL(std::shared_ptr<o2::globaltracking::DataRequest> dr, o2::dataformats::GlobalTrackID::mask_t src, o2::dataformats::GlobalTrackID::mask_t srcMap, std::shared_ptr<o2::base::GRPGeomRequest> gr, bool useMC, bool processITSTPConly, bool sendTrackData, bool debugOutput) : mDataRequest(dr), mSources(src), mSourcesMap(srcMap), mGGCCDBRequest(gr), mUseMC(useMC), mProcessITSTPConly(processITSTPConly), mSendTrackData(sendTrackData), mDebugOutput(debugOutput) {}
42 ~TPCInterpolationDPL() override = default;
43 void init(InitContext& ic) final;
44 void run(ProcessingContext& pc) final;
45 void endOfStream(EndOfStreamContext& ec) final;
46 void finaliseCCDB(ConcreteDataMatcher& matcher, void* obj) final;
47
48 private:
49 void updateTimeDependentParams(ProcessingContext& pc);
50 o2::tpc::TrackInterpolation mInterpolation;
51 std::shared_ptr<o2::globaltracking::DataRequest> mDataRequest;
52 std::shared_ptr<o2::base::GRPGeomRequest> mGGCCDBRequest;
53 o2::tpc::VDriftHelper mTPCVDriftHelper{};
54 const o2::itsmft::TopologyDictionary* mITSDict = nullptr;
57 bool mUseMC{false};
58 bool mProcessITSTPConly{false};
59 bool mProcessSeeds{false};
60 bool mDebugOutput{false};
61 bool mSendTrackData{false};
62 uint32_t mSlotLength{600u};
63 int mMatCorr{2};
64 TStopwatch mTimer;
65};
66
69
70} // namespace tpc
71} // namespace o2
72
73#endif
Definition of the ClusterTopology class.
Helper for geometry and GRP related CCDB requests.
Global index for barrel track: provides provenance (detectors combination), index in respective array...
Definition of the TrackInterpolation class.
Helper class to extract VDrift from different sources.
TPCInterpolationDPL(std::shared_ptr< o2::globaltracking::DataRequest > dr, o2::dataformats::GlobalTrackID::mask_t src, o2::dataformats::GlobalTrackID::mask_t srcMap, std::shared_ptr< o2::base::GRPGeomRequest > gr, bool useMC, bool processITSTPConly, bool sendTrackData, bool debugOutput)
void endOfStream(EndOfStreamContext &ec) final
void finaliseCCDB(ConcreteDataMatcher &matcher, void *obj) final
~TPCInterpolationDPL() override=default
void init(InitContext &ic) final
void run(ProcessingContext &pc) final
GLenum src
Definition glcorearb.h:1767
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
framework::DataProcessorSpec getTPCInterpolationSpec(o2::dataformats::GlobalTrackID::mask_t srcCls, o2::dataformats::GlobalTrackID::mask_t srcVtx, o2::dataformats::GlobalTrackID::mask_t srcTrk, o2::dataformats::GlobalTrackID::mask_t srcTrkMap, bool useMC, bool processITSTPConly, bool sendTrackData, bool debugOutput)
create a processor spec
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...