10#ifndef dqutilsCoolMdt_h
11#define dqutilsCoolMdt_h
16 #include "CoolKernel/pointers.h"
17 #include "CoolKernel/ValidityKey.h"
33#include "CoralBase/AttributeList.h"
36#include "CoolApplication/Application.h"
39#include "CoolKernel/types.h"
40#include "CoolKernel/ChannelId.h"
41#include "CoolKernel/RecordSpecification.h"
42#include "CoolKernel/ChannelSelection.h"
49#include <TDirectory.h>
52#include <TGraphErrors.h>
71 class RecordSpecification;
72 class ChannelSelection;
77 class CoolMdt:
public cool::Application,
public TObject {
98 void coolDbFolder(
const std::string& dbStr,
const std::string& folderStr);
102 void setIOV(cool::Int64 runS, cool::Int64 lumiS, cool::Int64 runU, cool::Int64 lumiU);
109 const std::string& NoisyMultilayer,
110 const std::string& NoisyLayer,
111 const std::string& NoisyMezz,
112 const std::string& NoisyAsd,
113 const std::string& NoisyTube,
114 const cool::RecordSpecification& spec);
116 const std::string& DeadMultilayer,
117 const std::string& DeadLayer,
118 const std::string& DeadMezz,
119 const std::string& DeadAsd,
120 const std::string& DeadTube,
121 const cool::RecordSpecification& spec);
131 std::string
dumpField(cool::ChannelId channelId, std::string field);
137 cool::ChannelId channelId,
138 const std::string& ChamberName,
139 const std::string& NoisyMultilayer,
140 const std::string& NoisyLayer,
141 const std::string& NoisyMezz,
142 const std::string& NoisyAsd,
143 const std::string& NoisyTube);
145 cool::ChannelId channelId,
146 const std::string& ChamberName,
147 const std::string& NoisyMultilayer,
148 const std::string& NoisyLayer,
149 const std::string& NoisyMezz,
150 const std::string& NoisyAsd,
151 const std::string& NoisyTube,
152 const std::string& cool_tag);
155 cool::ChannelId channelId,
156 const std::string& ChamberName,
157 const std::string& DeadMultilayer,
158 const std::string& DeadLayer,
159 const std::string& DeadMezz,
160 const std::string& DeadAsd,
161 const std::string& DeadTube);
163 cool::ChannelId channelId,
164 const std::string& ChamberName,
165 const std::string& DeadMultilayer,
166 const std::string& DeadLayer,
167 const std::string& DeadMezz,
168 const std::string& DeadAsd,
169 const std::string& DeadTube,
170 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)
std::string dumpField(cool::ChannelId channelId, std::string field)
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)
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[])