Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
go4egor
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vratislav Chudoba
go4egor
Commits
a5cd14a5
Commit
a5cd14a5
authored
Jun 17, 2018
by
Vratislav Chudoba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Macros for data analysis modified.
parent
dc5c0c4a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
fillChain.cxx
analysis/fillChain.cxx
+2
-0
openChain.cxx
analysis/openChain.cxx
+2
-1
showBananas2.cxx
analysis/showBananas2.cxx
+12
-1
No files found.
analysis/fillChain.cxx
View file @
a5cd14a5
...
@@ -11,9 +11,11 @@ void fillTree(Int_t nofile = 0, const Int_t noevents = 0) {
...
@@ -11,9 +11,11 @@ void fillTree(Int_t nofile = 0, const Int_t noevents = 0) {
TString
inFile
;
TString
inFile
;
inFile
.
Form
(
"~/data/exp1804/h5_14_%02d.root"
,
nofile
);
inFile
.
Form
(
"~/data/exp1804/h5_14_%02d.root"
,
nofile
);
// inFile.Form("~/data/exp1804/calib/si_20_03.root");
TString
outFile
;
TString
outFile
;
outFile
.
Form
(
"~/data/exp1804/h5_14_%02d_calib.root"
,
nofile
);
outFile
.
Form
(
"~/data/exp1804/h5_14_%02d_calib.root"
,
nofile
);
// outFile.Form("~/data/exp1804/calib/si_20_03_calib.root");
cout
<<
"Input file: "
<<
inFile
<<
endl
;
cout
<<
"Input file: "
<<
inFile
<<
endl
;
cout
<<
"Output file: "
<<
outFile
<<
endl
;
cout
<<
"Output file: "
<<
outFile
<<
endl
;
...
...
analysis/openChain.cxx
View file @
a5cd14a5
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
tr
->
AddFriend
(
trCal
);
tr
->
AddFriend
(
trCal
);
TFile
*
fcal
=
new
TFile
(
"~/data/exp1804/calib/si_20_03.root"
);
TFile
*
fcal
=
new
TFile
(
"~/data/exp1804/calib/si_20_03_calib.root"
);
TTree
*
tcal
=
(
TTree
*
)
fcal
->
Get
(
"cal"
);
}
}
analysis/showBananas2.cxx
View file @
a5cd14a5
...
@@ -23,6 +23,12 @@ void showBananas2(const Long64_t drawEntries = 100000) {
...
@@ -23,6 +23,12 @@ void showBananas2(const Long64_t drawEntries = 100000) {
tr
->
AddFriend
(
trCal
);
tr
->
AddFriend
(
trCal
);
TFile
*
fcal
=
new
TFile
(
"~/data/exp1804/calib/si_20_03_calib.root"
);
TTree
*
tAlphaCal
=
(
TTree
*
)
fcal
->
Get
(
"cal"
);
tAlphaCal
->
SetMarkerColor
(
kRed
);
tAlphaCal
->
SetMarkerStyle
(
20
);
tAlphaCal
->
SetMarkerSize
(
.6
);
TFile
*
fc
=
new
TFile
(
"cutsIdentification.root"
,
"READ"
);
TFile
*
fc
=
new
TFile
(
"cutsIdentification.root"
,
"READ"
);
TCutG
*
cUS
=
(
TCutG
*
)
fc
->
Get
(
"c7UpperShadow"
);
TCutG
*
cUS
=
(
TCutG
*
)
fc
->
Get
(
"c7UpperShadow"
);
TCutG
*
cLS
=
(
TCutG
*
)
fc
->
Get
(
"c7LowerShadow"
);
TCutG
*
cLS
=
(
TCutG
*
)
fc
->
Get
(
"c7LowerShadow"
);
...
@@ -94,6 +100,8 @@ void showBananas2(const Long64_t drawEntries = 100000) {
...
@@ -94,6 +100,8 @@ void showBananas2(const Long64_t drawEntries = 100000) {
tr
->
Draw
(
varName
,
condition
,
"col"
,
drawEntries
);
tr
->
Draw
(
varName
,
condition
,
"col"
,
drawEntries
);
// tr->Draw(varName, condition, "", drawEntries);
// tr->Draw(varName, condition, "", drawEntries);
tAlphaCal
->
Draw
(
varName
,
""
,
"same"
);
c2
->
Update
();
c2
->
Update
();
}
//for */
}
//for */
...
@@ -104,7 +112,7 @@ void showBananas2(const Long64_t drawEntries = 100000) {
...
@@ -104,7 +112,7 @@ void showBananas2(const Long64_t drawEntries = 100000) {
/////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
// c3
// c3
TCanvas
*
c3
=
new
TCanvas
(
"c3"
,
"dE-E
raw
"
,
1600
,
800
);
TCanvas
*
c3
=
new
TCanvas
(
"c3"
,
"dE-E
corrected
"
,
1600
,
800
);
c3
->
Divide
(
4
,
2
);
c3
->
Divide
(
4
,
2
);
for
(
Int_t
i
=
0
;
i
<
8
;
i
++
)
{
for
(
Int_t
i
=
0
;
i
<
8
;
i
++
)
{
...
@@ -122,6 +130,9 @@ void showBananas2(const Long64_t drawEntries = 100000) {
...
@@ -122,6 +130,9 @@ void showBananas2(const Long64_t drawEntries = 100000) {
tr
->
SetMarkerColor
(
kBlack
);
tr
->
SetMarkerColor
(
kBlack
);
tr
->
Draw
(
varName
,
condition
,
"col"
,
drawEntries
);
tr
->
Draw
(
varName
,
condition
,
"col"
,
drawEntries
);
// tr->Draw(varName, condition, "", drawEntries);
// tr->Draw(varName, condition, "", drawEntries);
tAlphaCal
->
Draw
(
varName
,
""
,
"same"
);
c3
->
Update
();
c3
->
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