Project
Loading...
Searching...
No Matches
CcdbRequestSpec.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
13
14#ifndef O2_TOF_CCDBREQUEST
15#define O2_TOF_CCDBREQUEST
16
18#include "Framework/Task.h"
20
21using namespace o2::framework;
22
23namespace o2
24{
25namespace tof
26{
27
28class CcdbRequest : public Task
29{
30 public:
31 CcdbRequest(std::shared_ptr<o2::base::GRPGeomRequest> gr) : mGGCCDBRequest(gr) {}
32 ~CcdbRequest() override = default;
33 void init(InitContext& ic) final;
34 void run(ProcessingContext& pc) final;
36
37 private:
38 std::shared_ptr<o2::base::GRPGeomRequest> mGGCCDBRequest;
39};
40
43
44} // namespace tof
45} // namespace o2
46
47#endif /* O2_TOF_CCDBREQUEST */
Helper for geometry and GRP related CCDB requests.
bool finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj)
static GRPGeomHelper & instance()
CcdbRequest(std::shared_ptr< o2::base::GRPGeomRequest > gr)
void finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj) final
~CcdbRequest() override=default
void run(ProcessingContext &pc) final
void init(InitContext &ic) final
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
framework::DataProcessorSpec getCcdbRequestSpec()
create a processor spec
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...