| The Gaudi Framework v32r1 (f65d50dc)

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
63 HistogramPersistencySvc( const std::string& name, ISvcLocator* svc );
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"};
75 Gaudi::Property<std::vector<std::string>> m_convert{
76 this, "ConvertHistos", {}, "The list of patterns to be accepted for conversion"};
77 Gaudi::Property<std::vector<std::string>> m_exclude{
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
82 Set m_converted;
84 Set m_excluded;
85 // ==========================================================================
86 };
87 // ============================================================================
88 // The END
89 // ============================================================================
90 #endif // PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_H
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
HistogramPersistencySvc::m_convert
Gaudi::Property< std::vector< std::string > > m_convert
Definition: HistogramPersistencySvc.h:75
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:352
HistogramPersistencySvc::m_excluded
Set m_excluded
for the final report: the list of excluded histograms
Definition: HistogramPersistencySvc.h:84
HistogramPersistencySvc::finalize
StatusCode finalize() override
Finalize the service.
Definition: HistogramPersistencySvc.cpp:58
HistogramPersistencySvc::m_histPersName
Gaudi::Property< std::string > m_histPersName
Definition: HistogramPersistencySvc.h:73
HistogramPersistencySvc::reinitialize
StatusCode reinitialize() override
Reinitialize the service.
Definition: HistogramPersistencySvc.cpp:90
HistogramPersistencySvc::m_converted
Set m_converted
for the final report: the list of converted histograms
Definition: HistogramPersistencySvc.h:82
HistogramPersistencySvc::m_outputFile
Gaudi::Property< std::string > m_outputFile
Definition: HistogramPersistencySvc.h:74
std::string
STL class.
HistogramPersistencySvc::m_exclude
Gaudi::Property< std::vector< std::string > > m_exclude
Definition: HistogramPersistencySvc.h:77
Service::name
const std::string & name() const override
Retrieve name of the service.
Definition: Service.cpp:274
HistogramPersistencySvc::initialize
StatusCode initialize() override
Initialize the service.
Definition: HistogramPersistencySvc.cpp:83
HistogramPersistencySvc::m_warnings
Gaudi::Property< bool > m_warnings
Definition: HistogramPersistencySvc.h:79
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
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:173
HistogramPersistencySvc::HistogramPersistencySvc
HistogramPersistencySvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
Definition: HistogramPersistencySvc.cpp:205
std::set< std::string >
HistogramPersistencySvc::Set
std::set< std::string > Set
for report: unconverted histograms
Definition: HistogramPersistencySvc.h:70
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