|
ATLAS Offline Software
|
Go to the documentation of this file.
6 #include "GaudiKernel/EventIDRange.h"
22 return StatusCode::SUCCESS;
29 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.");
30 return StatusCode::SUCCESS;
34 std::unique_ptr<PixelTDAQData> writeCdo(std::make_unique<PixelTDAQData>());
36 const EventIDBase
start{EventIDBase::UNDEFNUM, EventIDBase::UNDEFEVT, 0,
37 0, EventIDBase::UNDEFNUM, EventIDBase::UNDEFNUM};
38 const EventIDBase
stop {EventIDBase::UNDEFNUM, EventIDBase::UNDEFEVT, EventIDBase::UNDEFNUM-1,
39 EventIDBase::UNDEFNUM-1, EventIDBase::UNDEFNUM, EventIDBase::UNDEFNUM};
45 if (readCdo==
nullptr) {
47 return StatusCode::FAILURE;
50 if (not readHandle.
range(rangeW)) {
52 return StatusCode::FAILURE;
54 ATH_MSG_INFO(
"Size of CondAttrListCollection " << readHandle.
fullKey() <<
" readCdo->size()= " << readCdo->
size());
58 std::vector<int> checkActive;
59 for (
const auto & attrList : *readCdo) {
61 checkActive.push_back((
int)channelNumber-1);
65 auto itr =
std::find(checkActive.begin(),checkActive.end(),
i);
70 if (writeHandle.
record(rangeW, std::move(writeCdo)).isFailure()) {
71 ATH_MSG_FATAL(
"Could not record PixelTDAQData " << writeHandle.
key() <<
" with EventRange " << rangeW <<
" into Conditions Store");
72 return StatusCode::FAILURE;
74 ATH_MSG_INFO(
"recorded new CDO " << writeHandle.
key() <<
" with range " << rangeW <<
" into Conditions Store");
76 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
const PixelID * m_pixelID
const DataObjID & fullKey() const
std::string find(const std::string &s)
return a remapped string
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 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
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode execute(const EventContext &ctx) const override final
SG::WriteCondHandleKey< PixelTDAQData > m_writeKey
const std::string & key() const
StatusCode initialize(bool used=true)
size_type wafer_hash_max(void) const
size_type size() const
number of Chan/AttributeList pairs
PixelTDAQCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
void setModuleStatus(const int chanNum, const int value)
const std::string & key() const
SG::ReadCondHandleKey< CondAttrListCollection > m_readKey
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space
virtual StatusCode initialize() override final