5#ifndef dqutilsHistogramDataCOOL_h
6#define dqutilsHistogramDataCOOL_h
11 #include "CoolKernel/pointers.h"
12 #include "CoolKernel/ValidityKey.h"
15 class IDatabasePtr {};
28#include "CoralBase/AttributeList.h"
31#include "CoolApplication/Application.h"
34#include "CoolKernel/types.h"
35#include "CoolKernel/ChannelId.h"
36#include "CoolKernel/RecordSpecification.h"
37#include "CoolKernel/ChannelSelection.h"
44#include <TDirectory.h>
47#include <TGraphErrors.h>
65 class RecordSpecification;
66 class ChannelSelection;
93 void setIOV(cool::Int64 runS, cool::Int64 lumiS, cool::Int64 runU, cool::Int64 lumiU);
98 coral::AttributeList
createPayload(
int colourCode,
float dfrac,
float thrust,
const
99 cool::RecordSpecification& spec);
102 const std::string& algo,
103 int entries,
float par1,
float par2,
float par3,
float par4,
float par5,
const
104 cool::RecordSpecification& specH);
107 HistogramDataCOOL(
const std::string& dbStr,
const std::string& folderStr,
int runS,
int lumiS,
int runU,
int lumiU);
114 std::string
dumpHisto(cool::ChannelId channelId, std::string field, std::string tag_name);
115 int dumpCode(
const std::string& channelName,
const std::string& tag_name);
118 void insertH(cool::ChannelId channelId,
int code,
119 const std::string& algo,
120 int entries,
float par1,
float par2,
float par3,
float par4,
float par5,
121 const std::string& tag_name);
122 void insertH(std::string channelName,
int code, std::string algo,
int entries,
float par1,
float par2,
float par3,
123 float par4,
float par5, std::string tag_name);
125 virtual void ntupleDB(
int HistoId,
const std::string& nameHisto,
const std::string& configuration,
int Irun,
127 virtual void historyDB(
int HistoId,
const std::string& nameHisto,
const std::string& tag_name);
128 std::string
defParName(
const std::string& Algorithm,
const std::string& nameHisto,
int i);
Define macros for attributes used to control the static checker.
void insertH(std::string channelName, int code, std::string algo, int entries, float par1, float par2, float par3, float par4, float par5, std::string tag_name)
cool::ValidityKey m_until
std::string defParName(const std::string &Algorithm, const std::string &nameHisto, int i)
void dumpall(const std::string &tag_name)
void dump(cool::ChannelSelection selection, std::string tag_name)
std::string dumpHisto(cool::ChannelId channelId, std::string field, std::string tag_name)
cool::ValidityKey m_since
cool::IFolderPtr coolFolderInstance(const std::string &folderStr)
void setIOV(cool::Int64 run)
void insertH(cool::ChannelId channelId, int code, const std::string &algo, int entries, float par1, float par2, float par3, float par4, float par5, const std::string &tag_name)
cool::IDatabasePtr getCoolDb()
cool::IFolderPtr m_coolFolderH
void setUntil(cool::Int64 run, cool::Int64 lumi)
virtual void historyDB(int HistoId, const std::string &nameHisto, const std::string &tag_name)
cool::IDatabasePtr coolDbInstance(const std::string &dbStr, bool readOnly)
cool::IFolderPtr m_coolFolder
HistogramDataCOOL(const std::string &dbStr, const std::string &folderStr, int runS, int lumiS, int runU, int lumiU)
HistogramDataCOOL(int runS, int lumiS, int runU, int lumiU)
void setIOV(cool::Int64 runS, cool::Int64 lumiS, cool::Int64 runU, cool::Int64 lumiU)
cool::IDatabasePtr m_coolDb
cool::RecordSpecification createSpec()
virtual void ntupleDB(int HistoId, const std::string &nameHisto, const std::string &configuration, int Irun, int Frun)
int dumpCode(const std::string &channelName, const std::string &tag_name)
cool::RecordSpecification createSpecH()
virtual ~HistogramDataCOOL()
void setSince(cool::Int64 run, cool::Int64 lumi)
virtual void formatGraph(TCanvas *c, TGraphErrors *gr) const
cool::IFolderPtr getCoolFolderH()
coral::AttributeList createPayloadH(int colourCode, const std::string &algo, int entries, float par1, float par2, float par3, float par4, float par5, const cool::RecordSpecification &specH)
coral::AttributeList createPayload(int colourCode, float dfrac, float thrust, const cool::RecordSpecification &spec)
const std::string selection
void getImageBuffer ATLAS_NOT_THREAD_SAFE(TImage **img, TCanvas *myC, char **x, int *y)