Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
PersSvc.h
Go to the documentation of this file.
1 #ifndef ROOTHISTCNV_PERSSVC_H
2 #define ROOTHISTCNV_PERSSVC_H 1
3 
4 // Include files
6 
7 // Forward declarations
8 class TFile;
9 
10 namespace RootHistCnv {
11 
18  class PersSvc : public ConversionSvc {
19  public:
21  StatusCode initialize() override;
22 
24  StatusCode finalize() override;
25 
27  StatusCode createRep( DataObject* pObject, IOpaqueAddress*& refpAddress ) override;
28 
31 
32  private:
33  // undefFileName is defined in PersSvc.cpp
34  Gaudi::Property<std::string> m_defFileName{this, "OutputFile", undefFileName, "default file name"};
35  Gaudi::Property<bool> m_alphaIds{this, "ForceAlphaIds", false, "force alphabetic histograms/ntuple IDs"};
36  Gaudi::Property<bool> m_outputEnabled{this, "OutputEnabled", true, "Flag to enable/disable the output to file."};
37 
39  bool m_prtWar = false;
40  };
41 
42 } // namespace RootHistCnv
43 
44 #endif // ROOTHISTCNV_PERSSVC_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
StatusCode finalize() override
Finalise the service.
Definition: PersSvc.cpp:59
Implementation of property with value of concrete type.
Definition: Property.h:352
Gaudi::Property< bool > m_alphaIds
Definition: PersSvc.h:35
PersSvc(const std::string &name, ISvcLocator *svc)
Standard constructor.
Definition: PersSvc.h:30
StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress) override
Convert a collection of transient data objects into another representation.
Definition: PersSvc.cpp:74
STL class.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
Gaudi::Property< bool > m_outputEnabled
Definition: PersSvc.h:36
const long ROOT_StorageType
Definition: ClassID.h:52
bool m_prtWar
Already printed a Warning.
Definition: PersSvc.h:39
Persistency service - to store histograms in ROOT format.
Definition: PersSvc.h:18
Opaque address interface definition.
Base class for all conversion services.
Definition: ConversionSvc.h:45
std::unique_ptr< TFile > m_hfile
Pointer to the ROOT file.
Definition: PersSvc.h:38
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:30
StatusCode initialize() override
Initialise the service.
Definition: PersSvc.cpp:32
Gaudi::Property< std::string > m_defFileName
Definition: PersSvc.h:34