|
ATLAS Offline Software
|
Go to the documentation of this file.
23 return StatusCode::SUCCESS;
29 ATH_MSG_DEBUG(
"Successfully initialized LArFEBConfigCondAlg");
30 return StatusCode::SUCCESS;
39 if (writeHandle.isValid()) {
41 return StatusCode::SUCCESS;
45 std::vector<const CondAttrListCollection*> attrvec;
52 attrvec.push_back(cattr);
53 writeHandle.addDependency(cHdl);
55 ATH_MSG_WARNING(
"Why do not have FEB config folder " << fldkey.fullKey());
60 std::unique_ptr<LArFebConfig> febConfig=std::make_unique<LArFebConfig>(
m_onlineID);
64 for(
const auto *
dh: attrvec){
67 for (;chanit!=chanit_e;++chanit) {
68 if (chanit->first==0) {
75 p_febConfig->
add (fid, &chanit->second);
82 if(writeHandle.record(std::move(febConfig)).isFailure()) {
83 ATH_MSG_ERROR(
"Could not record LArFebConfig object with " << writeHandle.key()
84 <<
" with EventRange " << writeHandle.getRange() <<
" into Conditions Store");
85 return StatusCode::FAILURE;
88 ATH_MSG_INFO(
"recorded new " << writeHandle.key() <<
" with range " << writeHandle.getRange() <<
" into Conditions Store");
90 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
const_iterator end() const
virtual StatusCode execute(const EventContext &ctx) const override
LArFEBConfigCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_listOfFolders
value_type get_compact() const
Get the compact id.
const_iterator begin() const
Access to Chan/AttributeList pairs via iterators.
#define ATH_MSG_VERBOSE(x)
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.
void add(HWIdentifier febid, const coral::AttributeList *attrList)
virtual StatusCode initialize() override
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::WriteCondHandleKey< LArFebConfig > m_configKey
StatusCode initialize(bool used=true)
const LArOnlineID * m_onlineID
#define ATH_MSG_WARNING(x)
ChanAttrListMap::const_iterator const_iterator
virtual ~LArFEBConfigCondAlg()
const std::string & key() const
std::string channel_name(const HWIdentifier id) const
Return a string corresponding to a feedthrough name given an identifier.
float distance(const Amg::Vector3D &p1, const Amg::Vector3D &p2)
calculates the distance between two point in 3D space