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
1f2e4d36
Commit
1f2e4d36
authored
Jan 17, 2017
by
Kostyleva D.A
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AEvent::FindFrontProperties is being tested
parent
87dabea9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
10 deletions
+19
-10
AEvent.cpp
dataClasses/AEvent.cpp
+5
-1
analyse.C
macros/analyse.C
+5
-0
testShowGraphs.cxx
macros/testShowGraphs.cxx
+9
-9
No files found.
dataClasses/AEvent.cpp
View file @
1f2e4d36
...
...
@@ -198,10 +198,14 @@ void AEvent::FindFrontProperties() {
fTime90
=
time
;
time
=
time
-
timeStep
;
}
// cout << "Found time90 " << fTime90 << endl;
// cout<< "Time90 - time10 "<< fTime90 - fTime10 << endl;
// if(fTime90 - fTime10 == 0.25 ) { cout<< "Zero !!"<<endl; }
TF1
*
fit1
=
new
TF1
(
"fit1"
,
"[1]*x+[0]"
);
//function for one parameter fitting in the range of pmin-pmax
fit1
->
SetRange
(
fTime10
,
fTime90
);
fGraphSignal
->
Fit
(
fit1
,
"RQ
N
"
,
"goff"
);
fGraphSignal
->
Fit
(
fit1
,
"RQ"
,
"goff"
);
fEdgeSlope
=
fit1
->
GetParameter
(
1
);
delete
fit1
;
...
...
macros/analyse.C
View file @
1f2e4d36
// now raw .root to analyzed .root conversion
// is taking place in
// ./convertRawToAnalyzed/analyse.cpp
// it is compiled within makefile
void
analyse
()
{
gSystem
->
Load
(
"../libData.so"
);
...
...
macros/testShowGraphs.cxx
View file @
1f2e4d36
...
...
@@ -3,11 +3,11 @@ void testShowGraphs()
gSystem
->
Load
(
"../libData.so"
);
const
Long64_t
kFirstEvent
=
128
;
const
Long64_t
kFirstEvent
=
50
;
// TFile fr("../data/dataDSR4/analysis_07_1.root");
//
TFile fr("../data/dataDSR4/analysis_07_8.root");
TFile
fr
(
"../data/dataTektronix/analysisExp7.root"
);
TFile
fr
(
"../data/dataDSR4/analysis_07_8.root"
);
//
TFile fr("../data/dataTektronix/analysisExp7.root");
TTree
*
tr
=
(
TTree
*
)
fr
.
Get
(
"atree"
);
AEvent
*
revent
=
new
AEvent
();
...
...
@@ -15,22 +15,22 @@ void testShowGraphs()
TGraph
*
gr
[
10
];
cout
<<
"warning"
<<
endl
;
//
cout << "warning" << endl;
cout
<<
tr
->
GetEntries
()
<<
endl
;
//loop over events
for
(
Long64_t
i
=
0
;
i
<
10
;
i
++
)
{
gr
[
i
]
=
0
;
cout
<<
"warning 1"
<<
endl
;
//
cout << "warning 1" << endl;
cout
<<
i
+
kFirstEvent
<<
endl
;
//
tr->GetEntry(i+kFirstEvent);
tr
->
GetEntry
(
i
);
cout
<<
"warning 2"
<<
endl
;
tr
->
GetEntry
(
i
+
kFirstEvent
);
//
tr->GetEntry(i);
//
cout << "warning 2" << endl;
gr
[
i
]
=
new
TGraph
(
*
revent
->
GetGraphSignal
());
}
//for over events
cout
<<
"warning 3"
<<
endl
;
//
cout << "warning 3" << endl;
TCanvas
*
c1
=
new
TCanvas
(
"c1"
,
"test"
,
10
,
10
,
1000
,
600
);
c1
->
Divide
(
3
,
2
);
...
...
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