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
6d91d5b3
Commit
6d91d5b3
authored
Sep 11, 2018
by
Vratislav Chudoba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
System of coordinates in MWPC's inverted
parent
b387d691
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
178 additions
and
75 deletions
+178
-75
fillChain.cxx
analysis/fillChain.cxx
+86
-63
showBananasHe.cxx
analysis/showBananasHe.cxx
+59
-0
showBeam.cxx
analysis/showBeam.cxx
+33
-12
No files found.
analysis/fillChain.cxx
View file @
6d91d5b3
This diff is collapsed.
Click to expand it.
analysis/showBananasHe.cxx
View file @
6d91d5b3
...
@@ -546,6 +546,65 @@ void showBananasHe(Long64_t drawEntries = 100000, const TString beam = "he", TSt
...
@@ -546,6 +546,65 @@ void showBananasHe(Long64_t drawEntries = 100000, const TString beam = "he", TSt
// return;
// return;
/////////////////////////////////////////////////////////////////////
// c17
TCanvas
*
c17
=
new
TCanvas
(
"c17"
,
"dE-E corrected (second approximation, clusters, cleaned, check for thin strip); target center"
,
1600
,
800
);
c17
->
Divide
(
4
,
2
);
firstThinStrip
=
5
;
// cout << tr->GetEntries() << " events." << endl;
cout
<<
trCal
->
GetEntries
()
<<
" calibrated events."
<<
endl
;
// drawEntries = 1000000000;
cout
<<
drawEntries
<<
" entries in input chain will be processed."
<<
endl
;
gStyle
->
SetOptStat
();
c17
->
cd
(
1
);
trCal
->
Draw
(
"SQ20Ecorr[0]:SQ20Ecorr[0]+SQLXEsum>>h13(150, 0, 35, 150, 0, 5)"
,
""
,
"col"
,
1000
);
for
(
Int_t
i
=
0
;
i
<
8
;
i
++
)
{
c17
->
cd
(
i
+
1
);
if
(
opt
.
Contains
(
"logz"
))
gPad
->
SetLogz
();
drawnEventsCorr2nd
[
i
]
=
0
;
varName
.
Form
(
"SQ20EcorrHitC[%d]:SQ20EcorrHitC[%d]+SQLXEtimeFilteredSum"
,
i
+
firstThinStrip
,
i
+
firstThinStrip
);
condition
.
Form
(
""
"SQ20EcorrHitC[%d]>0"
" && SQ20EcorrHitC[%d]<%f "
// "&& SQLXEsum>1.1"
" && SQLXEsum<%f "
"&& SQLXtimeMult==1"
"&& SQLXEtimeFilteredSum>0.5"
"&& SQ20EcorrHitCMult"
"&& CsI_L_veto==0"
"&& abs(expectedThinStrip-%d)<=1"
"&& trigger==3"
"&& abs(xt)<10. && abs(yt)<10."
"&& xThin<25. && yThin<24."
,
i
+
firstThinStrip
,
i
+
firstThinStrip
,
max20deposit
,
max1mmDeposit
,
i
+
firstThinStrip
);
drawnEventsCorr2nd
[
i
]
=
trCal
->
Draw
(
varName
,
condition
,
""
,
drawEntries
);
trCalBe
->
SetMarkerStyle
(
20
);
trCalBe
->
SetMarkerColor
(
kRed
);
trCalBe
->
SetMarkerSize
(
.4
);
trCalBe
->
Draw
(
varName
,
condition
,
"same"
,
drawEntries
);
TH2F
*
h
=
(
TH2F
*
)
gPad
->
GetPrimitive
(
"htemp"
);
h
->
SetStats
();
c17
->
Update
();
}
//*/
// return;
...
...
analysis/showBeam.cxx
View file @
6d91d5b3
...
@@ -42,6 +42,27 @@ void showBeam(const Long64_t drawEntries = 100000, const TString beam = "he")
...
@@ -42,6 +42,27 @@ void showBeam(const Long64_t drawEntries = 100000, const TString beam = "he")
c1
->
cd
(
1
);
c1
->
cd
(
1
);
tr
->
Draw
(
"(F5[0]+F5[1]+F5[2]+F5[3])/4.:( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165;"
,
"tF5[0]>0 && tF5[1]>0 && tF5[2]>0 && tF5[3]>0 "
"&& tF3[0]>0 && tF3[1]>0 && tF3[2]>0 && tF3[3]>0 "
"&& F5[0]>0 && F5[1]>0 && F5[2]>0 && F5[3]>0"
"&& ( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165<200 "
"&& ( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165>100"
"&& (F5[0]+F5[1]+F5[2]+F5[3])/4. < 2500"
"&& trigger==1"
,
"col"
,
drawEntries
);
TH2F
*
hTOF1
=
(
TH2F
*
)
gPad
->
GetPrimitive
(
"htemp"
);
// hTOF->SetStats(0);
hTOF1
->
SetTitle
(
"trigger 1"
);
hTOF1
->
SetXTitle
(
"TOF (ns)"
);
hTOF1
->
SetYTitle
(
"dE (a.u.)"
);
hTOF1
->
GetXaxis
()
->
CenterTitle
();
hTOF1
->
GetXaxis
()
->
SetTitleSize
(
0.06
);
hTOF1
->
GetXaxis
()
->
SetTitleOffset
(
0.75
);
hTOF1
->
GetYaxis
()
->
CenterTitle
();
hTOF1
->
GetYaxis
()
->
SetTitleSize
(
0.06
);
hTOF1
->
GetYaxis
()
->
SetTitleOffset
(
0.75
);
c1
->
cd
(
3
);
c1
->
cd
(
3
);
tr
->
Draw
(
"(F5[0]+F5[1]+F5[2]+F5[3])/4.:( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165;"
,
tr
->
Draw
(
"(F5[0]+F5[1]+F5[2]+F5[3])/4.:( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165;"
,
...
@@ -51,19 +72,19 @@ void showBeam(const Long64_t drawEntries = 100000, const TString beam = "he")
...
@@ -51,19 +72,19 @@ void showBeam(const Long64_t drawEntries = 100000, const TString beam = "he")
"&& ( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165<200 "
"&& ( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165<200 "
"&& ( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165>100"
"&& ( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165>100"
"&& (F5[0]+F5[1]+F5[2]+F5[3])/4. < 2500"
"&& (F5[0]+F5[1]+F5[2]+F5[3])/4. < 2500"
"&& trigger==
1
"
,
"&& trigger==
3
"
,
"col"
,
drawEntries
);
"col"
,
drawEntries
);
TH2F
*
hTOF
=
(
TH2F
*
)
gPad
->
GetPrimitive
(
"htemp"
);
TH2F
*
hTOF
3
=
(
TH2F
*
)
gPad
->
GetPrimitive
(
"htemp"
);
hTOF
->
SetStats
(
0
);
//
hTOF->SetStats(0);
hTOF
->
SetTitle
(
"
"
);
hTOF
3
->
SetTitle
(
"trigger 3
"
);
hTOF
->
SetXTitle
(
"TOF (ns)"
);
hTOF
3
->
SetXTitle
(
"TOF (ns)"
);
hTOF
->
SetYTitle
(
"dE (a.u.)"
);
hTOF
3
->
SetYTitle
(
"dE (a.u.)"
);
hTOF
->
GetXaxis
()
->
CenterTitle
();
hTOF
3
->
GetXaxis
()
->
CenterTitle
();
hTOF
->
GetXaxis
()
->
SetTitleSize
(
0.06
);
hTOF
3
->
GetXaxis
()
->
SetTitleSize
(
0.06
);
hTOF
->
GetXaxis
()
->
SetTitleOffset
(
0.75
);
hTOF
3
->
GetXaxis
()
->
SetTitleOffset
(
0.75
);
hTOF
->
GetYaxis
()
->
CenterTitle
();
hTOF
3
->
GetYaxis
()
->
CenterTitle
();
hTOF
->
GetYaxis
()
->
SetTitleSize
(
0.06
);
hTOF
3
->
GetYaxis
()
->
SetTitleSize
(
0.06
);
hTOF
->
GetYaxis
()
->
SetTitleOffset
(
0.75
);
hTOF
3
->
GetYaxis
()
->
SetTitleOffset
(
0.75
);
c1
->
cd
(
2
);
c1
->
cd
(
2
);
tr
->
Draw
(
"(y1[0]-16)*1.25:(x1[0]-16.)*1.25>>hXY1(32, -20., 20., 32, -20., 20.)"
,
"x1[1]<1000 && y1[1]<1000 && trigger==1 && nx1==1 && ny1==1"
,
"col"
,
drawEntries
);
tr
->
Draw
(
"(y1[0]-16)*1.25:(x1[0]-16.)*1.25>>hXY1(32, -20., 20., 32, -20., 20.)"
,
"x1[1]<1000 && y1[1]<1000 && trigger==1 && nx1==1 && ny1==1"
,
"col"
,
drawEntries
);
...
...
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