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
76a5422f
Commit
76a5422f
authored
Feb 07, 2017
by
Kostyleva D.A
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Number of points for smoothing are added in analyse.cpp
parent
882d69e4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
analyse.cpp
convertRawToAnalyzed/analyse.cpp
+2
-1
AEvent.cpp
dataClasses/AEvent.cpp
+4
-4
AEvent.h
dataClasses/AEvent.h
+4
-0
No files found.
convertRawToAnalyzed/analyse.cpp
View file @
76a5422f
...
...
@@ -19,7 +19,7 @@ int main(int argc, char* argv[])
const
Double_t
cfTD
=
1.5
;
//in ns
Double_t
noiseMin
=
5
;
Double_t
noiseMax
=
25
;
Int_t
nump
=
5
;
//number of points for smoothing
...
...
@@ -79,6 +79,7 @@ int main(int argc, char* argv[])
wevent
[
j
]
->
SetCFratio
(
cfRatio
);
wevent
[
j
]
->
SetCFtimeDelay
(
cfTD
);
wevent
[
j
]
->
SetNoiseRange
(
noiseMin
,
noiseMax
);
wevent
[
j
]
->
SetSmoothPoints
(
nump
);
tw
->
Bronch
(
bName
.
Data
(),
"AEvent"
,
&
wevent
[
j
]);
// create branches in atree to hold analyzed data
}
//----event loop in tr input tree
...
...
dataClasses/AEvent.cpp
View file @
76a5422f
...
...
@@ -131,10 +131,10 @@ void AEvent::SmoothGraphs() {
//smoothing graph
fGraphSmooth
->
Set
(
fNPoints
-
4
);
fGraphSmooth
->
Set
(
fNPoints
-
fWinSize
/
2
);
Int_t
winSize
=
5
;
//number of smoothing points
Int_t
winMidSize
=
w
inSize
/
2
;
//
Int_t winSize = 5; //number of smoothing points
Int_t
winMidSize
=
fW
inSize
/
2
;
Double_t
tmin
,
tmax
,
meanTime
,
meanAmp
;
for
(
Int_t
i
=
winMidSize
;
i
<
fNPoints
-
winMidSize
;
++
i
)
{
...
...
@@ -151,7 +151,7 @@ void AEvent::SmoothGraphs() {
meanTime
=
(
tmax
-
tmin
)
*
0.5
+
tmin
;
//cout<<"mean time "<<meant<<endl;
meanAmp
=
mean
/
w
inSize
;
meanAmp
=
mean
/
fW
inSize
;
//cout<<"mean amp "<<fAmpPos[i]<<endl;
fGraphSmooth
->
SetPoint
(
i
,
meanTime
,
meanAmp
);
...
...
dataClasses/AEvent.h
View file @
76a5422f
...
...
@@ -65,6 +65,7 @@ private:
Double_t
fNoiseRangeMin
;
//!
Double_t
fNoiseRangeMax
;
//!
Int_t
fWinSize
;
//!
public
:
AEvent
();
...
...
@@ -103,6 +104,9 @@ public:
void
SetNoiseRange
(
Double_t
min
,
Double_t
max
)
{
fNoiseRangeMin
=
min
;
fNoiseRangeMax
=
max
;
};
//Set noise range to be used in FindZeroLevel()
void
SetSmoothPoints
(
Int_t
numofp
)
{
fWinSize
=
numofp
;
};
//set number of smoothing points
void
Reset
();
//Resets arrays to zeros
...
...
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