Project
Loading...
Searching...
No Matches
MeanVertexCalibratorSpec.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_MEANVERTEX_CALIB_DEVICE_H
13#define O2_MEANVERTEX_CALIB_DEVICE_H
14
17
19#include "Framework/Task.h"
21
22using namespace o2::framework;
23
24namespace o2
25{
26namespace calibration
27{
28
30{
31 public:
32 MeanVertexCalibDevice(std::shared_ptr<o2::base::GRPGeomRequest> req, uint32_t dcsMVsubspec) : mCCDBRequest(req), mDCSSubSpec(dcsMVsubspec) {}
33 void init(o2::framework::InitContext& ic) final;
36 void finaliseCCDB(o2::framework::ConcreteDataMatcher& matcher, void* obj) final;
37
38 private:
39 void sendOutput(DataAllocator& output);
40 int mFillNumber = 0;
41 int mRunNumber = 0;
42 uint32_t mDCSSubSpec = 0;
43 std::unique_ptr<o2::calibration::MeanVertexCalibrator> mCalibrator;
44 std::shared_ptr<o2::base::GRPGeomRequest> mCCDBRequest;
45};
46
47} // namespace calibration
48
49namespace framework
50{
51DataProcessorSpec getMeanVertexCalibDeviceSpec(uint32_t dcsMVsubspec);
52
53} // namespace framework
54} // namespace o2
55
56#endif
void output(const std::map< std::string, ChannelStat > &channels)
Definition rawdump.cxx:197
void finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj) final
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void run(o2::framework::ProcessingContext &pc) final
MeanVertexCalibDevice(std::shared_ptr< o2::base::GRPGeomRequest > req, uint32_t dcsMVsubspec)
void init(o2::framework::InitContext &ic) final
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...