2#include "CalibData/Ets/CorrectedETSCal.h"
3#include "CalibDataSvc/IInstrumentName.h"
4#include "CalibMySQLCnvSvc/TreeAddress.h"
5#include "GaudiKernel/MsgStream.h"
12#include "GaudiKernel/DataObject.h"
13#include "GaudiKernel/GenericAddress.h"
14#include "GaudiKernel/IAddressCreator.h"
15#include "GaudiKernel/IConversionSvc.h"
16#include "GaudiKernel/IDataProviderSvc.h"
17#include "GaudiKernel/IOpaqueAddress.h"
19#include "CalibDataSvc/ICalibMetaCnvSvc.h"
20#include "CalibDataSvc/ICalibTreeSvc.h"
23#include "CalibData/CalibModel.h"
35 MsgStream log(
msgSvc(),
"TreeCorrectedETSCnv" );
36 log << MSG::DEBUG <<
"SetProperty" << endmsg;
40 TBufferFile* buf =
new TBufferFile( TBuffer::kRead );
41 buf->SetBuffer( ( *records )[
"FinalETS"], 51200000, kFALSE );
45 std::cout <<
" File name is " << ( *records )[
"FileName"] << std::endl;
47 TTree* tree =
new TTree();
48 tree->Streamer( *buf );
55 ULong64_t ets1, ets2_pre, flag_pre;
56 int trigChannel_9, evt;
57 tree->SetBranchAddress(
"ets1", &ets1 );
58 tree->SetBranchAddress(
"ets2_pre", &ets2_pre );
59 tree->SetBranchAddress(
"flag_pre", &flag_pre );
60 tree->SetBranchAddress(
"trigChannel_9", &trigChannel_9 );
61 tree->SetBranchAddress(
"evt", &evt );
62 no = tree->GetEntries();
64 for ( i = 0; i < no; i++ )
74 refpObject = tmpObject;
77 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()
TreeCalBaseCnv(ISvcLocator *svc, const CLID &clid)
TreeCorrectedETSCnv(ISvcLocator *svc)
const CLID & objType() const
virtual StatusCode i_createObj(IOpaqueAddress *address, DataObject *&refpObject)
static const CLID & classID()