#include "DataQualityUtils/StatusFlagCOOL.h"
#include "CoralBase/Attribute.h"
#include "CoolKernel/IDatabase.h"
#include "CoolKernel/IFolder.h"
#include "CoolKernel/IObjectIterator.h"
#include "CoolKernel/IObject.h"
#include "CoolKernel/Record.h"
#include "CoolKernel/Exception.h"
#include "CoolKernel/IDatabaseSvc.h"
#include "CoolKernel/StorageType.h"
Go to the source code of this file.
◆ ClassImp()
Definition at line 24 of file StatusFlagCOOL.cxx.
28 StatusFlagCOOL (
const std::string& dbStr,
const std::string& folderStr,
int runS,
int lumiS,
int runU,
int lumiU)
29 : StatusFlagCOOLBase(dbStr, folderStr, runS, lumiS, runU, lumiU) {
33 StatusFlagCOOL (
int runS,
int lumiS,
int runU,
int lumiU)
34 : StatusFlagCOOLBase(runS, lumiS, runU, lumiU) {
39 : StatusFlagCOOLBase() {
42 cool::RecordSpecification
46 cool::RecordSpecification
spec;
47 spec.extend(
"Code", cool::StorageType::Int32);
48 spec.extend(
"deadFrac", cool::StorageType::Float);
49 spec.extend(
"Thrust", cool::StorageType::Float);
50 if (!(
spec == m_coolFolder->payloadSpecification())) {
51 std::cout <<
"ERROR Source and destination folder specifications differ." << std::endl;
60 payload[
"Code"].data<cool::Int32>() = colourCode;
61 payload[
"deadFrac"].data<cool::Float>() = dfrac;
72 insert(cool::ChannelId
channelId,
int code,
float dfrac,
float thrust,
const std::string& tag_name) {
74 cool::RecordSpecification
spec = this->createSpec();
80 catch (cool::Exception&
e) {
81 std::cout <<
"Unknown exception caught!" <<
e.what() << std::endl;
87 insert(std::string channelName,
int code,
float dfrac,
float thrust,
const std::string& tag_name) {
91 catch (cool::Exception&
e) {
92 std::cout <<
"Unknown exception caught!" <<
e.what() << std::endl;