All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PersSvc.h
Go to the documentation of this file.
1 // $Id: PersSvc.h,v 1.5 2006/11/30 15:04:07 mato Exp $
2 #ifndef ROOTHISTCNV_PERSSVC_H
3 #define ROOTHISTCNV_PERSSVC_H 1
4 
5 // Include files
7 
8 // Forward declarations
9 class TFile;
10 
11 
12 namespace RootHistCnv {
13 
20  class PersSvc : public ConversionSvc {
21  public:
23  virtual StatusCode initialize();
24 
26  virtual StatusCode finalize();
27 
29  virtual StatusCode createRep(DataObject* pObject, IOpaqueAddress*& refpAddress);
30 
32  PersSvc( const std::string& name, ISvcLocator* svc );
33 
35  virtual ~PersSvc();
36 
37  private:
38  std::string m_defFileName;
39  TFile *m_hfile;
40  bool m_prtWar;
41  bool m_alphaIds;
43  };
44 
45 } // namespace RootHistCnv
46 
47 #endif // ROOTHISTCNV_PERSSVC_H
bool m_outputEnabled
Flag to enable/disable the output to file.
Definition: PersSvc.h:42
virtual StatusCode initialize()
Initialise the service.
Definition: PersSvc.cpp:31
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:26
virtual StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress)
Convert a collection of transient data objects into another representation.
Definition: PersSvc.cpp:76
virtual ~PersSvc()
Standard destructor.
Definition: PersSvc.cpp:137
PersSvc(const std::string &name, ISvcLocator *svc)
Standard constructor.
Definition: PersSvc.cpp:127
std::string m_defFileName
Default file name.
Definition: PersSvc.h:38
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
bool m_alphaIds
Force alphabetic histograms/ntuple IDs.
Definition: PersSvc.h:41
virtual StatusCode finalize()
Finalise the service.
Definition: PersSvc.cpp:62
virtual const std::string & name() const
Retrieve name of the service.
Definition: Service.cpp:331
bool m_prtWar
Already printed a Warning.
Definition: PersSvc.h:40
Persistency service - to store histograms in ROOT format.
Definition: PersSvc.h:20
Opaque address interface definition.
Base class for all conversion services.
Definition: ConversionSvc.h:47
TFile * m_hfile
Pointer to the ROOT file.
Definition: PersSvc.h:39
A DataObject is the base class of any identifiable object on any data store.
Definition: DataObject.h:31