1#include "GaudiKernel/MsgStream.h"
11#include "GaudiKernel/CnvFactory.h"
12#include "GaudiKernel/IOpaqueAddress.h"
13#include "GaudiKernel/DataObject.h"
14#include "GaudiKernel/IAddressCreator.h"
15#include "GaudiKernel/IDataProviderSvc.h"
16#include "GaudiKernel/IConversionSvc.h"
17#include "GaudiKernel/GenericAddress.h"
45 DataObject*& refpObject) {
47 MsgStream log(
msgSvc(),
"RootEsTimeCalibDataCnv");
48 log<<MSG::DEBUG<<
"SetProperty"<<endreq;
52 { log<<MSG::ERROR<<
"unable to open files"<<endreq;
61 double EsTimeCalibConst;
62 vector<double> TestCalibConst;
63 TTree *Testtree = (TTree*)
m_inFile -> Get(
"h2");
65 int no= Testtree -> GetEntries();
67 Testtree->GetEntry(i);
68 TestCalibConst.push_back(EsTimeCalibConst);
71 double t0offsete,t0offsetb;
73 TTree *tree2 = (TTree*)
m_inFile -> Get(
"calibconst");
74 tree2->SetBranchAddress(
"t0offsete", &t0offsete);
75 tree2->SetBranchAddress(
"t0offsetb", &t0offsetb);
76 tree2->SetBranchAddress(
"bunchtime", &bunchtime);
82 tmpObject -> setTestCalibConst(&TestCalibConst);
86 return StatusCode::SUCCESS;
92 MsgStream log(
msgSvc(),
"RootEsTimeCalibDataCnv");
97 { log<<MSG::ERROR<<
"unable to open files"<<endreq;
121 log<<MSG::INFO<<
"successfully create RootFile"<<endreq;
const CLID CLID_Calib_EsTimeCal
data SetBranchAddress("time",&time)
void setToffsetb(const double toffsetb)
void setBunchTime(const int bunchtime)
void setToffsete(const double toffsete)
StatusCode openRead(const std::string &fname)
virtual StatusCode openWrite(const std::string &fname)
const CLID & objType() const
RootEsTimeCalibDataCnv(ISvcLocator *svc)
virtual StatusCode i_createObj(const std::string &fname, DataObject *&refpObject)
virtual StatusCode createRoot(const std::string &fname, CalibData::CalibBase1 *pTDSObj)
static const CLID & classID()