2#include "GaudiKernel/MsgStream.h"
4#include "CalibData/Dedx/DedxSimData.h"
5#include "CalibDataSvc/IInstrumentName.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"
21#include "CalibDataSvc/ICalibRootSvc.h"
22#include "CalibDataSvc/ICalibMetaCnvSvc.h"
28#include "CalibData/CalibModel.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();
80 double betagamma[5000];
85 if (
bin->FindBranch(
"version"))
bin->SetBranchAddress(
"version", &ver);
87 if (
bin->FindBranch(
"thetaNum"))
bin->SetBranchAddress(
"thetaNum", &thetaNum);
89 bin->SetBranchAddress(
"totalNum", &totalNum);
90 bin->SetBranchAddress(
"betagamma", betagamma);
91 bin->SetBranchAddress(
"betagammaBounds", &bgNum);
95 for (cnt = 0; cnt < bgNum; cnt++) {
96 hRange.push_back(betagamma[cnt]);
105 refpObject = tmpObject;
107 return StatusCode::SUCCESS;
112 MsgStream log(
msgSvc(),
"RootDedxSimDataCnv");
117 { 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 setThetaNo(const int No)
void setHistNo(const int No)
void setRange(const vector< double > *hRange)
void setHist(const vector< TH1F > *hist)
void setRangeNo(const int No)
void setVersion(const int ver)
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)