The Gaudi Framework
master (d98a2936)
SequentialOutputStream.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#pragma once
12
13
#include <string>
14
// Required for inheritance
15
#include "
OutputStream.h
"
16
23
class
SequentialOutputStream
:
public
OutputStream
{
24
25
protected
:
27
StatusCode
writeObjects
()
override
;
28
29
public
:
30
using
OutputStream::OutputStream;
31
32
StatusCode
execute
()
override
;
33
34
private
:
35
Gaudi::Property<unsigned int>
m_eventsPerFile
{
this
,
"EventsPerFile"
, std::numeric_limits<unsigned int>::max() };
36
Gaudi::Property<bool>
m_numericFilename
{
this
,
"NumericFilename"
,
false
};
37
Gaudi::Property<unsigned int>
m_nNumbersAdded
{
this
,
"NumbersAdded"
, 6 };
38
39
// Data members
40
unsigned
int
m_events
= 0;
41
unsigned
int
m_iFile
= 1;
42
43
// Helper Methods
44
void
makeFilename
();
45
};
OutputStream
A small to stream Data I/O.
Definition:
OutputStream.h:37
SequentialOutputStream::m_events
unsigned int m_events
Definition:
SequentialOutputStream.h:40
SequentialOutputStream::execute
StatusCode execute() override
Working entry point.
Definition:
SequentialOutputStream.cpp:45
SequentialOutputStream
Definition:
SequentialOutputStream.h:23
SequentialOutputStream::writeObjects
StatusCode writeObjects() override
OutputStream override: Select the different objects and write them to file.
Definition:
SequentialOutputStream.cpp:34
SequentialOutputStream::makeFilename
void makeFilename()
Definition:
SequentialOutputStream.cpp:59
SequentialOutputStream::m_numericFilename
Gaudi::Property< bool > m_numericFilename
Definition:
SequentialOutputStream.h:36
SequentialOutputStream::m_eventsPerFile
Gaudi::Property< unsigned int > m_eventsPerFile
Definition:
SequentialOutputStream.h:35
SequentialOutputStream::m_iFile
unsigned int m_iFile
Definition:
SequentialOutputStream.h:41
StatusCode
Definition:
StatusCode.h:64
SequentialOutputStream::m_nNumbersAdded
Gaudi::Property< unsigned int > m_nNumbersAdded
Definition:
SequentialOutputStream.h:37
OutputStream.h
Gaudi::Property< unsigned int >
GaudiCommonSvc
src
PersistencySvc
SequentialOutputStream.h
Generated on Wed Aug 13 2025 09:05:02 for The Gaudi Framework by
1.8.18