|
ATLAS Offline Software
|
Go to the documentation of this file.
23 return StatusCode::SUCCESS;
31 ATH_MSG_DEBUG(
"CondHandle " << writeHandle.
fullKey() <<
" is already valid.. In theory this should not be called, but may happen if multiple concurrent events are being processed out of order.");
32 return StatusCode::SUCCESS;
40 std::unique_ptr<PixelDCSHVData> writeCdo(std::make_unique<PixelDCSHVData>());
42 const EventIDBase
start{EventIDBase::UNDEFNUM, EventIDBase::UNDEFEVT, 0, 0, EventIDBase::UNDEFNUM, EventIDBase::UNDEFNUM};
43 const EventIDBase
stop {EventIDBase::UNDEFNUM, EventIDBase::UNDEFEVT, EventIDBase::UNDEFNUM-1, EventIDBase::UNDEFNUM-1, EventIDBase::UNDEFNUM, EventIDBase::UNDEFNUM};
50 if (readCdo==
nullptr) {
52 return StatusCode::FAILURE;
55 if (not readHandle.
range(rangeW)) {
57 return StatusCode::FAILURE;
59 ATH_MSG_INFO(
"Size of CondAttrListCollection " << readHandle.
fullKey() <<
" readCdo->size()= " << readCdo->
size());
63 std::string param(
"HV");
64 for (
const auto & attrList : *readCdo) {
69 if (
val>1000.0 ||
val<-1000.0) {
73 writeCdo -> setBiasVoltage((
int)channelNumber,
val);
77 ATH_MSG_WARNING(param <<
" does not exist for ChanNum " << channelNumber);
88 if (writeHandle.
record(rangeW, std::move(writeCdo)).isFailure()) {
89 ATH_MSG_FATAL(
"Could not record PixelDCSHVData " << writeHandle.
key() <<
" with EventRange "
90 << writeHandle.
getRange() <<
" into Conditions Store");
91 return StatusCode::FAILURE;
94 <<
" into Conditions Store");
96 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
const EventIDRange & getRange()
const DataObjID & fullKey() const
const EventIDRange & getRange() const
float getDefaultBiasVoltage() const
bool range(EventIDRange &r)
bool empty() const
Test if the key is blank.
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED
This class is a collection of AttributeLists where each one is associated with a channel number....
const PixelID * m_pixelID
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
An algorithm that can be simultaneously executed in multiple threads.
const DataObjID & fullKey() const
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadCondHandleKey< PixelModuleData > m_moduleDataKey
PixelDCSCondHVAlg(const std::string &name, ISvcLocator *pSvcLocator)
const std::string & key() const
virtual StatusCode initialize() override final
StatusCode initialize(bool used=true)
size_type wafer_hash_max(void) const
size_type size() const
number of Chan/AttributeList pairs
SG::WriteCondHandleKey< PixelDCSHVData > m_writeKey
#define ATH_MSG_WARNING(x)
coral::AttributeList AttributeList
const std::string & key() const
virtual StatusCode execute(const EventContext &ctx) const override final