The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
HistogramPersistencySvc.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//
13// HistogramPersistencySvc.h
14// ------------------------------------------------------------
15//
16// Package : PersistencySvc
17//
18// Author : Markus Frank
19//
20// ===========================================================
21#pragma once
22// ============================================================================
23// Incldue files
24// ============================================================================
25// STD & STL
26// ============================================================================
27#include <set>
28#include <string>
29#include <vector>
30// ============================================================================
31// local
32// ============================================================================
34// ============================================================================
57public:
60
61 StatusCode initialize() override;
63 StatusCode reinitialize() override;
65 StatusCode finalize() override;
67 StatusCode createRep( DataObject* pObject, IOpaqueAddress*& refpAddress ) override;
69
72
73 HistogramPersistencySvc( const std::string& name, ISvcLocator* svc );
74
76public:
77 // ==========================================================================
79 typedef std::set<std::string> Set; // unconverted histograms
80 // ==========================================================================
81protected:
82 Gaudi::Property<std::string> m_histPersName{ this, "HistogramPersistency", "", "name of the Hist Pers type" };
83 Gaudi::Property<std::string> m_outputFile{ this, "OutputFile", "", "name of the output file" };
85 this, "ConvertHistos", {}, "The list of patterns to be accepted for conversion" };
87 this, "ExcludeHistos", {}, "The list of patterns to be excluded from conversion" };
88 Gaudi::Property<bool> m_warnings{ this, "Warnings", true, "Set this property to false to suppress warning messages" };
89
94 // ==========================================================================
95};
96// ============================================================================
97// The END
98// ============================================================================
A DataObject is the base class of any identifiable object on any data store.
Definition DataObject.h:37
Implementation of property with value of concrete type.
Definition PropertyFwd.h:27
Set m_converted
for the final report: the list of converted histograms
Gaudi::Property< std::string > m_histPersName
StatusCode initialize() override
Initialize the service.
HistogramPersistencySvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
StatusCode finalize() override
Finalize the service.
Gaudi::Property< std::vector< std::string > > m_convert
Gaudi::Property< bool > m_warnings
StatusCode reinitialize() override
Reinitialize the service.
Set m_excluded
for the final report: the list of excluded histograms
StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress) override
Implementation of IConverter: Convert the transient object to the requested representation.
Gaudi::Property< std::string > m_outputFile
Gaudi::Property< std::vector< std::string > > m_exclude
std::set< std::string > Set
for report: unconverted histograms
Opaque address interface definition.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition ISvcLocator.h:42
PersistencySvc class implementation definition.
const std::string & name() const override
Retrieve name of the service.
Definition Service.cpp:333
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64