forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev: adding counters to bookkeeping (AliceO2Group#13224)
- Loading branch information
Showing
16 changed files
with
326 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
Detectors/CTP/workflowScalers/include/CTPWorkflowScalers/ctpCCDBManager.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// 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. | ||
|
||
/// \file RunManager.h | ||
/// \brief Managing runs for config and scalers | ||
/// \author Roman Lietava | ||
#ifndef _CTP_CTPCCDB_H_ | ||
#define _CTP_CTPCCDB_H_ | ||
#include "DataFormatsCTP/Configuration.h" | ||
|
||
namespace o2 | ||
{ | ||
namespace ctp | ||
{ | ||
class ctpCCDBManager | ||
{ | ||
public: | ||
ctpCCDBManager() = default; | ||
int saveRunScalersToCCDB(CTPRunScalers& scalers, long timeStart, long timeStop); | ||
int saveRunConfigToCCDB(CTPConfiguration* cfg, long timeStart); | ||
static CTPConfiguration getConfigFromCCDB(long timestamp, std::string run, bool& ok); | ||
static CTPConfiguration getConfigFromCCDB(long timestamp, std::string run); | ||
CTPRunScalers getScalersFromCCDB(long timestamp, std::string, bool& ok); | ||
void setCCDBPathConfig(std::string path) { mCCDBPathCTPConfig = path; }; | ||
void setCCDBPathScalers(std::string path) { mCCDBPathCTPScalers = path; }; | ||
static void setCCDBHost(std::string host) { mCCDBHost = host; }; | ||
|
||
protected: | ||
/// Database constants | ||
// std::string mCCDBHost = "http://ccdb-test.cern.ch:8080"; | ||
static std::string mCCDBHost; | ||
std::string mCCDBPathCTPScalers = "CTP/Calib/Scalers"; | ||
std::string mCCDBPathCTPConfig = "CTP/Config/Config"; | ||
|
||
ClassDefNV(ctpCCDBManager, 0); | ||
}; | ||
} // namespace ctp | ||
} // namespace o2 | ||
#endif //_CTP_CTPCCDB_H_ |
18 changes: 18 additions & 0 deletions
18
Detectors/CTP/workflowScalers/src/CTPWorkflowScalersLinkDef.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// 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. | ||
#ifdef __CLING__ | ||
|
||
#pragma link off all globals; | ||
#pragma link off all classes; | ||
#pragma link off all functions; | ||
|
||
#pragma link C++ class o2::ctp::ctpCCDBManager + ; | ||
#endif |
Oops, something went wrong.