2#include "GaudiKernel/MsgStream.h"
13#include "GaudiKernel/CnvFactory.h"
14#include "GaudiKernel/IOpaqueAddress.h"
15#include "GaudiKernel/DataObject.h"
16#include "GaudiKernel/IAddressCreator.h"
17#include "GaudiKernel/IDataProviderSvc.h"
18#include "GaudiKernel/IConversionSvc.h"
19#include "GaudiKernel/GenericAddress.h"
49 DataObject*& refpObject) {
51 MsgStream log(
msgSvc(),
"RootDedxSimDataCnv");
52 log<<MSG::DEBUG<<
"SetProperty"<<endreq;
61 log<<MSG::ERROR<<
"unable to open files"<<endreq;
64 std::vector<TH1F> hist;
65 std::vector<double> hRange;
68 TTree *tree=(TTree*)
m_inFile->Get(
"TH1F_Col");
69 tree->SetBranchAddress(
"TH1F_Col", &h1);
70 int entries=tree->GetEntries();
71 for (cnt = 0; cnt < entries; cnt++) {
75 h2=(TH1F*)h1->Clone();
79 double betagamma[5000];
83 bin->SetBranchAddress(
"totalNum", &totalNum);
84 bin->SetBranchAddress(
"betagamma", betagamma);
85 bin->SetBranchAddress(
"betagammaBounds", &bgNum);
89 for (cnt = 0; cnt < bgNum; cnt++) {
90 hRange.push_back(betagamma[cnt]);
97 refpObject = tmpObject;
99 return StatusCode::SUCCESS;
104 MsgStream log(
msgSvc(),
"RootDedxSimDataCnv");
109 { log<<MSG::ERROR<<
"unable to open files"<<endreq;
*******INTEGER m_nBinMax INTEGER m_NdiMax !No of bins in histogram for cell exploration division $ !Last vertex $ !Last active cell $ !Last cell in buffer $ !No of sampling when dividing cell $ !No of function total $ !Flag for random ceel for $ !Flag for type of for WtMax $ !Flag which decides whether vertices are included in the sampling $ entire domain is hyp !Maximum effective eevents per bin
void setHistNo(const int No)
void setRange(const vector< double > *hRange)
void setHist(const vector< TH1F > *hist)
void setRangeNo(const int No)
StatusCode openRead(const std::string &fname)
virtual StatusCode openWrite(const std::string &fname)
virtual StatusCode i_createObj(const std::string &fname, DataObject *&refpObject)
static const CLID & classID()
virtual StatusCode createRoot(const std::string &fname, CalibData::CalibBase1 *pTDSObj)
const CLID & objType() const
RootDedxSimDataCnv(ISvcLocator *svc)