1#include "GaudiKernel/MsgStream.h"
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"
46 DataObject*& refpObject) {
48 MsgStream log(
msgSvc(),
"TreeEmcCalibDataCnv");
49 log<<MSG::DEBUG<<
"SetProperty"<<endreq;
55 TBufferFile *buf1 =
new TBufferFile(TBuffer::kRead);
56 buf1->SetBuffer((*records)[
"DigiCalibConst"],512000,kFALSE);
58 std::cout<<
" SftVer is "<<(*records)[
"SftVer"];
59 std::cout<<
" CalVerSft is "<<(*records)[
"CalParVer"];
60 std::cout<<
" File name is "<<(*records)[
"FileName"]<<std::endl;
62 TTree* Digitree=
new TTree();
64 Digitree->Streamer(*buf1);
81 double EmcCalibConst[6240];
82 int EmcIxtalNumber[6240];
83 vector<double> DigiCalibConst;
84 vector<int> IxtalNumber;
85 Digitree->SetBranchAddress(
"DigiCalibConst", EmcCalibConst);
88 for(i=0; i<6240; i++){
89 DigiCalibConst.push_back(EmcCalibConst[i]);
90 IxtalNumber.push_back(EmcIxtalNumber[i]);
92 tmpObject -> setDigiCalibConst(&DigiCalibConst);
93 tmpObject -> setIxtalNumber(&IxtalNumber);
97 return StatusCode::SUCCESS;
const CLID CLID_Calib_EmcCal
data SetBranchAddress("time",&time)
virtual DatabaseRecord * pp()
TreeEmcCalibDataCnv(ISvcLocator *svc)
virtual StatusCode i_createObj(IOpaqueAddress *address, DataObject *&refpObject)
const CLID & objType() const
static const CLID & classID()