BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/CalibData/CalibData/CalibBase1.h
Go to the documentation of this file.
1//$Header: /bes/bes/BossCvs/Calibration/CalibData/CalibData/CalibBase1.h,v 1.2 2005/12/01 07:20:04 huangb Exp $
2#ifndef CalibData_CalibBase1_h
3#define CalibData_CalibBase1_h
4
5/** @class CalibBase
6
7 Used as a base for all objects in the calibration data store.
8 Implement IValidity.
9
10 Permits implementation of deep copy by means of virtual update
11 method. [Used in CalibMySQLCnvSvc::updateCalib]
12
13 @author J. Bogart
14
15*/
16
17#include "GaudiKernel/DataObject.h"
18
19#include "CalibData/CalibModel.h"
20
21// extern const CLID& CLID_Calib_CalibBase;
22
23class MsgStream;
24
25namespace CalibData {
26 class CalibBase1 : public DataObject
27 {
28
29 friend class XmlBaseCnv;
30 friend class RootBaseCnv;
31
32 public:
34 CalibBase1(int serNo,int runfrm,int runto);
35 CalibBase1(int runfrm,int runto);
37 virtual StatusCode update(CalibBase1& obj, MsgStream* );
38
39 /// Following is intended for deep copy
40 /*
41 // Re-implemented from DataObject
42 /// Class ID of this instance
43 inline virtual const CLID& clID() const { return classID(); }
44
45 /// Class ID of this class
46 inline static const CLID& classID() { return CLID_Calib_CalibBase; };
47 */
48 public:
49
50
51 virtual int getSerNo() const {return m_serNo;}
52 virtual int getrunfrm() const {return m_runfrm;}
53 virtual int getrunto() const {return m_runto;}
54 void setSerNo(int ser) { m_serNo = ser;}
55 void setrunfrm(int runfrm){ m_runfrm = runfrm;}
56 void setrunto(int runto) {m_runto = runto;}
57 protected:
58
59 int m_serNo;
60 int m_runfrm;
61 int m_runto;
62
63 };
64
65}
66#endif
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
virtual int getSerNo() const
Following is intended for deep copy.
CalibBase1(const CalibBase1 &obj)
CalibBase1(int serNo, int runfrm, int runto)
CalibBase1(int runfrm, int runto)