ATLAS Offline Software
Functions
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. More...
 

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 124 of file IOVDbTestAlg.cxx.

124  {
125  ATH_MSG_DEBUG( "in initialize()" );
126 
127  // Get Output Stream tool for writing
128  if (m_writeCondObjs) {
129  m_streamer = "AthenaOutputStreamTool/" + m_streamName;
130  ATH_CHECK( m_streamer.retrieve() );
131  }
132 
133  // Get the IOVRegistrationSvc when needed
134  if (m_regIOV) {
135  ATH_CHECK( m_regSvc.retrieve() );
136  ATH_MSG_DEBUG( "Found IOVRegistrationSvc " );
137  ATH_MSG_INFO( "Tag to be used: " << m_tagID );
138  }
139 
140  if (m_readInInit) {
141  ATH_CHECK( readWithBeginRun() );
142  ATH_MSG_DEBUG( "Read with BeginRun " );
143  }
144 
145  // register callbacks for test of online change of constants
146  if (!m_online) return StatusCode::SUCCESS;
147 
148  const DataHandle<IOVDbTestMDTEleMap> mdtelemap;
149  ATH_CHECK( detStore()->regFcn(&IOVDbTestAlg::testCallBack, this, mdtelemap, "/IOVDbTest/IOVDbTestMDTEleMap") );
150  ATH_MSG_INFO( "Registered callback for IOVDbTestAlg::testCallBack" );
151 
152 
153  return StatusCode::SUCCESS;
154 }
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
IOVDbTestAlg::testCallBack
StatusCode testCallBack(IOVSVC_CALLBACK_ARGS)
Definition: IOVDbTestAlg.cxx:112
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
DataHandle
an iterator over instances of a given type in StoreGateSvc. It d-casts and caches locally the pointed...
Definition: DataHandle.h:42