Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hallc_replay
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Melanie Cardona
hallc_replay
Commits
f721b198
Commit
f721b198
authored
8 years ago
by
Eric Pooser
Browse files
Options
Downloads
Patches
Plain Diff
Minor commit with minimal changes
parent
d68bacb2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
DEF-files/SHMS/GEN/pstackana.def
+20
-20
20 additions, 20 deletions
DEF-files/SHMS/GEN/pstackana.def
onlineGUI/Config/kpp.cfg
+4
-3
4 additions, 3 deletions
onlineGUI/Config/kpp.cfg
onlineGUI/Macros/kpp_analysis.C
+15
-10
15 additions, 10 deletions
onlineGUI/Macros/kpp_analysis.C
with
39 additions
and
33 deletions
DEF-files/SHMS/GEN/pstackana.def
+
20
−
20
View file @
f721b198
# See $ANALYZER/examples/output_example.def for examples
#
block T.shms.*
block P.ngcer.*
block P.dc.*
block P.tr.*
block P.hod.*
block P.hgcer.*
block P.aero.*
block P.cal.*
block P.gtr.*
#
block P.ngcer.*
#
block P.dc.*
#
block P.tr.*
#
block P.hod.*
#
block P.hgcer.*
#
block P.aero.*
#
block P.cal.*
#
block P.gtr.*
TH1F hptrig2_minus_p1x 'SHMS Trigger 2 - p1X TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT2_tdcTime-T.shms.p1X_tdcTime[0])*0.1 150 0 150 T.shms.pT2_tdcMultiplicity==1
TH1F hptrig2_minus_p1y 'SHMS Trigger 2 - p1Y TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT2_tdcTime-T.shms.p1Y_tdcTime[0])*0.1 150 0 150 T.shms.pT2_tdcMultiplicity==1
TH1F hptrig2_minus_p2x 'SHMS Trigger 2 - p2X TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT2_tdcTime-T.shms.p2X_tdcTime[0])*0.1 150 0 150 T.shms.pT2_tdcMultiplicity==1
TH1F hptrig2_minus_p2y 'SHMS Trigger 2 - p2Y TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT2_tdcTime-T.shms.p2Y_tdcTime[0])*0.1 150 0 150 T.shms.pT2_tdcMultiplicity==1
TH1F hptrig2_minus_ps1 'SHMS Trigger 2 - pS1 TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT2_tdcTime-T.shms.p1T_tdcTime[0])*0.1 150 0 150 T.shms.pT2_tdcMultiplicity==1
TH1F hptrig2_minus_ps2 'SHMS Trigger 2 - pS2 TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT2_tdcTime-T.shms.p2T_tdcTime[0])*0.1 150 0 150 T.shms.pT2_tdcMultiplicity==1
#
TH1F hptrig2_minus_p1x 'SHMS Trigger 2 - p1X TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT2_tdcTime-T.shms.p1X_tdcTime[0])*0.1 150 0 150 T.shms.pT2_tdcMultiplicity==1
#
TH1F hptrig2_minus_p1y 'SHMS Trigger 2 - p1Y TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT2_tdcTime-T.shms.p1Y_tdcTime[0])*0.1 150 0 150 T.shms.pT2_tdcMultiplicity==1
#
TH1F hptrig2_minus_p2x 'SHMS Trigger 2 - p2X TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT2_tdcTime-T.shms.p2X_tdcTime[0])*0.1 150 0 150 T.shms.pT2_tdcMultiplicity==1
#
TH1F hptrig2_minus_p2y 'SHMS Trigger 2 - p2Y TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT2_tdcTime-T.shms.p2Y_tdcTime[0])*0.1 150 0 150 T.shms.pT2_tdcMultiplicity==1
#
TH1F hptrig2_minus_ps1 'SHMS Trigger 2 - pS1 TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT2_tdcTime-T.shms.p1T_tdcTime[0])*0.1 150 0 150 T.shms.pT2_tdcMultiplicity==1
#
TH1F hptrig2_minus_ps2 'SHMS Trigger 2 - pS2 TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT2_tdcTime-T.shms.p2T_tdcTime[0])*0.1 150 0 150 T.shms.pT2_tdcMultiplicity==1
TH1F hptrig3_minus_p1x 'SHMS Trigger 3 - p1X TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT3_tdcTime-T.shms.p1X_tdcTime[0])*0.1 150 0 150 T.shms.pT3_tdcMultiplicity==1
TH1F hptrig3_minus_p1y 'SHMS Trigger 3 - p1Y TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT3_tdcTime-T.shms.p1Y_tdcTime[0])*0.1 150 0 150 T.shms.pT3_tdcMultiplicity==1
TH1F hptrig3_minus_p2x 'SHMS Trigger 3 - p2X TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT3_tdcTime-T.shms.p2X_tdcTime[0])*0.1 150 0 150 T.shms.pT3_tdcMultiplicity==1
TH1F hptrig3_minus_p2y 'SHMS Trigger 3 - p2Y TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT3_tdcTime-T.shms.p2Y_tdcTime[0])*0.1 150 0 150 T.shms.pT3_tdcMultiplicity==1
TH1F hptrig2_minus_ps1 'SHMS Trigger 3 - pS1 TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT3_tdcTime-T.shms.p1T_tdcTime[0])*0.1 150 0 150 T.shms.pT3_tdcMultiplicity==1
TH1F hptrig2_minus_ps2 'SHMS Trigger 3 - pS2 TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT3_tdcTime-T.shms.p2T_tdcTime[0])*0.1 150 0 150 T.shms.pT3_tdcMultiplicity==1
\ No newline at end of file
#TH1F hptrig3_minus_p1x 'SHMS Trigger 3 - p1X TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT3_tdcTime-T.shms.p1X_tdcTime[0])*0.1 150 0 150 T.shms.pT3_tdcMultiplicity==1
#TH1F hptrig3_minus_p1y 'SHMS Trigger 3 - p1Y TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT3_tdcTime-T.shms.p1Y_tdcTime[0])*0.1 150 0 150 T.shms.pT3_tdcMultiplicity==1
#TH1F hptrig3_minus_p2x 'SHMS Trigger 3 - p2X TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT3_tdcTime-T.shms.p2X_tdcTime[0])*0.1 150 0 150 T.shms.pT3_tdcMultiplicity==1
#TH1F hptrig3_minus_p2y 'SHMS Trigger 3 - p2Y TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT3_tdcTime-T.shms.p2Y_tdcTime[0])*0.1 150 0 150 T.shms.pT3_tdcMultiplicity==1
#TH1F hptrig2_minus_ps1 'SHMS Trigger 3 - pS1 TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT3_tdcTime-T.shms.p1T_tdcTime[0])*0.1 150 0 150 T.shms.pT3_tdcMultiplicity==1
#TH1F hptrig2_minus_ps2 'SHMS Trigger 3 - pS2 TDC; TDC Time (ns); Counts / 1 ns' (T.shms.pT3_tdcTime-T.shms.p2T_tdcTime[0])*0.1 150 0 150 T.shms.pT3_tdcMultiplicity==1
\ No newline at end of file
This diff is collapsed.
Click to expand it.
onlineGUI/Config/kpp.cfg
100644 → 100755
+
4
−
3
View file @
f721b198
protorootfile
../ROOTfiles/shms_replay_XXXXX.root
guicolor
lightblue
canvassize
8
00
800
canvassize
16
00
800
newpage
4
4
title
Test
macro
Macros/kpp_analysis("h_p1T_tdc")
\ No newline at end of file
title
poop
macro
Macros/kpp_analysis.C("h_p1T_tdc")
This diff is collapsed.
Click to expand it.
onlineGUI/Macros/kpp_analysis.C
+
15
−
10
View file @
f721b198
void
UserScript
()
{
UInt
_t
num_p1T
;
Double
_t
num_p1T
;
Double_t
p1T_tdc
[
128
];
Long64_t
nentries
;
TH1F
*
h_p1T_tdc
;
TTree
*
T
=
(
TTree
*
)
gDirectory
->
Get
(
"T"
);
nentries
=
T
->
GetEntries
();
T
->
SetBranchAddress
(
"T.shms.p1T_tdcMultiplicity"
,
&
num_p1T
);
T
->
SetBranchAddress
(
"T.shms.p1T_tdcTime"
,
&
p1T_tdc
);
h_p1T_tdc
=
new
TH1F
(
"h_p1T_tdc"
,
"p1T; TDC Time (ns); Counts / 1 ns"
,
200
,
0
,
200
);
h_p1T_tdc
=
new
TH1F
(
"h_p1T_tdc"
,
"p1T; TDC Time (ns); Counts / 1 ns"
,
2000
,
0
,
2000
);
for
(
UInt_t
ievent
=
0
;
ievent
<
nentries
;
ievent
++
)
{
T
->
GetEntry
(
ievent
);
for
(
UInt_t
iev
=
0
,
N
=
T
->
GetEntries
();
iev
<
N
;
iev
++
)
{
T
->
GetEntry
(
iev
);
for
(
UInt_t
ihit
=
0
;
ihit
<
num_p1T
;
ihit
++
)
{
for
(
Uint_t
ihit
=
0
;
i
<
nump1T
;
ihit
++
)
{
Double_t
p1T_tdc_data
=
p1T_tdc
[
ihit
];
D
ou
ble_t
p1T_tdc_data
=
p1T_tdc
[
ihit
++
]
;
c
ou
t
<<
ihit
<<
"
\t
"
<<
p1T_tdc_data
<<
endl
;
h_p1T_tdc
->
Fill
(
p1T_tdc
);
h_p1T_tdc
->
Fill
(
p1T_tdc
_data
);
}
...
...
@@ -31,9 +38,7 @@ void UserScript() {
void
kpp_analysis
(
TString
histname
)
{
TH1F
*
h
;
h
=
(
TH1F
*
)
gDirectory
->
Get
(
histname
);
asdf
f
;
TH1F
*
h
;
h
=
(
TH1F
*
)
gDirectory
->
Get
(
histname
);
if
(
!
h
)
{
UserScript
();
h
=
(
TH1F
*
)
gDirectory
->
Get
(
histname
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment