2#include "CalibData/Ets/CorrectedETSCal.h"
3#include "CalibDataSvc/IInstrumentName.h"
4#include "GaudiKernel/MsgStream.h"
11#include "GaudiKernel/DataObject.h"
12#include "GaudiKernel/GenericAddress.h"
13#include "GaudiKernel/IAddressCreator.h"
14#include "GaudiKernel/IConversionSvc.h"
15#include "GaudiKernel/IDataProviderSvc.h"
16#include "GaudiKernel/IOpaqueAddress.h"
18#include "CalibDataSvc/ICalibMetaCnvSvc.h"
19#include "CalibDataSvc/ICalibRootSvc.h"
22#include "CalibData/CalibModel.h"
33 DataObject*& refpObject ) {
35 MsgStream log(
msgSvc(),
"RootCorrectedETSCnv" );
36 log << MSG::DEBUG <<
"SetProperty" << endmsg;
39 if ( !sc ) { log << MSG::ERROR <<
"unable to open files" << endmsg; }
50 ULong64_t ets1, ets2_pre, flag_pre;
51 int trigChannel_9, evt;
55 TTree* tree = (TTree*)
m_inFile->Get(
"event" );
56 tree->SetBranchAddress(
"ets1", &ets1 );
57 tree->SetBranchAddress(
"ets2_pre", &ets2_pre );
58 tree->SetBranchAddress(
"flag_pre", &flag_pre );
59 tree->SetBranchAddress(
"trigChannel_9", &trigChannel_9 );
60 tree->SetBranchAddress(
"evt", &evt );
62 TTree* tree = (TTree*)
m_inFile->Get(
"event" );
63 no = tree->GetEntries();
65 for ( i = 0; i < no; i++ )
75 refpObject = tmpObject;
77 return StatusCode::SUCCESS;
83 MsgStream log(
msgSvc(),
"RootCorrectedETSCnv" );
87 if ( !sc ) { log << MSG::ERROR <<
"unable to open files" << endmsg; }
89 log << MSG::INFO <<
"successfully create RootFile" << endmsg;
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)
StatusCode openRead(const std::string &fname)
RootCalBaseCnv(ISvcLocator *svc, const CLID &clid)
virtual StatusCode openWrite(const std::string &fname)
RootCorrectedETSCnv(ISvcLocator *svc)
const CLID & objType() const
static const CLID & classID()
virtual StatusCode i_createObj(const std::string &fname, DataObject *&refpObject)
virtual StatusCode createRoot(const std::string &fname, CalibData::CalibBase1 *pTDSObj)