Project
Loading...
Searching...
No Matches
TracksToRecordsSpec.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
15
16#ifndef ALICEO2_MFT_ALIGNMENT_DEVICE_H
17#define ALICEO2_MFT_ALIGNMENT_DEVICE_H
18
20#include "Framework/Task.h"
22#include "TStopwatch.h"
24
25using namespace o2::framework;
26
27namespace o2
28{
29namespace mft
30{
32{
33 public:
34 TracksToRecordsSpec(std::shared_ptr<o2::base::GRPGeomRequest> gr)
35 : mGGCCDBRequest(gr){};
36 void init(o2::framework::InitContext& ic) final;
39 void finaliseCCDB(o2::framework::ConcreteDataMatcher& matcher, void* obj) final;
40
41 private:
42 void updateTimeDependentParams(o2::framework::ProcessingContext& pc);
43 void sendOutput(o2::framework::DataAllocator& output);
44 std::unique_ptr<o2::mft::TracksToRecords> mAlignment;
45 std::shared_ptr<o2::base::GRPGeomRequest> mGGCCDBRequest;
46 enum TimerIDs { SWTot,
47 SWProcessTimeFrame,
48 SWProcessRecoTracks,
49 NStopWatches };
50 static constexpr std::string_view TimerName[] = {"Total",
51 "processTimeFrame",
52 "processRecoTracks"};
53 TStopwatch mTimer[NStopWatches];
54};
55
57
58} // namespace mft
59} // namespace o2
60
61#endif
Helper for geometry and GRP related CCDB requests.
void output(const std::map< std::string, ChannelStat > &channels)
Definition rawdump.cxx:197
Class responsible to create records from tracks (and attached clusters) to feed alignment.
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void init(o2::framework::InitContext &ic) final
void finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj) final
TracksToRecordsSpec(std::shared_ptr< o2::base::GRPGeomRequest > gr)
void run(o2::framework::ProcessingContext &pc) final
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
DataProcessorSpec getTracksToRecordsSpec()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...