| The Gaudi Framework v32r1 (f65d50dc)

InputCopyStream.h
Go to the documentation of this file.
1 #ifndef GAUDISVC_PERSISTENCYSVC_INPUTCOPYSTREAM_H
2 #define GAUDISVC_PERSISTENCYSVC_INPUTCOPYSTREAM_H
3
4 // Required for inheritance
5 #include "OutputStream.h"
6
7 class IDataStoreLeaves;
8
19 class InputCopyStream : public OutputStream {
20
21 public:
23 InputCopyStream( const std::string& name, ISvcLocator* pSvcLocator );
24
26 StatusCode initialize() override;
27
29 StatusCode finalize() override;
30
32 StatusCode collectObjects() override;
33
34 private:
36 IDataStoreLeaves* m_leavesTool = nullptr;
37
38 Gaudi::Property<std::vector<std::string>> m_tesVetoList{this, "TESVetoList", {}, "names of TES locations to Veto"};
39
40 protected:
42 bool hasInput() const override { return true; }
43 };
44
45 #endif // GAUDISVC_PERSISTENCYSVC_INPUTCOPYSTREAM_H
InputCopyStream
Extension of OutputStream to copy the content of the main input file.
Definition: InputCopyStream.h:19
InputCopyStream::initialize
StatusCode initialize() override
Initialize the instance.
Definition: InputCopyStream.cpp:23
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
IDataStoreLeaves
Interface for a tool or service that returns a list of leaves (paths) in a transient store.
Definition: IDataStoreLeaves.h:15
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:352
OutputStream
A small to stream Data I/O.
Definition: OutputStream.h:28
std::string
STL class.
InputCopyStream::InputCopyStream
InputCopyStream(const std::string &name, ISvcLocator *pSvcLocator)
Standard algorithm Constructor.
Definition: InputCopyStream.cpp:16
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
InputCopyStream::m_leavesTool
IDataStoreLeaves * m_leavesTool
Pointer to the (public) tool used to retrieve the objects in a file.
Definition: InputCopyStream.h:36
InputCopyStream::m_tesVetoList
Gaudi::Property< std::vector< std::string > > m_tesVetoList
Definition: InputCopyStream.h:38
InputCopyStream::hasInput
bool hasInput() const override
Overridden from the base class (InputCopyStream has always input).
Definition: InputCopyStream.h:42
InputCopyStream::finalize
StatusCode finalize() override
Finalize the instance.
Definition: InputCopyStream.cpp:32
InputCopyStream::collectObjects
StatusCode collectObjects() override
Collect all objects to be written to the output stream.
Definition: InputCopyStream.cpp:39
OutputStream.h
Gaudi::Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:645