BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
TreeMdcDataConstCnv.cxx
Go to the documentation of this file.
1#include "GaudiKernel/MsgStream.h"
3#include "CalibData/Mdc/MdcDataConst.h"
4#include "CalibDataSvc/IInstrumentName.h"
5#include "CalibMySQLCnv/TreeAddress.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
21#include "CalibDataSvc/ICalibMetaCnvSvc.h"
22
23// Temporary. Hope to find a better way to do this
24#include "CalibData/CalibModel.h"
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
void readPar(char *p1)
virtual StatusCode i_createObj(IOpaqueAddress *address, DataObject *&refpObject)
TreeMdcDataConstCnv(ISvcLocator *svc)
static const CLID & classID()
const CLID & objType() const