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
9f88f065
Commit
9f88f065
authored
Jan 10, 2017
by
Muzalevsky I.A
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://er.jinr.ru:90/vratislav.chudoba/NeuRad_tests
parents
647cbcb1
567705d8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
5 deletions
+53
-5
analysis_07_1.root
data/dataDSR4/analysis_07_1.root
+0
-0
AEvent.cpp
dataClasses/AEvent.cpp
+9
-0
AEvent.h
dataClasses/AEvent.h
+3
-1
testShowCFD.cxx
macros/testShowCFD.cxx
+34
-0
testShowGraphs.cxx
macros/testShowGraphs.cxx
+7
-4
No files found.
data/dataDSR4/analysis_07_1.root
View file @
9f88f065
No preview for this file type
dataClasses/AEvent.cpp
View file @
9f88f065
...
@@ -18,6 +18,7 @@ AEvent::AEvent() : fNPoints(1024) {
...
@@ -18,6 +18,7 @@ AEvent::AEvent() : fNPoints(1024) {
AEvent
::~
AEvent
()
{
AEvent
::~
AEvent
()
{
// TODO Auto-generated destructor stub
// TODO Auto-generated destructor stub
delete
gSignal
;
delete
gSignal
;
delete
gCFD
;
}
}
void
AEvent
::
SetRawDataFile
(
const
char
*
inprawfile
,
const
char
*
treename
)
{
void
AEvent
::
SetRawDataFile
(
const
char
*
inprawfile
,
const
char
*
treename
)
{
...
@@ -61,6 +62,10 @@ void AEvent::ProcessEvent() {
...
@@ -61,6 +62,10 @@ void AEvent::ProcessEvent() {
fAmpMax
=
maxAmp
;
fAmpMax
=
maxAmp
;
fTimeAmpMax
=
maxAmpT
;
fTimeAmpMax
=
maxAmpT
;
SetGraphs
();
SetCFD
();
return
;
return
;
}
}
...
@@ -88,6 +93,7 @@ void AEvent::SetInputEvent(RawEvent** event) {
...
@@ -88,6 +93,7 @@ void AEvent::SetInputEvent(RawEvent** event) {
void
AEvent
::
Init
()
{
void
AEvent
::
Init
()
{
gSignal
=
new
TGraph
();
gSignal
=
new
TGraph
();
gCFD
=
new
TGraph
();
fInputEvent
=
0
;
fInputEvent
=
0
;
}
}
...
@@ -102,3 +108,6 @@ void AEvent::SetGraphs() {
...
@@ -102,3 +108,6 @@ void AEvent::SetGraphs() {
return
;
return
;
}
}
void
AEvent
::
SetCFD
()
{
}
dataClasses/AEvent.h
View file @
9f88f065
...
@@ -38,6 +38,7 @@ private:
...
@@ -38,6 +38,7 @@ private:
Double_t
fTimeAmpMax
;
Double_t
fTimeAmpMax
;
TGraph
*
gSignal
;
TGraph
*
gSignal
;
TGraph
*
gCFD
;
RawEvent
*
fInputEvent
;
//!
RawEvent
*
fInputEvent
;
//!
...
@@ -53,13 +54,14 @@ public:
...
@@ -53,13 +54,14 @@ public:
void
Reset
();
void
Reset
();
//Resets arrays to zeros
//Resets arrays to zeros
void
SetGraphs
();
TGraph
*
GetGraph
()
{
TGraph
*
GetGraph
()
{
return
gSignal
;
return
gSignal
;
}
}
private
:
private
:
void
Init
();
void
Init
();
void
SetGraphs
();
void
SetCFD
();
};
};
#endif
/* DATACLASSES_AEVENT_H_ */
#endif
/* DATACLASSES_AEVENT_H_ */
macros/testShowCFD.cxx
0 → 100644
View file @
9f88f065
void
testShowCFD
()
{
gSystem
->
Load
(
"../libData.so"
);
const
Long64_t
kFirstEvent
=
128
;
TFile
fr
(
"../data/dataDSR4/analysis_07_1.root"
);
TTree
*
tr
=
(
TTree
*
)
fr
.
Get
(
"atree"
);
AEvent
*
revent
=
new
AEvent
();
tr
->
SetBranchAddress
(
"Ach0."
,
&
revent
);
TGraph
*
gr
[
10
];
//loop over events
for
(
Int_t
i
=
0
;
i
<
10
;
i
++
)
{
gr
[
i
]
=
0
;
tr
->
GetEntry
(
i
+
kFirstEvent
);
gr
[
i
]
=
new
TGraph
(
*
revent
->
GetGraph
());
}
//for over events
TCanvas
*
c1
=
new
TCanvas
(
"c1"
,
"test"
,
10
,
10
,
1000
,
600
);
c1
->
Divide
(
3
,
2
);
for
(
Int_t
i
=
0
;
i
<
6
;
i
++
)
{
c1
->
cd
(
i
+
1
);
gr
[
i
]
->
Draw
();
}
// c1->cd(2);
// tr->Draw("gAmp.Draw()","","goff",1,124);
}
macros/testShowGraphs.cxx
View file @
9f88f065
...
@@ -3,22 +3,25 @@ void testShowGraphs()
...
@@ -3,22 +3,25 @@ void testShowGraphs()
gSystem
->
Load
(
"../libData.so"
);
gSystem
->
Load
(
"../libData.so"
);
const
Long64_t
kFirstEvent
=
128
;
TFile
fr
(
"../data/dataDSR4/analysis_07_1.root"
);
TFile
fr
(
"../data/dataDSR4/analysis_07_1.root"
);
TTree
*
tr
=
(
TTree
*
)
fr
.
Get
(
"atree"
);
TTree
*
tr
=
(
TTree
*
)
fr
.
Get
(
"atree"
);
AEvent
*
revent
=
new
AEvent
();
AEvent
*
revent
=
new
AEvent
();
tr
->
SetBranchAddress
(
"Ach
1
"
,
&
revent
);
tr
->
SetBranchAddress
(
"Ach
0.
"
,
&
revent
);
TGraph
*
gr
[
10
];
TGraph
*
gr
[
10
];
//loop over events
for
(
Int_t
i
=
0
;
i
<
10
;
i
++
)
{
for
(
Int_t
i
=
0
;
i
<
10
;
i
++
)
{
gr
[
i
]
=
0
;
gr
[
i
]
=
0
;
tr
->
GetEntry
(
i
+
28
);
tr
->
GetEntry
(
i
+
kFirstEvent
);
gr
[
i
]
=
new
TGraph
(
*
revent
->
GetGraph
());
gr
[
i
]
=
new
TGraph
(
*
revent
->
GetGraph
());
}
}
//for over events
auto
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
);
for
(
Int_t
i
=
0
;
i
<
6
;
i
++
)
{
for
(
Int_t
i
=
0
;
i
<
6
;
i
++
)
{
...
...
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