|
ATLAS Offline Software
|
This class provides an algorithm to make the EventStreamInfo object and update it.
More...
#include <CopyEventStreamInfo.h>
|
| CopyEventStreamInfo (const std::string &type, const std::string &name, const IInterface *parent) |
| Standard AlgTool Constructor. More...
|
|
virtual | ~CopyEventStreamInfo () |
| Destructor. More...
|
|
StatusCode | initialize () |
| AthAlgTool Interface method implementations: More...
|
|
StatusCode | finalize () |
|
virtual StatusCode | beginInputFile (const SG::SourceID &="Serial") |
| Function called when a new input file is opened. More...
|
|
virtual StatusCode | endInputFile (const SG::SourceID &="Serial") |
| Function called when the currently open input file got completely processed. More...
|
|
virtual StatusCode | metaDataStop () |
| Function called when the tool should write out its metadata. More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
This class provides an algorithm to make the EventStreamInfo object and update it.
Definition at line 27 of file CopyEventStreamInfo.h.
◆ StoreGateSvc_t
◆ CopyEventStreamInfo()
CopyEventStreamInfo::CopyEventStreamInfo |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
Standard AlgTool Constructor.
Definition at line 17 of file CopyEventStreamInfo.cxx.
23 declareInterface<IMetaDataTool>(
this);
◆ ~CopyEventStreamInfo()
CopyEventStreamInfo::~CopyEventStreamInfo |
( |
| ) |
|
|
virtual |
◆ beginInputFile()
Function called when a new input file is opened.
Implements IMetaDataTool.
Definition at line 56 of file CopyEventStreamInfo.cxx.
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);
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ endInputFile()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ finalize()
StatusCode CopyEventStreamInfo::finalize |
( |
| ) |
|
◆ initialize()
StatusCode CopyEventStreamInfo::initialize |
( |
| ) |
|
AthAlgTool Interface method implementations:
Definition at line 29 of file CopyEventStreamInfo.cxx.
34 return(StatusCode::FAILURE);
38 return(StatusCode::FAILURE);
40 return(StatusCode::SUCCESS);
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ interfaceID()
const InterfaceID & IMetaDataTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
Gaudi boilerplate.
Definition at line 39 of file IMetaDataTool.h.
40 static const InterfaceID IID(
"IMetaDataTool", 1, 0);
◆ metaDataStop()
StatusCode CopyEventStreamInfo::metaDataStop |
( |
| ) |
|
|
virtual |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_detStore
◆ m_evtStore
◆ m_inputMetaDataStore
◆ m_keys
Gaudi::Property<std::vector<std::string> > CopyEventStreamInfo::m_keys |
|
private |
Initial value:{this, "Keys", {},
"(optional) list of keys to copy, all if empty. default: empty"}
(optional) list of keys to copy, all if empty, default: empty
Definition at line 50 of file CopyEventStreamInfo.h.
◆ m_metaDataSvc
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
const std::set< unsigned int > & getRunNumbers() const
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const std::set< std::string > & getProcessingTags() const
ServiceHandle< StoreGateSvc > m_inputMetaDataStore
MetaDataStore for input.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
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
const std::set< unsigned int > & getLumiBlockNumbers() const
virtual void setOwner(IDataHandleHolder *o)=0
void insertRunNumber(unsigned int run)
Insert new Run Number into a set.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
void addEvent(unsigned int number=1)
Increase Event Counter.
virtual void renounce()=0
void insertProcessingTag(const std::string &process)
Insert new Processing Tag into a set.
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
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
This class provides the summary information stored for data written as a Event Stream.
#define ATH_MSG_WARNING(x)
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
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.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
void insertLumiBlockNumber(unsigned int lumiBlock)
Insert new Luminosity Block Number into a set.