The Gaudi Framework
master (bdbe7744)
Toggle main menu visibility
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
28
#include <
GaudiKernel/Algorithm.h
>
29
34
class
EvtCollectionStream
:
public
Algorithm
{
35
protected
:
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
41
SmartIF<INTupleSvc>
m_pTupleSvc
;
43
std::vector<std::unique_ptr<DataStoreItem>>
m_itemList
;
44
45
protected
:
47
void
clearItems
();
49
void
addItem
(
const
std::string& descriptor );
50
51
public
:
53
using
Algorithm::Algorithm
;
55
StatusCode
initialize
()
override
;
57
StatusCode
finalize
()
override
;
59
StatusCode
execute
()
override
;
60
};
Algorithm.h
EvtCollectionStream
A small to stream Data I/O.
Definition
EvtCollectionStream.h:34
EvtCollectionStream::m_itemList
std::vector< std::unique_ptr< DataStoreItem > > m_itemList
Vector of items to be saved to this stream.
Definition
EvtCollectionStream.h:43
EvtCollectionStream::execute
StatusCode execute() override
Working entry point.
Definition
EvtCollectionStream.cpp:57
EvtCollectionStream::finalize
StatusCode finalize() override
Terminate EvtCollectionStream.
Definition
EvtCollectionStream.cpp:50
EvtCollectionStream::initialize
StatusCode initialize() override
Initialize EvtCollectionStream.
Definition
EvtCollectionStream.cpp:34
EvtCollectionStream::m_pTupleSvc
SmartIF< INTupleSvc > m_pTupleSvc
Reference to Tuple service for event collection (may or may not be NTuple service).
Definition
EvtCollectionStream.h:41
EvtCollectionStream::addItem
void addItem(const std::string &descriptor)
Add item to output streamer list.
Definition
EvtCollectionStream.cpp:72
EvtCollectionStream::m_itemNames
Gaudi::Property< std::vector< std::string > > m_itemNames
Definition
EvtCollectionStream.h:36
EvtCollectionStream::m_storeName
Gaudi::Property< std::string > m_storeName
Definition
EvtCollectionStream.h:37
EvtCollectionStream::clearItems
void clearItems()
Clear item list.
Definition
EvtCollectionStream.cpp:69
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition
Algorithm.h:98
Gaudi::Property
Implementation of property with value of concrete type.
Definition
Property.h:35
SmartIF
Small smart pointer class with automatic reference counting for IInterface.
Definition
SmartIF.h:28
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
GaudiCommonSvc
src
PersistencySvc
EvtCollectionStream.h
Generated on
for The Gaudi Framework by
1.17.0