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
c4aaa9d6
Commit
c4aaa9d6
authored
Jan 23, 2017
by
Muzalevsky I.A
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
script for observing noise sigma added
parent
cf39e4c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
NoiseSigma.cpp
macros/NoiseSigma.cpp
+43
-0
No files found.
macros/NoiseSigma.cpp
0 → 100644
View file @
c4aaa9d6
{
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");
// TFile fr("../data/dataDSR4/Neurad_081216_2NEW.root");
// TFile fr("../data/dataTektronix/exp18.root");
// TFile fr("../data/dataTektronix/analysisExp7.root");
TTree
*
tr
=
(
TTree
*
)
fr
.
Get
(
"atree"
);
AEvent
*
event
=
new
AEvent
();
tr
->
SetBranchAddress
(
"Ach0."
,
&
event
);
TCanvas
*
c1
=
new
TCanvas
(
"c1"
,
"test"
,
10
,
10
,
1000
,
600
);
c1
->
Divide
(
2
,
2
);
Double_t
Noise
[
500
];
TH1F
*
histNoise
[
4
];
TString
var
,
con
,
histName
;
//TH1F *h1 = new TH1F("h1", "h1 title", 100, 0, 4.4);
for
(
Int_t
i
=
0
;
i
<
4
;
i
++
)
{
histName
.
Form
(
"histNoise%d"
,
i
);
histNoise
[
i
]
=
new
TH1F
(
histName
.
Data
(),
"Noise distribution"
,
500
,
-
0.003
,
0.003
);
tr
->
GetEntry
(
i
+
kFirstEvent
);
for
(
Int_t
j
=
100
;
j
<
600
;
j
++
)
{
// filling array with AmpPos
Noise
[
j
-
100
]
=
event
->
GetOnefAmpPos
(
j
);
histNoise
[
i
]
->
Fill
(
Noise
[
j
-
100
]);
}
c1
->
cd
(
i
+
1
);
histNoise
[
i
]
->
Draw
();
c1
->
Update
();
}
}
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