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
26e240a4
Commit
26e240a4
authored
Feb 01, 2017
by
Kostyleva D.A
Browse files
Options
Browse Files
Download
Plain Diff
Commit to merge. Merge branch 'master' of
http://er.jinr.ru:90/vratislav.chudoba/NeuRad_tests
parents
182bd869
07c6d669
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
207 additions
and
517590 deletions
+207
-517590
AEvent.cpp
dataClasses/AEvent.cpp
+4
-0
AEvent.h
dataClasses/AEvent.h
+2
-0
histCorr.C
macros/histCorr.C
+173
-175
TimeDiffCFD.eps
macros/picsDRS4/file7_8/TimeDiffCFD.eps
+0
-100560
XiSquares
macros/picsDRS4/file7_8/XiSquares
+0
-416819
testShowGraphs.cxx
macros/testShowGraphs.cxx
+28
-36
No files found.
dataClasses/AEvent.cpp
View file @
26e240a4
...
...
@@ -301,6 +301,10 @@ Double_t AEvent::GetfCFD() {
return
fTimeCFD
;
}
Double_t
AEvent
::
GetfLED
()
{
return
fTimeLED
;
}
Double_t
AEvent
::
GetOnefTime
(
Int_t
i
)
{
return
fTime
[
i
];
}
...
...
dataClasses/AEvent.h
View file @
26e240a4
...
...
@@ -82,6 +82,8 @@ public:
Double_t
GetfCFD
();
Double_t
GetfLED
();
Double_t
GetOnefTime
(
Int_t
i
);
Double_t
GetOnefAmpPos
(
Int_t
i
);
...
...
macros/histCorr.C
View file @
26e240a4
This diff is collapsed.
Click to expand it.
macros/picsDRS4/file7_8/TimeDiffCFD.eps
deleted
100644 → 0
View file @
182bd869
This diff is collapsed.
Click to expand it.
macros/picsDRS4/file7_8/XiSquares
deleted
100644 → 0
View file @
182bd869
This diff is collapsed.
Click to expand it.
macros/testShowGraphs.cxx
View file @
26e240a4
#include <TTree.h>
#include <TGraph.h>
#include <TFile.h>
#include <TSystem.h>
#include <TCanvas.h>
#include "TStyle.h"
void
testShowGraphs
()
{
using
std
::
cout
;
using
std
::
endl
;
gStyle
->
SetCanvasDefH
(
900
);
gStyle
->
SetCanvasDefW
(
1500
);
const
char
*
foldername
=
"7_8"
;
const
char
*
ext
=
".gif"
;
gSystem
->
Load
(
"../libData.so"
);
const
Long64_t
kFirstEvent
=
128
;
// TFile fr("../data/dataDSR4/Neurad_7_08_NEW.root");
// TFile fr("../data/dataDSR4/analysis_07_8.root");
<<<<<<<
HEAD
<<<<<<<
HEAD
// TFile fr("../data/dataDSR4/Neurad_081216_2NEW.root");
// TFile fr("../data/dataTektronix/exp18.root");
=======
=======
TFile
fr
(
"../data/dataDSR4/analysis_08_2.root"
);
>>>>>>>
58
f61cb195c6b08755455386b15990ce4c27b599
// TFile fr("../data/dataDSR4/Neurad_081216_2NEW.root");
// TFile fr("../data/dataTektronix/exp18.root");
>>>>>>>
09
d9ad17f40ac0af9d228137f715f25ee9ea15ae
// TFile fr("../data/dataTektronix/analysisExp7.root");
TTree
*
tr
=
(
TTree
*
)
fr
.
Get
(
"atree"
);
AEvent
*
revent
=
new
AEvent
();
cout
<<
tr
->
SetBranchAddress
(
"Ach0."
,
&
revent
)
<<
endl
;
tr
->
SetBranchAddress
(
"Ach0."
,
&
revent
)
;
TGraph
*
gr
[
13
];
Double_t
t10
[
13
];
Double_t
t90
[
13
];
// cout << "warning" << endl;
cout
<<
tr
->
GetEntries
()
<<
endl
;
//loop over events
for
(
Long64_t
i
=
0
;
i
<
13
;
i
++
)
{
gr
[
i
]
=
0
;
t10
[
i
]
=
0
;
t90
[
i
]
=
0
;
// cout << "warning 1" << endl;
// cout << i+kFirstEvent << endl;
tr
->
GetEntry
(
i
+
kFirstEvent
);
// tr->GetEntry(i);
// cout << "warning 2" << endl;
gr
[
i
]
=
new
TGraph
(
*
revent
->
GetGraphSignal
());
t10
[
i
]
=
revent
->
GetT_10
();
t90
[
i
]
=
revent
->
GetT_90
();
...
...
@@ -56,40 +60,28 @@ void testShowGraphs()
}
//for over events
// cout << "warning 3" << endl;
TCanvas
*
c1
=
new
TCanvas
(
"c1"
,
"test"
,
10
,
10
,
1000
,
600
);
<<<<<<<
HEAD
//c1->Divide(3,2);
c1
->
Divide
(
3
,
4
);
c1
->
Divide
(
2
,
2
);
=======
//c1->Divide(3,2);
c1
->
Divide
(
3
,
4
);
>>>>>>>
09
d9ad17f40ac0af9d228137f715f25ee9ea15ae
TF1
*
f1
=
new
TF1
(
"f1name"
,
"[0]+x*[1]"
);
// TF1 *f1 = new TF1("pol1", );
<<<<<<<
HEAD
for
(
Int_t
k
=
0
;
k
<
6
;
k
++
)
{
// for (Int_t k = 0; k < 12; k++) {
=======
for
(
Int_t
k
=
0
;
k
<
12
;
k
++
)
{
>>>>>>>
09
d9ad17f40ac0af9d228137f715f25ee9ea15ae
for
(
Int_t
k
=
0
;
k
<
4
;
k
++
)
{
c1
->
cd
(
k
+
1
);
gr
[
k
]
->
GetXaxis
()
->
SetRangeUser
(
130
,
175
);
gr
[
k
]
->
GetXaxis
()
->
SetTitle
(
"Time [ns]"
);
gr
[
k
]
->
GetXaxis
()
->
CenterTitle
();
gr
[
k
]
->
GetYaxis
()
->
SetTitle
(
"Signal [V]"
);
gr
[
k
]
->
GetYaxis
()
->
CenterTitle
();
gr
[
k
]
->
Draw
(
"AL*"
);
//cout << t10[k] << "\t" << t90[k] << endl;
//f1->SetRange(t10[k], t90[k]);
//gr[k]->Fit(f1, "RQ");
}
c1
->
Print
(
Form
(
"../macros/picsDRS4/file%s/signals%s"
,
foldername
,
ext
));
// c1->cd(2);
// 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