![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
12 #include "GaudiKernel/IAlgorithm.h"
16 #include "EventInfo/EventInfo.h"
24 const std::string&
name,
37 return(StatusCode::FAILURE);
41 return(StatusCode::FAILURE);
46 const IAlgorithm* parentAlg =
dynamic_cast<const IAlgorithm*
>(this->
parent());
47 if (parentAlg ==
nullptr) {
49 return(StatusCode::FAILURE);
56 return(StatusCode::SUCCESS);
61 bool ignoreIfAbsent =
true;
64 return StatusCode::FAILURE;
66 return(StatusCode::SUCCESS);
70 return(StatusCode::SUCCESS);
74 return(StatusCode::SUCCESS);
80 return(StatusCode::SUCCESS);
84 unsigned long long runN = 0;
94 runN = oEventInfo->
event_ID()->run_number();
95 lumiN = oEventInfo->
event_ID()->lumi_block();
99 return(StatusCode::FAILURE);
104 if( !pEventStream ) {
105 auto esinfo_up = std::make_unique<EventStreamInfo>();
106 pEventStream = esinfo_up.get();
109 return(StatusCode::FAILURE);
117 pEventStream->
insertItemList(dhe.getPrimaryClassID(), dhe.getKey());
123 return(StatusCode::SUCCESS);
129 auto esinfo_up = std::make_unique<EventStreamInfo>();
130 pEventStream = esinfo_up.get();
139 return (StatusCode::SUCCESS);
151 return(StatusCode::SUCCESS);
ServiceHandle< StoreGateSvc > m_eventStore
This class represents the "type of event" where the type is given by one or more "characteristics".
ServiceHandle< IAthMetaDataSvc > m_metaDataSvc
Pointer to the data stores.
uint32_t runNumber() const
The current event's run number.
StringProperty m_oEventInfoKey
Key, the StoreGate key for the old EventInfo object, ix there is no xAOD::EventInfo.
This file contains the class definition for the EventStreamInfo class.
bool m_filledEvent
Check if the EventStreamInfo was filled with event-specific information.
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
void insertRunNumber(unsigned int run)
Insert new Run Number into a set.
virtual StatusCode postInitialize() override
Called at the end of AthenaOutputStream::initialize().
StringProperty m_dataHeaderKey
Name of DataHeader key.
::StatusCode StatusCode
StatusCode definition for legacy code.
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
EventID * event_ID()
the unique identification of the event.
MakeEventStreamInfo(const std::string &type, const std::string &name, const IInterface *parent)
Standard AlgTool Constructor.
void addEvent(unsigned int number=1)
Increase Event Counter.
uint32_t lumiBlock() const
The current event's luminosity block number.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual StatusCode finalize() override
Called at the end of AthenaOutputStream::finalize() (via release()).
void insertProcessingTag(const std::string &process)
Insert new Processing Tag into a set.
virtual StatusCode postExecute() override
Called at the end of AthenaOutputStream::execute().
virtual StatusCode preExecute() override
Called at the beginning of AthenaOutputStream::execute().
virtual ~MakeEventStreamInfo()
Destructor.
StringProperty m_eventInfoKey
Key, the StoreGate key for the xAOD::EventInfo object.
This class provides the summary information stored for data written as a Event Stream.
#define ATH_MSG_WARNING(x)
virtual StatusCode preFinalize() override
Called at the beginning of AthenaOutputStream::finalize().
virtual StatusCode preStream() override
Called before actually streaming objects.
void insertItemList(CLID type, const std::string &key)
Insert new ItemList Entry into a set.
virtual StatusCode initialize() override
Required of all IAthenaOutputTools: Called by AthenaOutputStream::initialize() (via ToolSvc retrieve(...
EventType eventTypeFromxAOD(const xAOD::EventInfo *xaod)
Create EventType object from xAOD::EventInfo.
StringProperty m_key
Key, the StoreGate key for the EventStreamInfo object.
void insertEventType(const EventType &event)
Insert new Event Type into a set.
void insertLumiBlockNumber(unsigned int lumiBlock)
Insert new Luminosity Block Number into a set.
EventType * event_type()
the type of the event, e.g. simulation, testbeam, etc
This file contains the class definition for the MakeEventStreamInfo class.