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 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 }
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
IOVDbTestAlg::testCallBack
StatusCode testCallBack(IOVSVC_CALLBACK_ARGS)
Definition: IOVDbTestAlg.cxx:78
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:43