| The Gaudi Framework v27r1

- 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 <string>
19 #include <vector>
20 #include <set>
21 // ============================================================================
22 // local
23 // ============================================================================
24 #include "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::vector<std::string> Strings ; // the vector of strings
75 typedef std::set<std::string> Set ; // unconverted histograms
76 // ==========================================================================
77 protected:
79 std::string m_histPersName; // Name of the Hist Pers type
81 std::string m_outputFile ; // Name of the outputFile
83 Strings m_convert ; // the list of patterns to be converted
85 Strings m_exclude ; // the list of patterns to be excludes
87 Set m_converted ;
89 Set m_excluded ;
91 bool m_warnings;
92 // ==========================================================================
93 };
94 // ============================================================================
95 // The END
96 // ============================================================================
97 #endif // PERSISTENCYSVC_HISTOGRAMPERSISTENCYSVC_H
98 // ============================================================================
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
HistogramPersistencySvc::m_excluded
Set m_excluded
for the final report: the list of excluded histograms
Definition: HistogramPersistencySvc.h:89
HistogramPersistencySvc::finalize
StatusCode finalize() override
Finalize the service.
Definition: HistogramPersistencySvc.cpp:58
HistogramPersistencySvc::m_convert
Strings m_convert
the list of patterns to be converted
Definition: HistogramPersistencySvc.h:83
HistogramPersistencySvc::reinitialize
StatusCode reinitialize() override
Reinitialize the service.
Definition: HistogramPersistencySvc.cpp:97
HistogramPersistencySvc::m_converted
Set m_converted
for the final report: the list of converted histograms
Definition: HistogramPersistencySvc.h:87
HistogramPersistencySvc::m_warnings
bool m_warnings
Flag to disable warning messages when using external input.
Definition: HistogramPersistencySvc.h:91
std::string
STL class.
Service::name
const std::string & name() const override
Retrieve name of the service.
Definition: Service.cpp:319
HistogramPersistencySvc::initialize
StatusCode initialize() override
Initialize the service.
Definition: HistogramPersistencySvc.cpp:90
HistogramPersistencySvc::~HistogramPersistencySvc
~HistogramPersistencySvc() override=default
Standard Destructor.
HistogramPersistencySvc::Strings
std::vector< std::string > Strings
the actual type for the vector of strings
Definition: HistogramPersistencySvc.h:73
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:205
HistogramPersistencySvc::HistogramPersistencySvc
HistogramPersistencySvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
Definition: HistogramPersistencySvc.cpp:240
PersistencySvc.h
std::set< std::string >
std::vector< std::string >
HistogramPersistencySvc::m_exclude
Strings m_exclude
the list of patterns to be excludes
Definition: HistogramPersistencySvc.h:85
HistogramPersistencySvc::Set
std::set< std::string > Set
for report: unconverted histograms
Definition: HistogramPersistencySvc.h:75
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
HistogramPersistencySvc::m_outputFile
std::string m_outputFile
Name of the outputFile.
Definition: HistogramPersistencySvc.h:81
HistogramPersistencySvc::m_histPersName
std::string m_histPersName
Name of the Hist Pers type.
Definition: HistogramPersistencySvc.h:79