48 {
49
50 MsgStream log(
msgSvc(),
"TreeDedxSimDataCnv");
51
55
56 TBufferFile *buf1 = new TBufferFile(TBuffer::kRead);
57 TBufferFile *buf2 = new TBufferFile(TBuffer::kRead);
58
59 buf1->SetBuffer((*records)["TH1F_Col"],51200000,kFALSE);
60 buf2->SetBuffer((*records)["bin"],512000,kFALSE);
61
62 std::cout<<" SftVer is "<<(*records)["SftVer"];
63 std::cout<<" CalVerSft is "<<(*records)["CalParVer"];
64 std::cout<<" File name is "<<(*records)["FileName"]<<std::endl;
65
66
67
68
69 TTree* tree = new TTree();
70 tree->Streamer(*buf1);
71
72 TTree*
bin =
new TTree();
74
75 TH1F *h1=new TH1F();
76
77 std::vector<TH1F> hist;
78 std::vector<double> hRange;
79
80 int cnt;
82 int entries=tree->GetEntries();
83 for(cnt=0; cnt<entries; cnt++){
85 gROOT->cd();
86 TH1F *h2=new TH1F();
87 h2=(TH1F*)h1->Clone();
88 hist.push_back(*h2);
89 }
90 int ver;
91 double betagamma[5000];
92 int totalNum;
93 int bgNum;
94 int thetaNum;
95 if (
bin->FindBranch(
"version"))
bin->SetBranchAddress(
"version", &ver);
96 else ver = 0;
97 if (
bin->FindBranch(
"thetaNum"))
bin->SetBranchAddress(
"thetaNum", &thetaNum);
98 else thetaNum = 16;
103
104 for(cnt=0; cnt<bgNum; cnt++){
105 hRange.push_back(betagamma[cnt]);
106 }
113 refpObject=tmpObject;
114
115 delete tree;
117
118 return StatusCode::SUCCESS;
119
120
121}
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()