12 #include "CoralBase/Attribute.h"
15 #include "CoolKernel/IDatabase.h"
16 #include "CoolKernel/IFolder.h"
17 #include "CoolKernel/IObjectIterator.h"
18 #include "CoolKernel/IObject.h"
19 #include "CoolKernel/Record.h"
20 #include "CoolKernel/Exception.h"
21 #include "CoolKernel/IDatabaseSvc.h"
22 #include "CoolKernel/StorageType.h"
28 StatusFlagCommentCOOL(
const std::string& dbStr,
const std::string& folderStr,
int runS,
int lumiS,
int runU,
30 : StatusFlagCOOLBase(dbStr, folderStr, runS, lumiS, runU, lumiU) {
35 : StatusFlagCOOLBase(runS, lumiS, runU, lumiU) {
40 : StatusFlagCOOLBase() {
43 cool::RecordSpecification
47 cool::RecordSpecification
spec;
48 spec.extend(
"Code", cool::StorageType::Int32);
49 spec.extend(
"deadFrac", cool::StorageType::Float);
50 spec.extend(
"Thrust", cool::StorageType::Float);
51 spec.extend(
"Comment", cool::StorageType::String255);
53 std::cout <<
"ERROR Source and destination folder specifications differ." << std::endl;
61 const cool::RecordSpecification&
spec) {
63 payload[
"Code"].data<cool::Int32>() = colourCode;
64 payload[
"deadFrac"].data<cool::Float>() = dfrac;
73 const std::string& tag_name) {
79 catch (cool::Exception&
e) {
80 std::cout <<
"Unknown exception caught!" <<
e.what() << std::endl;
87 const std::string& tag_name) {
91 catch (cool::Exception&
e) {
92 std::cout <<
"Unknown exception caught!" <<
e.what() << std::endl;