BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
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
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:
33 CalibBase1();
34 CalibBase1(int serNo,int runfrm,int runto);
35 CalibBase1(int runfrm,int runto);
36 CalibBase1(const CalibBase1& obj);
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
62
63 };
64
65}
66#endif
virtual StatusCode update(CalibBase1 &obj, MsgStream *)
Definition: CalibBase1.cxx:33
void setSerNo(int ser)
Definition: CalibBase1.h:54
void setrunto(int runto)
Definition: CalibBase1.h:56
virtual int getSerNo() const
Following is intended for deep copy.
Definition: CalibBase1.h:51
virtual int getrunto() const
Definition: CalibBase1.h:53
void setrunfrm(int runfrm)
Definition: CalibBase1.h:55
virtual int getrunfrm() const
Definition: CalibBase1.h:52
friend class RootBaseCnv
Definition: CalibBase1.h:30