ATLAS Offline Software
Loading...
Searching...
No Matches
IOVDbTestAlg.cxx File Reference
#include "IOVDbTestAlg.h"
#include "RegistrationServices/IIOVRegistrationSvc.h"
#include "IOVDbTestConditions/IOVDbTestMDTEleMap.h"
#include "IOVDbTestConditions/IOVDbTestMDTEleMapColl.h"
#include "IOVDbTestConditions/IOVDbTestAmdbCorrection.h"
#include "AthenaKernel/IAthenaOutputStreamTool.h"
#include "GaudiKernel/IIncidentSvc.h"
#include "GaudiKernel/Incident.h"
#include "GaudiKernel/GaudiException.h"
#include "GaudiKernel/IToolSvc.h"
#include "CoralBase/Attribute.h"
#include "CoralBase/Blob.h"
#include "CoralBase/AttributeListSpecification.h"
#include "AthenaPoolUtilities/AthenaAttributeList.h"
#include "AthenaPoolUtilities/CondAttrListCollection.h"
#include <sys/ipc.h>
#include <sys/msg.h>

Go to the source code of this file.

Functions

StatusCode IOVDbTestAlg::initialize ATLAS_NOT_THREAD_SAFE ()
 Install fatal handler with default options.

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

StatusCode IOVDbTestAlg::initialize ATLAS_NOT_THREAD_SAFE ( )

Install fatal handler with default options.

This is meant to be easy to call from python via ctypes.

Definition at line 90 of file IOVDbTestAlg.cxx.

90 {
91 ATH_MSG_DEBUG( "in initialize()" );
92
93 // Get Output Stream tool for writing
94 if (m_writeCondObjs) {
95 m_streamer = "AthenaOutputStreamTool/" + m_streamName;
96 ATH_CHECK( m_streamer.retrieve() );
97 }
98
99 // Get the IOVRegistrationSvc when needed
100 if (m_regIOV) {
101 ATH_CHECK( m_regSvc.retrieve() );
102 ATH_MSG_DEBUG( "Found IOVRegistrationSvc " );
103 ATH_MSG_INFO( "Tag to be used: " << m_tagID.value() );
104 }
105
106 if (m_readInInit) {
107 ATH_CHECK( readWithBeginRun() );
108 ATH_MSG_DEBUG( "Read with BeginRun " );
109 }
110
111 // register callbacks for test of online change of constants
112 if (!m_online) return StatusCode::SUCCESS;
113
114 const DataHandle<IOVDbTestMDTEleMap> mdtelemap;
115 ATH_CHECK( detStore()->regFcn(&IOVDbTestAlg::testCallBack, this, mdtelemap, "/IOVDbTest/IOVDbTestMDTEleMap") );
116 ATH_MSG_INFO( "Registered callback for IOVDbTestAlg::testCallBack" );
117
118
119 return StatusCode::SUCCESS;
120}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
an iterator over instances of a given type in StoreGateSvc.
Definition DataHandle.h:43
StatusCode testCallBack(IOVSVC_CALLBACK_ARGS)