Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
jlab
hallc
analyzer_software
hcana
Commits
c3acf601
Commit
c3acf601
authored
7 years ago
by
Stephen A. Wood
Browse files
Options
Downloads
Patches
Plain Diff
Add _ti_ps_factors[] array with prescale factors computed from exponents
parent
f7a48cb1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/THcConfigEvtHandler.cxx
+12
-3
12 additions, 3 deletions
src/THcConfigEvtHandler.cxx
with
12 additions
and
3 deletions
src/THcConfigEvtHandler.cxx
+
12
−
3
View file @
c3acf601
...
@@ -233,11 +233,20 @@ void THcConfigEvtHandler::MakeParms(Int_t roc)
...
@@ -233,11 +233,20 @@ void THcConfigEvtHandler::MakeParms(Int_t roc)
Int_t
sync_count
=
cinfo
->
TI
.
sync_count
;
Int_t
sync_count
=
cinfo
->
TI
.
sync_count
;
gHcParms
->
Define
(
Form
(
"g%s_ti_sync_count"
,
fName
.
Data
()),
"Number of Pedestal events"
,
sync_count
);
gHcParms
->
Define
(
Form
(
"g%s_ti_sync_count"
,
fName
.
Data
()),
"Number of Pedestal events"
,
sync_count
);
Int_t
*
prescales
=
new
Int_t
[
cinfo
->
TI
.
num_prescales
];
Int_t
*
ps_exps
=
new
Int_t
[
cinfo
->
TI
.
num_prescales
];
Int_t
*
ps_factors
=
new
Int_t
[
cinfo
->
TI
.
num_prescales
];
for
(
Int_t
i
=
0
;
i
<
cinfo
->
TI
.
num_prescales
;
i
++
)
{
for
(
Int_t
i
=
0
;
i
<
cinfo
->
TI
.
num_prescales
;
i
++
)
{
prescales
[
i
]
=
cinfo
->
TI
.
prescales
[
i
];
ps_exps
[
i
]
=
cinfo
->
TI
.
prescales
[
i
];
if
(
ps_exps
[
i
]
>
0
)
{
ps_factors
[
i
]
=
1
<<
(
ps_exps
[
i
]
-
1
)
+
1
;
}
else
if
(
ps_exps
[
i
]
==
0
)
{
ps_factors
[
i
]
=
1
;
}
else
{
ps_factors
[
i
]
=
-
1
;
}
}
}
gHcParms
->
Define
(
Form
(
"g%s_ti_ps[%d]"
,
fName
.
Data
(),
cinfo
->
TI
.
num_prescales
),
"TI Event Prescaler settings"
,
*
prescales
);
gHcParms
->
Define
(
Form
(
"g%s_ti_ps[%d]"
,
fName
.
Data
(),
cinfo
->
TI
.
num_prescales
),
"TI Event Prescaler settings"
,
*
ps_exps
);
gHcParms
->
Define
(
Form
(
"g%s_ti_ps_factors[%d]"
,
fName
.
Data
(),
cinfo
->
TI
.
num_prescales
),
"TI Event Prescaler settings"
,
*
ps_exps
);
}
}
}
}
it
++
;
it
++
;
...
...
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