| The Gaudi Framework v28r2p1 (f1a77ff4)

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

- File List
- File Members

SequentialOutputStream.h
Go to the documentation of this file.
1 #ifndef GAUDISVC_PERSISTENCYSVC_SEQUENTIALOUTPUTSTREAM_H
2 #define GAUDISVC_PERSISTENCYSVC_SEQUENTIALOUTPUTSTREAM_H
3
4 #include <string>
5 // Required for inheritance
6 #include "OutputStream.h"
7
14 class SequentialOutputStream : public OutputStream
15 {
16
17 protected:
19 StatusCode writeObjects() override;
20
21 public:
22 using OutputStream::OutputStream;
23
25 ~SequentialOutputStream() override = default;
26
27 StatusCode execute() override;
28
29 private:
30 Gaudi::Property<unsigned int> m_eventsPerFile{this, "EventsPerFile", std::numeric_limits<unsigned int>::max()};
31 Gaudi::Property<bool> m_numericFilename{this, "NumericFilename", false};
32 Gaudi::Property<unsigned int> m_nNumbersAdded{this, "NumbersAdded", 6};
33
34 // Data members
35 unsigned int m_events = 0;
36 unsigned int m_iFile = 1;
37
38 // Helper Methods
39 void makeFilename();
40 };
41
42 #endif // GAUDISVC_PERSISTENCYSVC_SEQUENTIALOUTPUTSTREAM_H
SequentialOutputStream::makeFilename
void makeFilename()
Definition: SequentialOutputStream.cpp:51
SequentialOutputStream::m_events
unsigned int m_events
Definition: SequentialOutputStream.h:35
SequentialOutputStream::writeObjects
StatusCode writeObjects() override
OutputStream override: Select the different objects and write them to file.
Definition: SequentialOutputStream.cpp:24
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:314
SequentialOutputStream::m_numericFilename
Gaudi::Property< bool > m_numericFilename
Definition: SequentialOutputStream.h:31
OutputStream
A small to stream Data I/O.
Definition: OutputStream.h:29
SequentialOutputStream::~SequentialOutputStream
~SequentialOutputStream() override=default
Standard Destructor.
SequentialOutputStream::execute
StatusCode execute() override
Definition: SequentialOutputStream.cpp:36
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
std::numeric_limits::max
T max(T...args)
SequentialOutputStream::m_iFile
unsigned int m_iFile
Definition: SequentialOutputStream.h:36
SequentialOutputStream::m_eventsPerFile
Gaudi::Property< unsigned int > m_eventsPerFile
Definition: SequentialOutputStream.h:30
SequentialOutputStream
Extension of OutputStream to write run records after last event.
Definition: SequentialOutputStream.h:14
OutputStream::OutputStream
OutputStream(const std::string &name, ISvcLocator *pSvcLocator)
Standard algorithm Constructor.
Definition: OutputStream.cpp:30
OutputStream.h
SequentialOutputStream::m_nNumbersAdded
Gaudi::Property< unsigned int > m_nNumbersAdded
Definition: SequentialOutputStream.h:32