Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 public:
51  StatusCode initialize() override;
54  StatusCode reinitialize() override;
56  StatusCode finalize() override;
58  StatusCode createRep( DataObject* pObject, IOpaqueAddress*& refpAddress ) override;
60 
65 
67 public:
68  // ==========================================================================
70  typedef std::set<std::string> Set; // unconverted histograms
71  // ==========================================================================
72 protected:
73  Gaudi::Property<std::string> m_histPersName{this, "HistogramPersistency", "", "name of the Hist Pers type"};
74  Gaudi::Property<std::string> m_outputFile{this, "OutputFile", "", "name of the output file"};
76  this, "ConvertHistos", {}, "The list of patterns to be accepted for conversion"};
78  this, "ExcludeHistos", {}, "The list of patterns to be excluded from conversion"};
79  Gaudi::Property<bool> m_warnings{this, "Warnings", true, "Set this property to false to suppress warning messages"};
80 
85  // ==========================================================================
86 };
87 // ============================================================================
88 // The END
89 // ============================================================================
90 #endif // PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_H
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
const std::string & name() const override
Retrieve name of the service.
Definition: Service.cpp:274
Gaudi::Property< std::vector< std::string > > m_convert
Implementation of property with value of concrete type.
Definition: Property.h:352
Set m_excluded
for the final report: the list of excluded histograms
StatusCode finalize() override
Finalize the service.
Gaudi::Property< std::string > m_histPersName
StatusCode reinitialize() override
Reinitialize the service.
Set m_converted
for the final report: the list of converted histograms
Gaudi::Property< std::string > m_outputFile
STL class.
Gaudi::Property< std::vector< std::string > > m_exclude
StatusCode initialize() override
Initialize the service.
Gaudi::Property< bool > m_warnings
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
PersistencySvc class implementation definition.
HistogramPersistencySvc class implementation definition.
StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress) override
Implementation of IConverter: Convert the transient object to the requested representation.
HistogramPersistencySvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
std::set< std::string > Set
for report: unconverted histograms
Opaque address interface definition.
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30