|
ATLAS Offline Software
|
Go to the documentation of this file.
18 const std::string&
name,
20 m_metaDataSvc(
"MetaDataSvc",
name),
21 m_inputMetaDataStore(
"StoreGateSvc/InputMetaDataStore",
name) {
23 declareInterface<IMetaDataTool>(
this);
34 return(StatusCode::FAILURE);
38 return(StatusCode::FAILURE);
40 return(StatusCode::SUCCESS);
52 return(StatusCode::SUCCESS);
66 [
this](std::string&
key) {
67 return !m_inputMetaDataStore->contains<EventStreamInfo>(key);
74 if (
keys.empty())
return StatusCode::SUCCESS;
78 if (
key.substr(0, 1) ==
";" &&
key.substr(3, 1) ==
";") {
82 std::list<SG::ObjectWithVersion<EventStreamInfo> > allVersions;
84 ATH_MSG_ERROR(
"Could not retrieve all versions for EventStreamInfo");
85 return StatusCode::FAILURE;
91 if( !evtStrInfo_out ) {
92 auto esinfo_up = std::make_unique<EventStreamInfo>(*evtStrInfo_in);
95 return StatusCode::FAILURE;
101 elem != lastElem; elem++) {
106 elem != lastElem; elem++) {
111 elem != lastElem; elem++) {
114 for (
auto elem = evtStrInfo_in->
getItemList().begin(),
116 elem != lastElem; elem++) {
121 elem != lastElem; elem++) {
127 return(StatusCode::SUCCESS);
131 return(StatusCode::SUCCESS);
135 return(StatusCode::SUCCESS);
This file contains the class definition for the CopyEventStreamInfo class.
const std::set< unsigned int > & getRunNumbers() const
StatusCode initialize()
AthAlgTool Interface method implementations:
const std::set< std::string > & getProcessingTags() const
ServiceHandle< StoreGateSvc > m_inputMetaDataStore
MetaDataStore for input.
const std::set< EventType > & getEventTypes() const
#define ATH_MSG_VERBOSE(x)
Gaudi::Property< std::vector< std::string > > m_keys
(optional) list of keys to copy, all if empty, default: empty
virtual StatusCode beginInputFile(const SG::SourceID &="Serial")
Function called when a new input file is opened.
This file contains the class definition for the EventStreamInfo class.
const std::set< unsigned int > & getLumiBlockNumbers() const
void insertRunNumber(unsigned int run)
Insert new Run Number into a set.
::StatusCode StatusCode
StatusCode definition for legacy code.
void addEvent(unsigned int number=1)
Increase Event Counter.
void insertProcessingTag(const std::string &process)
Insert new Processing Tag into a set.
virtual ~CopyEventStreamInfo()
Destructor.
ServiceHandle< IAthMetaDataSvc > m_metaDataSvc
Access to output MetaDataStore through MetaDataSvc (using MetaContainers)
unsigned int getNumberOfEvents() const
const std::set< std::pair< CLID, std::string > > & getItemList() const
virtual StatusCode metaDataStop()
Function called when the tool should write out its metadata.
CopyEventStreamInfo(const std::string &type, const std::string &name, const IInterface *parent)
Standard AlgTool Constructor.
This class provides the summary information stored for data written as a Event Stream.
#define ATH_MSG_WARNING(x)
virtual StatusCode endInputFile(const SG::SourceID &="Serial")
Function called when the currently open input file got completely processed.
void insertItemList(CLID type, const std::string &key)
Insert new ItemList Entry into a set.
associate a data object with its VersionedKey The object is held by a ReadHandle to delay its retriev...
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.