BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
TreeMdcDataConstCnv.cxx
Go to the documentation of this file.
1#include "GaudiKernel/MsgStream.h"
6#include "TFile.h"
7#include "TTree.h"
8#include "TDirectory.h"
9#include "TObject.h"
10#include "TBuffer.h"
11
12#include "GaudiKernel/CnvFactory.h"
13#include "GaudiKernel/IOpaqueAddress.h"
14#include "GaudiKernel/DataObject.h"
15#include "GaudiKernel/IAddressCreator.h"
16#include "GaudiKernel/IDataProviderSvc.h"
17#include "GaudiKernel/IConversionSvc.h"
18#include "GaudiKernel/GenericAddress.h"
19
20#include "CalibDataSvc/ICalibTreeSvc.h" //maybe
22
23// Temporary. Hope to find a better way to do this
25using namespace CalibData;
26
27
30}
31
32
33const CLID& TreeMdcDataConstCnv::objType() const {
35}
36
39}
40
41StatusCode TreeMdcDataConstCnv::i_createObj(IOpaqueAddress* addr, DataObject*& refpObject) {
42
43 MsgStream log(msgSvc(), "TreeMdcDataConstCnv");
44 log<<MSG::DEBUG<<"SetProperty"<<endreq;
45
47 TreeAddress* add = dynamic_cast<TreeAddress*>(addr);
48
49 DatabaseRecord *records=add->pp();
50 std::cout<<" SftVer is "<<(*records)["SftVer"];
51 std::cout<<" MdcDataConst CalVerSft is "<<(*records)["CalParVer"];
52 std::cout<<" File name is "<<(*records)["FileName"]<<std::endl;
53
54 tmpObject->readPar((*records)["WireEff"]);
55 refpObject=tmpObject;
56
57 return StatusCode::SUCCESS;
58}
59
const CLID CLID_Calib_MdcDataConst
Definition: CalibModel.h:63
IMessageSvc * msgSvc()
void readPar(char *p1)
virtual DatabaseRecord * pp()
Definition: TreeAddress.h:130
virtual StatusCode i_createObj(IOpaqueAddress *address, DataObject *&refpObject)
TreeMdcDataConstCnv(ISvcLocator *svc)
static const CLID & classID()
const CLID & objType() const