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"
42 DataObject*& refpObject) {
44 MsgStream log(
msgSvc(),
"TreeCorrectedETSCnv");
45 log<<MSG::DEBUG<<
"SetProperty"<<endreq;
49 TBufferFile *buf =
new TBufferFile(TBuffer::kRead);
50 buf->SetBuffer((*records)[
"FinalETS"],51200000,kFALSE);
54 std::cout<<
" File name is "<<(*records)[
"FileName"]<<std::endl;
56 TTree* tree=
new TTree();
64 ULong64_t ets1,ets2_pre,flag_pre;
65 int trigChannel_9,evt;
66 tree->SetBranchAddress(
"ets1", &ets1);
67 tree->SetBranchAddress(
"ets2_pre", &ets2_pre);
68 tree->SetBranchAddress(
"flag_pre", &flag_pre);
69 tree->SetBranchAddress(
"trigChannel_9", &trigChannel_9);
70 tree->SetBranchAddress(
"evt", &evt);
71 no = tree->GetEntries();
85 return StatusCode::SUCCESS;
const CLID CLID_Calib_CorrectedETS
void setFlag_pre(unsigned long flag_pre)
void setTrigChannel_9(int trigChannel_9)
void setEts1(unsigned long ets1)
void setNpar(const int npar)
void setEts2_pre(unsigned long ets2_pre)
virtual DatabaseRecord * pp()
TreeCorrectedETSCnv(ISvcLocator *svc)
const CLID & objType() const
virtual StatusCode i_createObj(IOpaqueAddress *address, DataObject *&refpObject)
static const CLID & classID()