Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NeuRad_tests
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vratislav Chudoba
NeuRad_tests
Commits
993d076c
Commit
993d076c
authored
Jan 23, 2017
by
Muzalevsky I.A
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trying to merge files
parent
fcf14ea5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
8 deletions
+25
-8
histCorr.C
macros/histCorr.C
+18
-1
testShowGraphs.cxx
macros/testShowGraphs.cxx
+7
-7
No files found.
macros/histCorr.C
View file @
993d076c
//#include "TCanvas.h"
//#include "TCanvas.h"
void
histCorr
(
const
char
*
filename
=
"analysis_07_8.root"
,
const
char
*
foldername
=
"7_8"
,
const
char
*
ext
=
".eps"
,
const
Bool_t
can1
=
1
,
const
Bool_t
can2
=
1
,
const
Bool_t
can3
=
1
,
const
Bool_t
can4
=
1
)
void
histCorr
(
const
char
*
filename
=
"analysis_07_8.root"
,
const
char
*
foldername
=
"7_8"
,
const
char
*
ext
=
".eps"
,
const
Bool_t
can1
=
0
,
const
Bool_t
can2
=
0
,
const
Bool_t
can3
=
0
,
const
Bool_t
can4
=
0
,
const
Bool_t
can5
=
1
)
{
{
gSystem
->
Load
(
"../libData.so"
);
gSystem
->
Load
(
"../libData.so"
);
TFile
*
f
=
new
TFile
(
Form
(
"../data/dataDSR4/%s"
,
filename
));
TFile
*
f
=
new
TFile
(
Form
(
"../data/dataDSR4/%s"
,
filename
));
...
@@ -154,4 +154,21 @@ void histCorr(const char *filename = "analysis_07_8.root", const char *foldernam
...
@@ -154,4 +154,21 @@ void histCorr(const char *filename = "analysis_07_8.root", const char *foldernam
}
}
if
(
can5
)
{
TCanvas
*
c5
=
new
TCanvas
(
"c5"
,
"Sigma"
);
c5
->
cd
();
TH1F
*
h11
=
new
TH1F
(
"h11"
,
"sigma"
,
1023
,
-
10
,
10
);
t
->
Draw
(
"Ach1.fAmpPos >> h11"
,
"Ach1.fTime >0"
,
"col"
);
//x
//h10->GetXaxis()->SetTitle("\\Delta \\tau_{1}^{(rise)} [ns]");
//h10->GetXaxis()->CenterTitle();
//y
//h10->GetYaxis()->SetTitle("fEdgeXi");
//h10->GetYaxis()->CenterTitle();
c5
->
Update
();
//c4->Print(Form("../macros/picsDRS4/file%s/XiSquares%s", foldername, ext));
}
}
}
macros/testShowGraphs.cxx
View file @
993d076c
...
@@ -7,7 +7,7 @@ void testShowGraphs()
...
@@ -7,7 +7,7 @@ void testShowGraphs()
// TFile fr("../data/dataDSR4/analysis_07_1.root");
// TFile fr("../data/dataDSR4/analysis_07_1.root");
// TFile fr("../data/dataDSR4/analysis_07_8.root");
// TFile fr("../data/dataDSR4/analysis_07_8.root");
TFile
fr
(
"../data/data
Tektronix/exp18
.root"
);
TFile
fr
(
"../data/data
DSR4/Neurad_081216_2NEW
.root"
);
// TFile fr("../data/dataTektronix/analysisExp7.root");
// TFile fr("../data/dataTektronix/analysisExp7.root");
TTree
*
tr
=
(
TTree
*
)
fr
.
Get
(
"atree"
);
TTree
*
tr
=
(
TTree
*
)
fr
.
Get
(
"atree"
);
...
@@ -45,19 +45,19 @@ void testShowGraphs()
...
@@ -45,19 +45,19 @@ void testShowGraphs()
// cout << "warning 3" << endl;
// cout << "warning 3" << endl;
TCanvas
*
c1
=
new
TCanvas
(
"c1"
,
"test"
,
10
,
10
,
1000
,
600
);
TCanvas
*
c1
=
new
TCanvas
(
"c1"
,
"test"
,
10
,
10
,
1000
,
600
);
c1
->
Divide
(
3
,
2
);
//
c1->Divide(3,2);
TF1
*
f1
=
new
TF1
(
"f1name"
,
"[0]+x*[1]"
);
TF1
*
f1
=
new
TF1
(
"f1name"
,
"[0]+x*[1]"
);
// TF1 *f1 = new TF1("pol1", );
// TF1 *f1 = new TF1("pol1", );
for
(
Int_t
k
=
0
;
k
<
6
;
k
++
)
{
/*
for (Int_t k = 0; k < 6; k++) {
c1->cd(k+1);
c1->cd(k+1);
gr[k]->Draw("AL*");
gr[k]->Draw("AL*");
cout
<<
t10
[
k
]
<<
"
\t
"
<<
t90
[
k
]
<<
endl
;
//
cout << t10[k] << "\t" << t90[k] << endl;
f1
->
SetRange
(
t10
[
k
],
t90
[
k
]);
//
f1->SetRange(t10[k], t90[k]);
gr
[
k
]
->
Fit
(
f1
,
"RQ"
);
//
gr[k]->Fit(f1, "RQ");
}
}
*/
// c1->cd(2);
// c1->cd(2);
// tr->Draw("gAmp.Draw()","","goff",1,124);
// tr->Draw("gAmp.Draw()","","goff",1,124);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment