10#ifndef dqutilsCoolMdt_h
11#define dqutilsCoolMdt_h
16 #include "CoolKernel/pointers.h"
17 #include "CoolKernel/ValidityKey.h"
27#include "CoralBase/AttributeList.h"
30#include "CoolApplication/Application.h"
33#include "CoolKernel/types.h"
34#include "CoolKernel/ChannelId.h"
35#include "CoolKernel/RecordSpecification.h"
36#include "CoolKernel/ChannelSelection.h"
46 class RecordSpecification;
47 class ChannelSelection;
52 class CoolMdt:
public cool::Application,
public TObject {
73 void coolDbFolder(
const std::string& dbStr,
const std::string& folderStr);
77 void setIOV(cool::Int64 runS, cool::Int64 lumiS, cool::Int64 runU, cool::Int64 lumiU);
84 const std::string& NoisyMultilayer,
85 const std::string& NoisyLayer,
86 const std::string& NoisyMezz,
87 const std::string& NoisyAsd,
88 const std::string& NoisyTube,
89 const cool::RecordSpecification& spec);
91 const std::string& DeadMultilayer,
92 const std::string& DeadLayer,
93 const std::string& DeadMezz,
94 const std::string& DeadAsd,
95 const std::string& DeadTube,
96 const cool::RecordSpecification& spec);
106 std::string
dumpField(cool::ChannelId channelId,
const std::string & field);
112 cool::ChannelId channelId,
113 const std::string& ChamberName,
114 const std::string& NoisyMultilayer,
115 const std::string& NoisyLayer,
116 const std::string& NoisyMezz,
117 const std::string& NoisyAsd,
118 const std::string& NoisyTube);
120 cool::ChannelId channelId,
121 const std::string& ChamberName,
122 const std::string& NoisyMultilayer,
123 const std::string& NoisyLayer,
124 const std::string& NoisyMezz,
125 const std::string& NoisyAsd,
126 const std::string& NoisyTube,
127 const std::string& cool_tag);
130 cool::ChannelId channelId,
131 const std::string& ChamberName,
132 const std::string& DeadMultilayer,
133 const std::string& DeadLayer,
134 const std::string& DeadMezz,
135 const std::string& DeadAsd,
136 const std::string& DeadTube);
138 cool::ChannelId channelId,
139 const std::string& ChamberName,
140 const std::string& DeadMultilayer,
141 const std::string& DeadLayer,
142 const std::string& DeadMezz,
143 const std::string& DeadAsd,
144 const std::string& DeadTube,
145 const std::string& cool_tag);
cool::ValidityKey m_until
cool::IFolderPtr m_coolFolder
coral::AttributeList createPayloadDataNoisy(const std::string &ChamberName, const std::string &NoisyMultilayer, const std::string &NoisyLayer, const std::string &NoisyMezz, const std::string &NoisyAsd, const std::string &NoisyTube, const cool::RecordSpecification &spec)
void insertNoisyFlag(cool::Int64 run, cool::ChannelId channelId, const std::string &ChamberName, const std::string &NoisyMultilayer, const std::string &NoisyLayer, const std::string &NoisyMezz, const std::string &NoisyAsd, const std::string &NoisyTube)
void coolDbFolder(const std::string &dbStr, const std::string &folderStr)
void insertDeadFlag(cool::Int64 run, cool::ChannelId channelId, const std::string &ChamberName, const std::string &DeadMultilayer, const std::string &DeadLayer, const std::string &DeadMezz, const std::string &DeadAsd, const std::string &DeadTube)
std::string dumpField(cool::ChannelId channelId, const std::string &field)
void setSince(cool::Int64 run, cool::Int64 lumi)
cool::IDatabasePtr coolDbInstance(const std::string &dbStr, bool readOnly)
void insertDeadFlag_withTag(cool::Int64 run, cool::ChannelId channelId, const std::string &ChamberName, const std::string &DeadMultilayer, const std::string &DeadLayer, const std::string &DeadMezz, const std::string &DeadAsd, const std::string &DeadTube, const std::string &cool_tag)
cool::RecordSpecification createSpecDataNoisy()
int dumpCode(const std::string &channelName)
cool::IDatabasePtr getCoolDb()
void CoolOpen(const std::string &dbStr)
void setIOV(cool::Int64 runS, cool::Int64 lumiS, cool::Int64 runU, cool::Int64 lumiU)
cool::IDatabasePtr m_coolDb
cool::IFolderPtr coolFolderInstance(const std::string &folderStr)
void insertNoisyFlag_withTag(cool::Int64 run, cool::ChannelId channelId, const std::string &ChamberName, const std::string &NoisyMultilayer, const std::string &NoisyLayer, const std::string &NoisyMezz, const std::string &NoisyAsd, const std::string &NoisyTube, const std::string &cool_tag)
cool::RecordSpecification createSpecDataDead()
void setIOV(cool::Int64 run)
void setUntil(cool::Int64 run, cool::Int64 lumi)
cool::IFolderPtr getCoolFolder()
coral::AttributeList createPayloadDataDead(const std::string &ChamberName, const std::string &DeadMultilayer, const std::string &DeadLayer, const std::string &DeadMezz, const std::string &DeadAsd, const std::string &DeadTube, const cool::RecordSpecification &spec)
cool::ValidityKey m_since
void dump(cool::ChannelSelection selection)
const std::string selection
int run(int argc, char *argv[])