| The Gaudi Framework v32r1 (f65d50dc)

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 protected:
18 StatusCode writeObjects() override;
19
20 public:
21 using OutputStream::OutputStream;
22
23 StatusCode execute() override;
24
25 private:
26 Gaudi::Property<unsigned int> m_eventsPerFile{this, "EventsPerFile", std::numeric_limits<unsigned int>::max()};
27 Gaudi::Property<bool> m_numericFilename{this, "NumericFilename", false};
28 Gaudi::Property<unsigned int> m_nNumbersAdded{this, "NumbersAdded", 6};
29
30 // Data members
31 unsigned int m_events = 0;
32 unsigned int m_iFile = 1;
33
34 // Helper Methods
35 void makeFilename();
36 };
37
38 #endif // GAUDISVC_PERSISTENCYSVC_SEQUENTIALOUTPUTSTREAM_H
SequentialOutputStream::makeFilename
void makeFilename()
Definition: SequentialOutputStream.cpp:49
SequentialOutputStream::m_events
unsigned int m_events
Definition: SequentialOutputStream.h:31
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:352
SequentialOutputStream::m_numericFilename
Gaudi::Property< bool > m_numericFilename
Definition: SequentialOutputStream.h:27
OutputStream
A small to stream Data I/O.
Definition: OutputStream.h:28
SequentialOutputStream::execute
StatusCode execute() override
Working entry point.
Definition: SequentialOutputStream.cpp:35
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
std::numeric_limits::max
T max(T... args)
SequentialOutputStream::m_iFile
unsigned int m_iFile
Definition: SequentialOutputStream.h:32
SequentialOutputStream::m_eventsPerFile
Gaudi::Property< unsigned int > m_eventsPerFile
Definition: SequentialOutputStream.h:26
SequentialOutputStream
Extension of OutputStream to write run records after last event.
Definition: SequentialOutputStream.h:14
OutputStream.h
SequentialOutputStream::m_nNumbersAdded
Gaudi::Property< unsigned int > m_nNumbersAdded
Definition: SequentialOutputStream.h:28