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
e3dcb40f
Commit
e3dcb40f
authored
Jan 23, 2017
by
Kostyleva D.A
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AEvent::SetLED method added (leading edge discriminator)
parent
c4aaa9d6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
11 deletions
+21
-11
analysis_07_1.root
data/dataDSR4/analysis_07_1.root
+0
-0
AEvent.cpp
dataClasses/AEvent.cpp
+13
-0
AEvent.h
dataClasses/AEvent.h
+3
-1
NoiseSigma.cpp
macros/NoiseSigma.cpp
+4
-2
histCorr.C
macros/histCorr.C
+1
-8
No files found.
data/dataDSR4/analysis_07_1.root
deleted
100644 → 0
View file @
c4aaa9d6
File deleted
dataClasses/AEvent.cpp
View file @
e3dcb40f
...
@@ -52,6 +52,7 @@ void AEvent::ProcessEvent() {
...
@@ -52,6 +52,7 @@ void AEvent::ProcessEvent() {
SetGraphs
();
SetGraphs
();
FindFrontProperties
();
FindFrontProperties
();
SetLED
();
// SetGraphs();
// SetGraphs();
SetCFD
();
SetCFD
();
SetChargeCFD
();
SetChargeCFD
();
...
@@ -279,3 +280,15 @@ void AEvent::SetMaxAmplitudes() {
...
@@ -279,3 +280,15 @@ void AEvent::SetMaxAmplitudes() {
fTimeAmpMax
=
maxAmpT
;
fTimeAmpMax
=
maxAmpT
;
}
}
void
AEvent
::
SetLED
(
Double_t
threshold
)
{
Double_t
time
=
0
;
const
Double_t
timeStep
=
0.1
;
while
(
time
<
200.
&&
fGraphSignal
->
Eval
(
time
)
<=
threshold
)
{
fTimeLED
=
time
;
time
=
time
+
timeStep
;
}
//fTimeLED = time;
}
dataClasses/AEvent.h
View file @
e3dcb40f
...
@@ -48,6 +48,8 @@ private:
...
@@ -48,6 +48,8 @@ private:
Double_t
fTimeCFD
;
//zero-crossing time
Double_t
fTimeCFD
;
//zero-crossing time
Double_t
fChargeCFD
;
//charge of the signal in Coulomb
Double_t
fChargeCFD
;
//charge of the signal in Coulomb
Double_t
fTimeLED
;
//time of LED threshold crossing
TGraph
*
fGraphSignal
;
TGraph
*
fGraphSignal
;
TGraph
*
fGraphCFD
;
TGraph
*
fGraphCFD
;
...
@@ -120,7 +122,7 @@ public:
...
@@ -120,7 +122,7 @@ public:
//in range of (tmin,tmax) in ns)
//in range of (tmin,tmax) in ns)
//CFD time is taken as a start point
//CFD time is taken as a start point
void
SetLED
(
Double_t
threshold
=
0
.
0
01
);
void
SetLED
(
Double_t
threshold
=
0
.
0
15
);
//leading edge discriminator
//leading edge discriminator
private
:
private
:
...
...
macros/NoiseSigma.cpp
View file @
e3dcb40f
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
const
Long64_t
kFirstEvent
=
128
;
const
Long64_t
kFirstEvent
=
128
;
TFile
fr
(
"../data/dataDSR4/Neurad_7_08_NEW.root"
);
//
TFile fr("../data/dataDSR4/Neurad_7_08_NEW.root");
//
TFile fr("../data/dataDSR4/analysis_07_8.root");
TFile
fr
(
"../data/dataDSR4/analysis_07_8.root"
);
// TFile fr("../data/dataDSR4/Neurad_081216_2NEW.root");
// TFile fr("../data/dataDSR4/Neurad_081216_2NEW.root");
// TFile fr("../data/dataTektronix/exp18.root");
// TFile fr("../data/dataTektronix/exp18.root");
// TFile fr("../data/dataTektronix/analysisExp7.root");
// TFile fr("../data/dataTektronix/analysisExp7.root");
...
@@ -35,6 +35,8 @@
...
@@ -35,6 +35,8 @@
c1
->
cd
(
i
+
1
);
c1
->
cd
(
i
+
1
);
histNoise
[
i
]
->
Draw
();
histNoise
[
i
]
->
Draw
();
histNoise
[
i
]
->
Fit
(
"gaus"
);
gStyle
->
SetOptFit
();
c1
->
Update
();
c1
->
Update
();
}
}
...
...
macros/histCorr.C
View file @
e3dcb40f
//#include "TCanvas.h"
//#include "TCanvas.h"
<<<<<<<
HEAD
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
)
=======
void
histCorr
(
void
histCorr
(
// const char *filename = "analysis_07_8.root",
// const char *filename = "analysis_07_8.root",
const
char
*
filename
=
"analysis_08_2.root"
,
const
char
*
filename
=
"analysis_08_2.root"
,
...
@@ -10,12 +7,8 @@ void histCorr(
...
@@ -10,12 +7,8 @@ void histCorr(
const
char
*
foldername
=
"8_2"
,
const
char
*
foldername
=
"8_2"
,
// const char *ext = ".eps",
// const char *ext = ".eps",
const
char
*
ext
=
".gif"
,
const
char
*
ext
=
".gif"
,
<<<<<<<
HEAD
const
Bool_t
can1
=
1
,
const
Bool_t
can2
=
1
,
const
Bool_t
can3
=
1
,
const
Bool_t
can4
=
1
,
const
Bool_t
can5
=
1
)
>>>>>>>
1612
d04b19c3139e125a1642bdb0763585790d84
=======
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
)
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
)
>>>>>>>
07
d2b501d7fd6bf88dd2d6b203a724d53357bbe3
{
{
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
));
...
...
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