| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

InputCopyStream.h
Go to the documentation of this file.
1 #ifndef GAUDISVC_PERSISTENCYSVC_INPUTCOPYSTREAM_H
2 #define GAUDISVC_PERSISTENCYSVC_INPUTCOPYSTREAM_H
3
4
5 // Required for inheritance
6 #include "OutputStream.h"
7
8 class IDataStoreLeaves;
9
20 class InputCopyStream : public OutputStream
21 {
22
23 public:
24
26 InputCopyStream(const std::string& name, ISvcLocator* pSvcLocator);
27
29 ~InputCopyStream() override = default;
30
32 StatusCode initialize() override;
33
35 StatusCode finalize() override;
36
38 StatusCode collectObjects() override;
39
40 private:
41
43 IDataStoreLeaves *m_leavesTool = nullptr;
44
46 std::vector<std::string> m_tesVetoList;
47
48 protected:
49
51 bool hasInput() const override { return true; }
52
53 };
54
55 #endif // GAUDISVC_PERSISTENCYSVC_INPUTCOPYSTREAM_H
InputCopyStream
Extension of OutputStream to copy the content of the main input file.
Definition: InputCopyStream.h:20
InputCopyStream::initialize
StatusCode initialize() override
Initialize the instance.
Definition: InputCopyStream.cpp:25
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
InputCopyStream::~InputCopyStream
~InputCopyStream() override=default
Standard Destructor.
IDataStoreLeaves
Interface for a tool or service that returns a list of leaves (paths) in a transient store...
Definition: IDataStoreLeaves.h:15
OutputStream
A small to stream Data I/O.
Definition: OutputStream.h:29
std::string
STL class.
Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:820
InputCopyStream::m_tesVetoList
std::vector< std::string > m_tesVetoList
Names of TES locations to Veto.
Definition: InputCopyStream.h:46
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:26
InputCopyStream::m_leavesTool
IDataStoreLeaves * m_leavesTool
Pointer to the (public) tool used to retrieve the objects in a file.
Definition: InputCopyStream.h:43
std::vector< std::string >
InputCopyStream::hasInput
bool hasInput() const override
Overridden from the base class (InputCopyStream has always input).
Definition: InputCopyStream.h:51
InputCopyStream::finalize
StatusCode finalize() override
Finalize the instance.
Definition: InputCopyStream.cpp:36
InputCopyStream::collectObjects
StatusCode collectObjects() override
Collect all objects to be written to the output stream.
Definition: InputCopyStream.cpp:44
OutputStream.h