| The Gaudi Framework v28r2p1 (f1a77ff4)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

HistogramPersistencySvc.h
Go to the documentation of this file.
1 // ===========================================================================
2 //
3 // HistogramPersistencySvc.h
4 // ------------------------------------------------------------
5 //
6 // Package : PersistencySvc
7 //
8 // Author : Markus Frank
9 //
10 // ===========================================================
11 #ifndef PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_H
12 #define PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_H 1
13 // ============================================================================
14 // Incldue files
15 // ============================================================================
16 // STD & STL
17 // ============================================================================
18 #include <set>
19 #include <string>
20 #include <vector>
21 // ============================================================================
22 // local
23 // ============================================================================
24 #include "../PersistencySvc/PersistencySvc.h"
25 // ============================================================================
47 class HistogramPersistencySvc : virtual public PersistencySvc
48 {
49 public:
52 StatusCode initialize() override;
55 StatusCode reinitialize() override;
57 StatusCode finalize() override;
59 StatusCode createRep( DataObject* pObject, IOpaqueAddress*& refpAddress ) override;
61
64 HistogramPersistencySvc( const std::string& name, ISvcLocator* svc );
66
68 ~HistogramPersistencySvc() override = default;
70 public:
71 // ==========================================================================
73 typedef std::set<std::string> Set; // unconverted histograms
74 // ==========================================================================
75 protected:
76 Gaudi::Property<std::string> m_histPersName{this, "HistogramPersistency", "", "name of the Hist Pers type"};
77 Gaudi::Property<std::string> m_outputFile{this, "OutputFile", "", "name of the output file"};
78 Gaudi::Property<std::vector<std::string>> m_convert{
79 this, "ConvertHistos", {}, "The list of patterns to be accepted for conversion"};
80 Gaudi::Property<std::vector<std::string>> m_exclude{
81 this, "ExcludeHistos", {}, "The list of patterns to be excluded from conversion"};
82 Gaudi::Property<bool> m_warnings{this, "Warnings", true, "Set this property to false to suppress warning messages"};
83
85 Set m_converted;
87 Set m_excluded;
88 // ==========================================================================
89 };
90 // ============================================================================
91 // The END
92 // ============================================================================
93 #endif // PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_H
94 // ============================================================================
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
Service::name
const std::string & name() const override
Retrieve name of the service.
Definition: Service.cpp:289
HistogramPersistencySvc::m_convert
Gaudi::Property< std::vector< std::string > > m_convert
Definition: HistogramPersistencySvc.h:78
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:314
HistogramPersistencySvc::m_excluded
Set m_excluded
for the final report: the list of excluded histograms
Definition: HistogramPersistencySvc.h:87
HistogramPersistencySvc::finalize
StatusCode finalize() override
Finalize the service.
Definition: HistogramPersistencySvc.cpp:58
HistogramPersistencySvc::m_histPersName
Gaudi::Property< std::string > m_histPersName
Definition: HistogramPersistencySvc.h:76
HistogramPersistencySvc::reinitialize
StatusCode reinitialize() override
Reinitialize the service.
Definition: HistogramPersistencySvc.cpp:96
HistogramPersistencySvc::m_converted
Set m_converted
for the final report: the list of converted histograms
Definition: HistogramPersistencySvc.h:85
HistogramPersistencySvc::m_outputFile
Gaudi::Property< std::string > m_outputFile
Definition: HistogramPersistencySvc.h:77
std::string
STL class.
HistogramPersistencySvc::m_exclude
Gaudi::Property< std::vector< std::string > > m_exclude
Definition: HistogramPersistencySvc.h:80
HistogramPersistencySvc::initialize
StatusCode initialize() override
Initialize the service.
Definition: HistogramPersistencySvc.cpp:88
HistogramPersistencySvc::~HistogramPersistencySvc
~HistogramPersistencySvc() override=default
Standard Destructor.
HistogramPersistencySvc::m_warnings
Gaudi::Property< bool > m_warnings
Definition: HistogramPersistencySvc.h:82
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
PersistencySvc
PersistencySvc class implementation definition.
Definition: PersistencySvc.h:50
HistogramPersistencySvc
HistogramPersistencySvc class implementation definition.
Definition: HistogramPersistencySvc.h:47
HistogramPersistencySvc::createRep
StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress) override
Implementation of IConverter: Convert the transient object to the requested representation.
Definition: HistogramPersistencySvc.cpp:195
HistogramPersistencySvc::HistogramPersistencySvc
HistogramPersistencySvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
Definition: HistogramPersistencySvc.cpp:228
std::set< std::string >
HistogramPersistencySvc::Set
std::set< std::string > Set
for report: unconverted histograms
Definition: HistogramPersistencySvc.h:73
IOpaqueAddress
Opaque address interface definition.
Definition: IOpaqueAddress.h:23
DataObject
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30