The Gaudi Framework  v29r0 (ff2e7097)
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 // ============================================================================
48 {
49 public:
52  StatusCode initialize() override;
55  StatusCode reinitialize() override;
57  StatusCode finalize() override;
59  StatusCode createRep( DataObject* pObject, IOpaqueAddress*& refpAddress ) override;
61 
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"};
79  this, "ConvertHistos", {}, "The list of patterns to be accepted for conversion"};
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 
88  // ==========================================================================
89 };
90 // ============================================================================
91 // The END
92 // ============================================================================
93 #endif // PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_H
94 // ============================================================================
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:289
Gaudi::Property< std::vector< std::string > > m_convert
Implementation of property with value of concrete type.
Definition: Property.h:319
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.
~HistogramPersistencySvc() override=default
Standard Destructor.
Gaudi::Property< bool > m_warnings
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
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:29