Project
Loading...
Searching...
No Matches
ctpCCDBManager.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#ifndef _CTP_CTPCCDB_H_
16#define _CTP_CTPCCDB_H_
18
19namespace o2
20{
21namespace ctp
22{
24{
25 public:
26 ctpCCDBManager() = default;
27 int saveRunScalersToCCDB(CTPRunScalers& scalers, long timeStart, long timeStop);
28 int saveRunScalersToQCDB(CTPRunScalers& scalers, long timeStart, long timeStop);
29 int saveRunConfigToCCDB(CTPConfiguration* cfg, long timeStart);
30 static CTPConfiguration getConfigFromCCDB(long timestamp, std::string run, bool& ok);
31 static CTPConfiguration getConfigFromCCDB(long timestamp, std::string run);
32 CTPRunScalers getScalersFromCCDB(long timestamp, std::string, bool& ok);
36 static void setCCDBHost(std::string host) { mCCDBHost = host; };
37 static void setQCDBHost(std::string host) { mQCDBHost = host; };
38
39 protected:
41 // std::string mCCDBHost = "http://ccdb-test.cern.ch:8080";
42 // std::string mQCDBHost = "http://ali-qcdb.cern.ch:8083";
43 static std::string mCCDBHost;
44 static std::string mQCDBHost;
45 std::string mCCDBPathCTPScalers = "CTP/Calib/Scalers";
46 std::string mCCDBPathCTPConfig = "CTP/Config/Config";
47 std::string mQCDBPathCTPScalers = "qc/CTP/Scalers";
49};
50} // namespace ctp
51} // namespace o2
52#endif //_CTP_CTPCCDB_H_
definition of CTPConfiguration and related CTP structures
static std::string mCCDBHost
Database constants.
int saveRunScalersToQCDB(CTPRunScalers &scalers, long timeStart, long timeStop)
ClassDefNV(ctpCCDBManager, 1)
static std::string mQCDBHost
static void setQCDBHost(std::string host)
CTPRunScalers getScalersFromCCDB(long timestamp, std::string, bool &ok)
int saveRunScalersToCCDB(CTPRunScalers &scalers, long timeStart, long timeStop)
int saveRunConfigToCCDB(CTPConfiguration *cfg, long timeStart)
void setCCDBPathScalers(std::string path)
static void setCCDBHost(std::string host)
void setQCDBPathScalers(std::string path)
static CTPConfiguration getConfigFromCCDB(long timestamp, std::string run, bool &ok)
void setCCDBPathConfig(std::string path)
std::string mQCDBPathCTPScalers
std::string mCCDBPathCTPScalers
GLsizei const GLchar *const * path
Definition glcorearb.h:3591
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...