1#include "GaudiKernel/MsgStream.h"
11#include "TBufferFile.h"
14#include "GaudiKernel/CnvFactory.h"
15#include "GaudiKernel/IOpaqueAddress.h"
16#include "GaudiKernel/DataObject.h"
17#include "GaudiKernel/IAddressCreator.h"
18#include "GaudiKernel/IDataProviderSvc.h"
19#include "GaudiKernel/IConversionSvc.h"
20#include "GaudiKernel/GenericAddress.h"
48 DataObject*& refpObject) {
50 MsgStream log(
msgSvc(),
"TreeDedxSimDataCnv");
56 TBufferFile *buf1 =
new TBufferFile(TBuffer::kRead);
57 TBufferFile *buf2 =
new TBufferFile(TBuffer::kRead);
59 buf1->SetBuffer((*records)[
"TH1F_Col"],51200000,kFALSE);
60 buf2->SetBuffer((*records)[
"bin"],512000,kFALSE);
62 std::cout<<
" SftVer is "<<(*records)[
"SftVer"];
63 std::cout<<
" CalVerSft is "<<(*records)[
"CalParVer"];
64 std::cout<<
" File name is "<<(*records)[
"FileName"]<<std::endl;
69 TTree* tree =
new TTree();
70 tree->Streamer(*buf1);
72 TTree*
bin =
new TTree();
77 std::vector<TH1F> hist;
78 std::vector<double> hRange;
82 int entries=tree->GetEntries();
83 for(cnt=0; cnt<entries; cnt++){
87 h2=(TH1F*)h1->Clone();
91 double betagamma[5000];
95 if (
bin->FindBranch(
"version"))
bin->SetBranchAddress(
"version", &ver);
97 if (
bin->FindBranch(
"thetaNum"))
bin->SetBranchAddress(
"thetaNum", &thetaNum);
104 for(cnt=0; cnt<bgNum; cnt++){
105 hRange.push_back(betagamma[cnt]);
113 refpObject=tmpObject;
118 return StatusCode::SUCCESS;
data SetBranchAddress("time",&time)
*******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)
virtual DatabaseRecord * pp()
TreeDedxSimDataCnv(ISvcLocator *svc)
virtual StatusCode i_createObj(IOpaqueAddress *address, DataObject *&refpObject)
const CLID & objType() const
static const CLID & classID()