The Gaudi Framework  master (37c0b60a)
RecordOutputStream.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2023 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 <GaudiKernel/Algorithm.h>
14 
28 class RecordOutputStream : public Algorithm {
29 public:
31 
32  StatusCode initialize() override;
33  StatusCode execute() override;
34 
37  static inline const std::string locationRoot() { return "TriggeredOutputStreams"; }
38 
39 private:
41  this, "OutputStreamName", {}, "Name of the OutputStream instance should be triggered." };
42 
46 };
RecordOutputStream::m_flagLocation
std::string m_flagLocation
location of the DataObject flag used to record that this algorithm was called
Definition: RecordOutputStream.h:45
std::string
STL class.
RecordOutputStream::m_streamName
Gaudi::Property< std::string > m_streamName
Definition: RecordOutputStream.h:40
Algorithm
Alias for backward compatibility.
Definition: Algorithm.h:58
Algorithm.h
RecordOutputStream::execute
StatusCode execute() override
Algorithm execution.
Definition: RecordOutputStream.cpp:42
StatusCode
Definition: StatusCode.h:65
RecordOutputStream
Definition: RecordOutputStream.h:28
RecordOutputStream::locationRoot
static const std::string locationRoot()
Return the path in the Transient Store used to record the triggered instances.
Definition: RecordOutputStream.h:37
RecordOutputStream::initialize
StatusCode initialize() override
Algorithm initialization.
Definition: RecordOutputStream.cpp:24
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition: Algorithm.h:101
Gaudi::Property< std::string >