The Gaudi Framework
master (ff7c8557)
Toggle main menu visibility
Loading...
Searching...
No Matches
RecordStream.cpp
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2024 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
// Framework include files
12
#include "
RecordStream.h
"
13
#include <
GaudiKernel/DataObject.h
>
14
#include <
GaudiKernel/DataStoreItem.h
>
15
#include <
GaudiKernel/IDataManagerSvc.h
>
16
#include <
GaudiKernel/IDataProviderSvc.h
>
17
#include <
GaudiKernel/IOpaqueAddress.h
>
18
#include <
GaudiKernel/IRegistry.h
>
19
#include <
GaudiKernel/MsgStream.h
>
20
21
// Define the algorithm factory for the standard output data writer
22
DECLARE_COMPONENT
(
RecordStream
)
23
24
// Standard Constructor
25
RecordStream
::
RecordStream
( const
std
::
string
&
name
,
ISvcLocator
* pSvcLocator ) :
OutputStream
(
name
, pSvcLocator ) {
28
declareProperty
(
"FireIncidents"
,
m_fireIncidents
=
false
,
"if to fire incidents for writing opening/closing etc"
);
29
}
30
31
StatusCode
RecordStream::finalize
() {
32
info
() <<
"Set up File Summary Record"
<<
endmsg
;
33
if
( !
m_fireIncidents
&&
msgLevel
(
MSG::VERBOSE
) )
verbose
() <<
"will not fire incidents"
<<
endmsg
;
34
StatusCode
sc =
OutputStream::execute
();
35
if
( !sc.
isSuccess
() ) {
warning
() <<
"Error writing run summary record....."
<<
endmsg
; }
36
return
OutputStream::finalize
();
37
}
DataObject.h
DataStoreItem.h
IDataManagerSvc.h
IDataProviderSvc.h
IOpaqueAddress.h
IRegistry.h
MsgStream.h
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition
MsgStream.h:198
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition
PluginServiceV1.h:45
RecordStream.h
CommonMessagingBase::verbose
MsgStream & verbose() const
shortcut for the method msgStream(MSG::VERBOSE)
Definition
CommonMessaging.h:121
CommonMessagingBase::warning
MsgStream & warning() const
shortcut for the method msgStream(MSG::WARNING)
Definition
CommonMessaging.h:112
CommonMessagingBase::info
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Definition
CommonMessaging.h:115
CommonMessagingBase::msgLevel
MSG::Level msgLevel() const
get the cached level (originally extracted from the embedded MsgStream)
Definition
CommonMessaging.h:127
Gaudi::Algorithm::declareProperty
Gaudi::Details::PropertyBase * declareProperty(const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none")
Definition
Algorithm.h:286
Gaudi::Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition
Algorithm.cpp:518
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition
ISvcLocator.h:42
OutputStream
A small to stream Data I/O.
Definition
OutputStream.h:37
OutputStream::execute
StatusCode execute() override
Working entry point.
Definition
OutputStream.cpp:162
OutputStream::finalize
StatusCode finalize() override
Terminate OutputStream.
Definition
OutputStream.cpp:149
OutputStream::m_fireIncidents
bool m_fireIncidents
should I fire incidents for writing opening/closing etc?
Definition
OutputStream.h:92
RecordStream
Extension of OutputStream to write run records after last event.
Definition
RecordStream.h:22
RecordStream::finalize
StatusCode finalize() override
Algorithm overload: finalization.
Definition
RecordStream.cpp:31
RecordStream::RecordStream
RecordStream(const std::string &, ISvcLocator *)
Standard algorithm Constructor.
Definition
RecordStream.cpp:25
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
StatusCode::isSuccess
bool isSuccess() const
Definition
StatusCode.h:302
MSG::VERBOSE
@ VERBOSE
Definition
IMessageSvc.h:22
std
STL namespace.
GaudiCommonSvc
src
PersistencySvc
RecordStream.cpp
Generated on
for The Gaudi Framework by
1.17.0