-
Notifications
You must be signed in to change notification settings - Fork 496
Expand file tree
/
Copy pathCCDBParamSpec.h
More file actions
39 lines (34 loc) · 1.73 KB
/
CCDBParamSpec.h
File metadata and controls
39 lines (34 loc) · 1.73 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
// 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_FRAMEWORK_CCDBPARAMSPEC_H_
#define O2_FRAMEWORK_CCDBPARAMSPEC_H_
#include "Framework/ConfigParamSpec.h"
#include <vector>
#include <string>
namespace o2::framework
{
struct CCDBMetadata {
std::string key;
std::string value;
};
ConfigParamSpec ccdbPathSpec(std::string const& path);
ConfigParamSpec ccdbRunDependent(int defaultValue = 1); // <1: not run-dependent, 1: run-dependent object with usual timestamp, 2: run-dependent object with runNumber used instead of timestamp
std::vector<ConfigParamSpec> ccdbParamSpec(std::string const& path, int runDependent, std::vector<CCDBMetadata> metadata = {}, int qrate = 0);
/// Helper to create an InputSpec which will read from a CCDB
/// Notice that those input specs have some convetions for their metadata:
///
/// `ccdb-path`: is the path in CCDB for the entry
/// `ccdb-run-dependent`: is a boolean flag to indicate if the entry is run dependent
/// `ccdb-metadata-<key>`: is a list of metadata to be added to the query, where key is the metadata key
std::vector<ConfigParamSpec> ccdbParamSpec(std::string const& path, std::vector<CCDBMetadata> metadata = {}, int qrate = 0);
ConfigParamSpec startTimeParamSpec(int64_t t);
} // namespace o2::framework
#endif