|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGSERVICES_TRIGCOOLUPDATEHELPER_H
6 #define TRIGSERVICES_TRIGCOOLUPDATEHELPER_H
19 #include "GaudiKernel/ServiceHandle.h"
20 #include "GaudiKernel/StatusCode.h"
27 #include "GaudiKernel/EventIDBase.h"
31 #include "CTPfragment/CTPExtraWordsFormat.h"
124 ToolHandle<GenericMonitoringTool>
m_monTool{
this,
"MonTool", {},
"Monitoring tool"};
127 this,
"CoolFolderMap", {},
"Name of COOL folder containing folder map"};
130 this,
"Folders", {},
"List of folders that can be updated during the run"};
133 this,
"CtpRobId", 0x770001,
"ROB ID of CTP fragment containing the extra payload"};
std::map< CTPfragment::FolderIndex, std::string > m_folderNames
Map to store the folder update index -> name mapping.
StatusCode resetFolders(const std::vector< std::string > &folders)
Reset list of COOL folders.
Tool to perform COOL updates during the run.
Gaudi::Property< std::vector< std::string > > m_folders
std::map< std::string, FolderInfo > m_folderInfo
CLID/name mapping of COOL folders.
Abstract interface to IOVDbSvc to access IOVRange and tag information.
FolderUpdate(const CTPfragment::FolderEntry &entry)
virtual StatusCode initialize() override
ToolHandle< GenericMonitoringTool > m_monTool
SmartIF< IIOVSvc > m_iovSvc
StatusCode extractFolderUpdates(const EventContext &ctx)
Decode COOL folder updates according to extra payload in CTP fragment.
SmartIF< IIOVDbSvc > m_iovDbSvc
std::map< CTPfragment::FolderIndex, FolderUpdate > m_folderUpdates
Map to store scheduled/done COOL folder updates.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode getFolderName(CTPfragment::FolderIndex idx, std::string &folderName) const
Return folder name to index.
uint32_t CLID
The Class ID type.
Header file to be included by clients of the Monitored infrastructure.
TrigCOOLUpdateHelper(const std::string &type, const std::string &name, const IInterface *parent)
Struct to hold CLID <-> folder name mapping.
CTPfragment::FolderIndex folderIndex
Gaudi::Property< uint32_t > m_ctpRobId
Gaudi::Property< std::string > m_coolFolderName
StatusCode readFolderInfo ATLAS_NOT_THREAD_SAFE()
Read information about existing COOL folders.
EventIDBase::number_type lumiBlock
virtual StatusCode start() override
StatusCode resetFolder(const std::string &folder)
Reset COOL folder.
ServiceHandle< IROBDataProviderSvc > m_robDataProviderSvc
virtual StatusCode stop() override
StatusCode hltCoolUpdate(const EventContext &ctx)
Perform COOL udpates if needed.
Define macros for attributes used to control the static checker.