The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
EvtCollectionStream.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// ====================================================================
12// EvtCollectionStream.h
13// --------------------------------------------------------------------
14//
15// Package : GaudiSvc/PersistencySvc
16//
17// Author : Markus Frank
18//
19// ====================================================================
20#pragma once
21
22// STL include files
23#include <memory>
24#include <string>
25#include <vector>
26
27// Required for inheritance
29
35protected:
36 Gaudi::Property<std::vector<std::string>> m_itemNames{ this, "ItemList", {}, "vector of item names" };
37 Gaudi::Property<std::string> m_storeName{ this, "EvtDataSvc", "TagCollectionSvc",
38 "name of the service managing the data store" };
39
43 std::vector<std::unique_ptr<DataStoreItem>> m_itemList;
44
45protected:
47 void clearItems();
49 void addItem( const std::string& descriptor );
50
51public:
55 StatusCode initialize() override;
57 StatusCode finalize() override;
59 StatusCode execute() override;
60};
A small to stream Data I/O.
std::vector< std::unique_ptr< DataStoreItem > > m_itemList
Vector of items to be saved to this stream.
StatusCode execute() override
Working entry point.
StatusCode finalize() override
Terminate EvtCollectionStream.
StatusCode initialize() override
Initialize EvtCollectionStream.
SmartIF< INTupleSvc > m_pTupleSvc
Reference to Tuple service for event collection (may or may not be NTuple service)
void addItem(const std::string &descriptor)
Add item to output streamer list.
Gaudi::Property< std::vector< std::string > > m_itemNames
Gaudi::Property< std::string > m_storeName
void clearItems()
Clear item list.
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition Algorithm.h:98
Implementation of property with value of concrete type.
Definition PropertyFwd.h:27
Small smart pointer class with automatic reference counting for IInterface.
Definition SmartIF.h:28
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64