![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
14 #include "GaudiKernel/MsgStream.h"
15 #include "GaudiKernel/ServiceHandle.h"
89 ATH_MSG_INFO(
"Retrieving default server streaming tool");
104 for( ; DataTypeItr != DataTypesEnd; ++DataTypeItr)
107 ToolHandle<IDataRetriever> DataRetrieverTool(*DataTypeItr);
109 if( DataRetrieverTool.retrieve().isFailure() ) {
111 << DataRetrieverTool.type() <<
" with name "
112 << DataRetrieverTool.name());
130 return StatusCode::SUCCESS;
150 std::string eventProperty =
"default";
160 return StatusCode::FAILURE;
167 <<
", lumiBlock: " << eventInfo->
lumiBlock()
168 <<
", timeStamp: " << eventInfo->
timeStamp()
169 <<
", bcid: " << eventInfo->
bcid()
178 unsigned int mcChannelNo = 0;
192 <<
" Index : " << subevt.index()
193 <<
" Provenance : " << subevt.type()
199 <<
" BCID : " << sevt->
bcid()
212 if ( mcChannelNo != 0 ){ runNo = mcChannelNo + 140000000; }
213 ATH_MSG_DEBUG(
" runNumber for filename: " << runNo <<
", eventNumber: " << eventNo);
231 time_t unixtime = (time_t) eventInfo->
timeStamp();
233 localtime_r(&unixtime, &
time);
236 gmtime_r(&unixtime, &utctime);
239 if (
int(found1)<0 &&
int(found2)<0 ){
240 strftime(
dateTime, 32,
"%Y-%m-%d %H:%M:%S UTC", &utctime);
246 if ( mcChannelNo != 0 ){
dateTime[0] =
'\0'; }
253 return StatusCode::FAILURE;
267 if ((*DataRetrieverItr)->retrieve(
m_FormatTool).isFailure()) {
268 ATH_MSG_WARNING(
"Failed to fill " << (*DataRetrieverItr)->dataTypeName() );
270 ATH_MSG_DEBUG(
"Filled: " << (*DataRetrieverItr)->dataTypeName() );
275 ATH_MSG_FATAL(
"Caught exception in " << (*DataRetrieverItr)->name()
276 <<
" while retrieving data for " << (*DataRetrieverItr)->dataTypeName()
277 <<
" : " << ex.what() );
279 return StatusCode::FAILURE;
289 return StatusCode::FAILURE;
308 return StatusCode::SUCCESS;
325 return StatusCode::SUCCESS;
Gaudi::Property< bool > m_writeToFile
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
virtual StatusCode writeGeometry() override
Writes the inner detector and calorimeter geometry to an XML file.
Gaudi::Property< std::vector< std::string > > m_GeoWriterNames
Gaudi::Property< bool > m_onlineMode
uint64_t eventNumber() const
The current event's event number.
Gaudi::Property< std::vector< std::string > > m_dataTypes
ToolHandle< JiveXML::IFormatTool > m_FormatTool
Handle to the formatting tool, which is passed on to the data retrievers and converts the data into X...
AlgoJiveXML(const std::string &name, ISvcLocator *pSvcLocator)
uint32_t eventTypeBitmask() const
The event type bitmask.
StatusCode execute()
Execute - called for every event.
StatusCode finalize()
Finalize called once in the end.
Gaudi::Property< std::string > m_geometryVersionIn
#define ATH_MSG_VERBOSE(x)
uint32_t timeStampNSOffset() const
Nanosecond time offset wrt. the time stamp.
Gaudi::Property< std::string > m_AtlasRelease
uint32_t runNumber() const
The current event's run number.
uint32_t mcChannelNumber() const
The MC generator's channel number.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
StatusCode initialize()
Initialize - called once in the beginning.
::StatusCode StatusCode
StatusCode definition for legacy code.
uint32_t lumiBlock() const
The current event's luminosity block number.
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
ToolHandle< JiveXML::IStreamTool > m_StreamToServerTool
float averageInteractionsPerCrossing() const
Average interactions per crossing for all BCIDs - for out-of-time pile-up.
ToolHandleArray< JiveXML::IDataRetriever > m_DataRetrievers
The list of DataRetrievers.
ToolHandle< JiveXML::IStreamTool > m_StreamToFileTool
Streaming tools that pass the formatted XML text into a file, to a server, etc.
Class describing the basic event information.
def time(flags, cells_name, *args, **kw)
#define ATH_MSG_WARNING(x)
Writes the inner detector and calorimeter geometry to an XML file for use with Atlantis.
uint32_t timeStamp() const
POSIX time in seconds from 1970. January 1st.
std::pair< std::string, std::string > TagType
Defines a tag as a pair of strings.
Gaudi::Property< bool > m_writeGeometry
const std::vector< SubEvent > & subEvents() const
Get the pileup events that were used in the simulation.
uint32_t bcid() const
The bunch crossing ID of the event.
Class describing the properties of one pileup sub-event.
uint64_t mcEventNumber() const
The MC generator's event number.
float actualInteractionsPerCrossing() const
Average interactions per crossing for the current BCID - for in-time pile-up.