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"
42 DataObject*& refpObject) {
44 MsgStream log(
msgSvc(),
"RootCorrectedETSCnv");
45 log<<MSG::DEBUG<<
"SetProperty"<<endreq;
49 { log<<MSG::ERROR<<
"unable to open files"<<endreq;
61 ULong64_t ets1,ets2_pre,flag_pre;
62 int trigChannel_9,evt;
65 TTree *tree = (TTree*)
m_inFile -> Get(
"event");
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);
72 TTree *tree = (TTree*)
m_inFile -> Get(
"event");
73 no = tree->GetEntries();
86 return StatusCode::SUCCESS;
92 MsgStream log(
msgSvc(),
"RootCorrectedETSCnv");
97 { log<<MSG::ERROR<<
"unable to open files"<<endreq;
100 log<<MSG::INFO<<
"successfully create RootFile"<<endreq;
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)
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)