46 {
47
48 MsgStream log(
msgSvc(),
"TreeEsTimeCalibDataCnv");
49 log<<MSG::DEBUG<<"SetProperty"<<endreq;
52
53 TBufferFile *buf1 = new TBufferFile(TBuffer::kRead);
54 TBufferFile *buf2 = new TBufferFile(TBuffer::kRead);
55 buf1->SetBuffer((*records)["EsTimeH2"],512000,kFALSE);
56 buf2->SetBuffer((*records)["EsTimeH9"],512000,kFALSE);
57
58 std::cout<<" SftVer is "<<(*records)["SftVer"];
59 std::cout<<" CalVerSft is "<<(*records)["CalParVer"];
60 std::cout<<" File name is "<<(*records)["FileName"]<<std::endl;
61
62 TTree* Testtree= new TTree();
63
64 Testtree->Streamer(*buf1);
65 TTree* tree2= new TTree();
66 tree2->Streamer(*buf2);
67
69
70 int i;
71
72
73 double EsTimeCalibConst;
74 vector<double> TestCalibConst;
76 int no= Testtree -> GetEntries();
78 Testtree->GetEntry(i);
79 TestCalibConst.push_back(EsTimeCalibConst);
80 }
81 tmpObject -> setTestCalibConst(&TestCalibConst);
82
83 double t0offsete,t0offsetb;
84 int bunchtime, runFrom, runTo, eventFrom, eventTo;
85 tree2->SetBranchAddress("t0offsete", &t0offsete);
86 tree2->SetBranchAddress("t0offsetb", &t0offsetb);
87 tree2->SetBranchAddress("bunchtime", &bunchtime);
88 if( tree2->GetBranchStatus("runFrom") ) {
89 tree2->SetBranchAddress("runFrom", &runFrom );
90 tree2->SetBranchAddress("runTo", &runTo );
91 tree2->SetBranchAddress("eventFrom", &eventFrom);
92 tree2->SetBranchAddress("eventTo", &eventTo );
93 }
94 else {
95 runFrom = -1;
96 runTo = -1;
97 eventFrom = -1;
98 eventTo = -1;
99 }
100 no = tree2->GetEntries();
102 tree2->GetEntry(i);
110 }
111
112 refpObject=tmpObject;
113
114 delete Testtree;
115 delete tree2;
116 return StatusCode::SUCCESS;
117
118
119}
data SetBranchAddress("time",&time)
void setRunFrom(const int runFrom)
void setEventTo(const int eventTo)
void setToffsetb(const double toffsetb)
void setEventFrom(const int eventFrom)
void setBunchTime(const int bunchtime)
void setRunTo(const int runTo)
void setToffsete(const double toffsete)
virtual DatabaseRecord * pp()