CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
ICalibRootSvc.h
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/CalibSvc/CalibDataSvc/CalibDataSvc/ICalibRootSvc.h,v 1.2 2006/04/13 02:29:24 huangb Exp $
2
3#ifndef ICalibRootSvc_h
4#define ICalibRootSvc_h
5
6/** @class ICalibRootSvc
7 Abstract interface to be satisfied by any ROOT conversion implementation.
8
9 Support write-on-demand of a calibration object in the TDS
10
11*/
12#include "GaudiKernel/IInterface.h"
13#include "GaudiKernel/ClassID.h" // for storage types
14#include <string>
15
16// Can't use ROOT_StorageType as our storage type or the
17// Persistency service will get confused. Instead give an alias
18// to one we can be pretty sure is unused for GLAST
19
20unsigned const char CALIBROOT_StorageType = CDF_StorageType;
21
22
23static const InterfaceID IID_ICalibRootSvc("ICalibRootSvc", 1, 0);
24
25class DataObject;
26
27namespace CalibData {
28 class CalibBase;
29 class CalibBase1;
30}
31
32class ICalibRootSvc : virtual public IInterface
33{
34public:
35 // Re-implemented from IInterface
36 static const InterfaceID& interfaceID() { return IID_ICalibRootSvc; }
37
38 /**
39 * Method to write a ROOT file corresponding to TDS object
40 *
41 * @param fileName the name of the file to be written
42 * @return the document issued from the parsing
43 */
44 virtual StatusCode writeToRoot(const std::string& outputFile,
45 const std::string& tdsPath) = 0;
46 virtual StatusCode writeToRoot(const std::string& outputFile,
47 CalibData::CalibBase1 *calib) = 0;
48 virtual std::string getrootfile() = 0;
49 // Do we also want a "reset" or "clearDocument" ? Can in any case
50 // do this internally when a new document is to be parsed so might not
51 // be necessary to have explicit public method.
52};
53
54
55#endif
unsigned const char CALIBROOT_StorageType
Definition: ICalibRootSvc.h:20
virtual StatusCode writeToRoot(const std::string &outputFile, CalibData::CalibBase1 *calib)=0
virtual StatusCode writeToRoot(const std::string &outputFile, const std::string &tdsPath)=0
static const InterfaceID & interfaceID()
Definition: ICalibRootSvc.h:36
virtual std::string getrootfile()=0