|
|
#include <ODCCSConfig.h>
Definition at line 9 of file ODCCSConfig.h.
◆ ODCCSConfig()
ODCCSConfig::ODCCSConfig |
( |
| ) |
|
◆ ~ODCCSConfig()
ODCCSConfig::~ODCCSConfig |
( |
| ) |
|
|
override |
◆ clear()
void ODCCSConfig::clear |
( |
void |
| ) |
|
|
private |
◆ fetchData()
Definition at line 199 of file ODCCSConfig.cc.
202 if (
result->getId() == 0 && (
result->getConfigTag().empty())) {
203 throw(std::runtime_error(
"ODCCSConfig::fetchData(): no Id defined for this ODCCSConfig "));
209 "FROM ECAL_CCS_CONFIGURATION "
210 " where ( CCS_configuration_id = :1 or CCS_tag=:2 )");
219 result->setId(rset->getInt(1));
220 result->setConfigTag(rset->getString(2));
222 result->setDaccal(rset->getInt(3));
223 result->setDelay(rset->getInt(4));
224 result->setGain(rset->getString(5));
225 result->setMemGain(rset->getString(6));
226 result->setOffsetHigh(rset->getInt(7));
227 result->setOffsetLow(rset->getInt(8));
228 result->setOffsetMid(rset->getInt(9));
229 result->setTrgMode(rset->getString(10));
230 result->setTrgFilter(rset->getString(11));
231 result->setClock(rset->getInt(12));
232 result->setBGOSource(rset->getString(13));
233 result->setTTSMask(rset->getInt(14));
234 result->setDAQBCIDPreset(rset->getInt(15));
235 result->setTrgBCIDPreset(rset->getInt(16));
236 result->setBC0Counter(rset->getInt(17));
239 throw(std::runtime_error(
std::string(
"ODCCSConfig::fetchData(): ") +
e.getMessage()));
References MillePedeFileConverter_cfg::e, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ fetchID()
int ODCCSConfig::fetchID |
( |
| ) |
|
|
privatenoexcept |
◆ fetchNextId()
int ODCCSConfig::fetchNextId |
( |
| ) |
|
|
noexcept |
◆ getBC0Counter()
int ODCCSConfig::getBC0Counter |
( |
| ) |
const |
|
inline |
◆ getBC0Delay()
int ODCCSConfig::getBC0Delay |
( |
| ) |
const |
|
inline |
◆ getBGOSource()
std::string ODCCSConfig::getBGOSource |
( |
| ) |
const |
|
inline |
◆ getClock()
int ODCCSConfig::getClock |
( |
| ) |
const |
|
inline |
◆ getDaccal()
int ODCCSConfig::getDaccal |
( |
| ) |
const |
|
inline |
◆ getDAQBCIDPreset()
int ODCCSConfig::getDAQBCIDPreset |
( |
| ) |
const |
|
inline |
◆ getDelay()
int ODCCSConfig::getDelay |
( |
| ) |
const |
|
inline |
◆ getGain()
std::string ODCCSConfig::getGain |
( |
| ) |
const |
|
inline |
◆ getId()
int ODCCSConfig::getId |
( |
void |
| ) |
const |
|
inline |
◆ getMemGain()
std::string ODCCSConfig::getMemGain |
( |
| ) |
const |
|
inline |
◆ getOffsetHigh()
int ODCCSConfig::getOffsetHigh |
( |
| ) |
const |
|
inline |
◆ getOffsetLow()
int ODCCSConfig::getOffsetLow |
( |
| ) |
const |
|
inline |
◆ getOffsetMid()
int ODCCSConfig::getOffsetMid |
( |
| ) |
const |
|
inline |
◆ getTable()
std::string ODCCSConfig::getTable |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getTEDelay()
int ODCCSConfig::getTEDelay |
( |
| ) |
const |
|
inline |
◆ getTrgBCIDPreset()
int ODCCSConfig::getTrgBCIDPreset |
( |
| ) |
const |
|
inline |
◆ getTrgFilter()
std::string ODCCSConfig::getTrgFilter |
( |
| ) |
const |
|
inline |
◆ getTrgMode()
std::string ODCCSConfig::getTrgMode |
( |
| ) |
const |
|
inline |
◆ getTTSMask()
int ODCCSConfig::getTTSMask |
( |
| ) |
const |
|
inline |
◆ prepareWrite()
void ODCCSConfig::prepareWrite |
( |
| ) |
|
|
overrideprivatevirtualnoexcept |
Implements IODConfig.
Definition at line 79 of file ODCCSConfig.cc.
86 "INSERT INTO ECAL_CCS_CONFIGURATION ( ccs_configuration_id, ccs_tag ,"
87 " daccal, delay, gain, memgain, offset_high,offset_low,offset_mid, trg_mode, trg_filter, "
88 " clock, BGO_SOURCE, TTS_MASK, DAQ_BCID_PRESET , TRIG_BCID_PRESET, BC0_COUNTER, BC0_DELAY, TE_DELAY ) "
90 " :ccs_configuration_id, :ccs_tag, :daccal, :delay, :gain, :memgain, :offset_high,:offset_low,"
91 " :offset_mid, :trg_mode, :trg_filter, :clock, :BGO_SOURCE, :TTS_MASK, "
92 " :DAQ_BCID_PRESET , :TRIG_BCID_PRESET, :BC0_COUNTER, :BC0_DELAY, :TE_DELAY) ");
98 throw(std::runtime_error(
std::string(
"ODCCSConfig::prepareWrite(): ") +
e.getMessage()));
References MillePedeFileConverter_cfg::e, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ setBC0Counter()
void ODCCSConfig::setBC0Counter |
( |
int |
x | ) |
|
|
inline |
◆ setBC0Delay()
void ODCCSConfig::setBC0Delay |
( |
int |
x | ) |
|
|
inline |
◆ setBGOSource()
void ODCCSConfig::setBGOSource |
( |
std::string |
x | ) |
|
|
inline |
◆ setClock()
void ODCCSConfig::setClock |
( |
int |
x | ) |
|
|
inline |
◆ setDaccal()
void ODCCSConfig::setDaccal |
( |
int |
x | ) |
|
|
inline |
◆ setDAQBCIDPreset()
void ODCCSConfig::setDAQBCIDPreset |
( |
int |
x | ) |
|
|
inline |
◆ setDelay()
void ODCCSConfig::setDelay |
( |
int |
x | ) |
|
|
inline |
◆ setGain()
void ODCCSConfig::setGain |
( |
std::string |
x | ) |
|
|
inline |
◆ setId()
void ODCCSConfig::setId |
( |
int |
id | ) |
|
|
inline |
◆ setMemGain()
void ODCCSConfig::setMemGain |
( |
std::string |
x | ) |
|
|
inline |
◆ setOffsetHigh()
void ODCCSConfig::setOffsetHigh |
( |
int |
x | ) |
|
|
inline |
◆ setOffsetLow()
void ODCCSConfig::setOffsetLow |
( |
int |
x | ) |
|
|
inline |
◆ setOffsetMid()
void ODCCSConfig::setOffsetMid |
( |
int |
x | ) |
|
|
inline |
◆ setParameters()
void ODCCSConfig::setParameters |
( |
const std::map< std::string, std::string > & |
my_keys_map | ) |
|
Definition at line 102 of file ODCCSConfig.cc.
106 for (std::map<std::string, std::string>::const_iterator ci = my_keys_map.begin(); ci != my_keys_map.end(); ci++) {
107 if (ci->first ==
"CCS_CONFIGURATION_ID")
109 else if (ci->first ==
"DACCAL")
111 else if (ci->first ==
"GAIN")
113 else if (ci->first ==
"MEMGAIN")
115 else if (ci->first ==
"OFFSET_HIGH")
117 else if (ci->first ==
"OFFSET_LOW")
119 else if (ci->first ==
"OFFSET_MID")
121 else if (ci->first ==
"TRG_MODE")
123 else if (ci->first ==
"TRG_FILTER")
125 else if (ci->first ==
"CLOCK")
127 else if (ci->first ==
"BGO_SOURCE")
129 else if (ci->first ==
"TTS_MASK")
131 else if (ci->first ==
"DAQ_BCID_PRESET")
133 else if (ci->first ==
"TRIG_BCID_PRESET")
135 else if (ci->first ==
"BC0_COUNTER")
137 else if (ci->first ==
"BC0_DELAY")
139 else if (ci->first ==
"TE_DELAY")
141 else if (ci->first ==
"DELAY")
◆ setTEDelay()
void ODCCSConfig::setTEDelay |
( |
int |
x | ) |
|
|
inline |
◆ setTrgBCIDPreset()
void ODCCSConfig::setTrgBCIDPreset |
( |
int |
x | ) |
|
|
inline |
◆ setTrgFilter()
void ODCCSConfig::setTrgFilter |
( |
std::string |
x | ) |
|
|
inline |
◆ setTrgMode()
void ODCCSConfig::setTrgMode |
( |
std::string |
x | ) |
|
|
inline |
◆ setTTSMask()
void ODCCSConfig::setTTSMask |
( |
int |
x | ) |
|
|
inline |
◆ writeDB()
void ODCCSConfig::writeDB |
( |
| ) |
|
|
privatenoexcept |
◆ EcalCondDBInterface
◆ m_bc0
◆ m_bc0_delay
int ODCCSConfig::m_bc0_delay |
|
private |
◆ m_bgo
std::string ODCCSConfig::m_bgo |
|
private |
◆ m_clock
◆ m_daccal
int ODCCSConfig::m_daccal |
|
private |
◆ m_daq
◆ m_delay
◆ m_gain
std::string ODCCSConfig::m_gain |
|
private |
◆ m_ID
◆ m_memgain
std::string ODCCSConfig::m_memgain |
|
private |
◆ m_offset_high
int ODCCSConfig::m_offset_high |
|
private |
◆ m_offset_low
int ODCCSConfig::m_offset_low |
|
private |
◆ m_offset_mid
int ODCCSConfig::m_offset_mid |
|
private |
◆ m_pedestal_offset_release
std::string ODCCSConfig::m_pedestal_offset_release |
|
private |
◆ m_system
std::string ODCCSConfig::m_system |
|
private |
◆ m_te_delay
int ODCCSConfig::m_te_delay |
|
private |
◆ m_trg
◆ m_trg_filter
std::string ODCCSConfig::m_trg_filter |
|
private |
◆ m_trg_mode
std::string ODCCSConfig::m_trg_mode |
|
private |
◆ m_tts_mask
int ODCCSConfig::m_tts_mask |
|
private |
std::string getTrgFilter() const
oracle::occi::Statement Statement
int getBC0Counter() const
int getDAQBCIDPreset() const
void setTrgMode(std::string x)
oracle::occi::SQLException SQLException
#define SET_INT(statement, paramNum, paramVal)
oracle::occi::Connection * m_conn
std::string getGain() const
#define SET_STRING(statement, paramNum, paramVal)
void setDAQBCIDPreset(int x)
void checkPrepare() noexcept(false)
void setTrgFilter(std::string x)
std::string getBGOSource() const
std::string getConfigTag()
void checkConnection() const noexcept(false)
void setOffsetHigh(int x)
std::string getMemGain() const
int getOffsetHigh() const
void setMemGain(std::string x)
void setTrgBCIDPreset(int x)
int getTrgBCIDPreset() const
void setBC0Counter(int x)
void setGain(std::string x)
std::string getTrgMode() const
oracle::occi::Environment * m_env
void setConfigTag(std::string x)
int fetchNextId() noexcept(false)
int fetchID() noexcept(false)
void setBGOSource(std::string x)