The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
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
24
25protected:
27 StatusCode writeObjects() override;
28
29public:
30 using OutputStream::OutputStream;
31
32 StatusCode execute() override;
33
34private:
35 Gaudi::Property<unsigned int> m_eventsPerFile{ this, "EventsPerFile", std::numeric_limits<unsigned int>::max() };
36 Gaudi::Property<bool> m_numericFilename{ this, "NumericFilename", false };
38
39 // Data members
40 unsigned int m_events = 0;
41 unsigned int m_iFile = 1;
42
43 // Helper Methods
44 void makeFilename();
45};
Implementation of property with value of concrete type.
Definition PropertyFwd.h:27
A small to stream Data I/O.
Extension of OutputStream to write run records after last event.
StatusCode execute() override
Working entry point.
Gaudi::Property< unsigned int > m_eventsPerFile
Gaudi::Property< unsigned int > m_nNumbersAdded
StatusCode writeObjects() override
OutputStream override: Select the different objects and write them to file.
Gaudi::Property< bool > m_numericFilename
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64