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"
41 DataObject*& refpObject) {
43 MsgStream log(
msgSvc(),
"RootOffEvtFilterCnv");
44 log<<MSG::DEBUG<<
"SetProperty "<<fname<<endreq;
48 { log<<MSG::ERROR<<
"unable to open files11"<<endreq;
59 vector<double> TestCalibConst;
60 int runFrom, runTo, eventFrom, eventTo;
62 TTree *tree = (TTree*)
m_inFile -> Get(
"data");
63 tree->SetBranchAddress(
"runFrom", &runFrom );
64 tree->SetBranchAddress(
"runTo", &runTo );
65 tree->SetBranchAddress(
"eventFrom", &eventFrom );
66 tree->SetBranchAddress(
"eventTo", &eventTo );
77 TTree *tree2 = (TTree*)
m_inFile -> Get(
"oef");
78 tree2->SetBranchAddress(
"flag", &
flag);
79 tree2->SetBranchAddress(
"tbegin", &tBegin);
80 tree2->SetBranchAddress(
"tend", &tEnd);
83 no = tree2->GetEntries();
94 return StatusCode::SUCCESS;
100 MsgStream log(
msgSvc(),
"RootOffEvtFilterCnv");
105 { log<<MSG::ERROR<<
"unable to open files22"<<endreq;
129 log<<MSG::INFO<<
"successfully create RootFile"<<endreq;
const CLID CLID_Calib_OffEvtFilter
void setTEnd(const double tEnd)
void setTBegin(const double tBegin)
void setRunTo(const int runTo)
void setFlag(const int flag)
void setNpar(const int npar)
void setRunFrom(const int runFrom)
void setEventTo(const int eventTo)
void setEventFrom(const int eventFrom)
StatusCode openRead(const std::string &fname)
virtual StatusCode openWrite(const std::string &fname)
virtual StatusCode createRoot(const std::string &fname, CalibData::CalibBase1 *pTDSObj)
RootOffEvtFilterCnv(ISvcLocator *svc)
const CLID & objType() const
static const CLID & classID()
virtual StatusCode i_createObj(const std::string &fname, DataObject *&refpObject)