|
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 return StatusCode::SUCCESS;
124 std::string eventProperty =
"default";
134 return StatusCode::FAILURE;
141 <<
", lumiBlock: " << eventInfo->
lumiBlock()
142 <<
", timeStamp: " << eventInfo->
timeStamp()
143 <<
", bcid: " << eventInfo->
bcid()
152 unsigned int mcChannelNo = 0;
166 <<
" Index : " << subevt.index()
167 <<
" Provenance : " << subevt.type()
173 <<
" BCID : " << sevt->
bcid()
186 if ( mcChannelNo != 0 ){ runNo = mcChannelNo + 140000000; }
187 ATH_MSG_DEBUG(
" runNumber for filename: " << runNo <<
", eventNumber: " << eventNo);
205 time_t unixtime = (time_t) eventInfo->
timeStamp();
207 localtime_r(&unixtime, &
time);
210 gmtime_r(&unixtime, &utctime);
213 if (
int(found1)<0 &&
int(found2)<0 ){
214 strftime(
dateTime, 32,
"%Y-%m-%d %H:%M:%S UTC", &utctime);
220 if ( mcChannelNo != 0 ){
dateTime[0] =
'\0'; }
227 return StatusCode::FAILURE;
241 if ((*DataRetrieverItr)->retrieve(
m_FormatTool).isFailure()) {
242 ATH_MSG_WARNING(
"Failed to fill " << (*DataRetrieverItr)->dataTypeName() );
244 ATH_MSG_DEBUG(
"Filled: " << (*DataRetrieverItr)->dataTypeName() );
249 ATH_MSG_FATAL(
"Caught exception in " << (*DataRetrieverItr)->name()
250 <<
" while retrieving data for " << (*DataRetrieverItr)->dataTypeName()
251 <<
" : " << ex.what() );
253 return StatusCode::FAILURE;
263 return StatusCode::FAILURE;
282 return StatusCode::SUCCESS;
299 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
ToolHandleArray< JiveXML::IDataRetriever > m_DataRetrieverTools
The list of DataRetrievers.
Gaudi::Property< bool > m_onlineMode
uint64_t eventNumber() const
The current event's event number.
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.
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.