Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
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
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
7d601556
Commit
7d601556
authored
7 years ago
by
Stephen A. Wood
Browse files
Options
Downloads
Patches
Plain Diff
THcConfigEvtHandler: Add prescale values, fix FADC threshold arrays
parent
e08f4f58
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
+10
-4
10 additions, 4 deletions
src/THcConfigEvtHandler.cxx
with
10 additions
and
4 deletions
src/THcConfigEvtHandler.cxx
+
10
−
4
View file @
7d601556
...
@@ -199,7 +199,7 @@ void THcConfigEvtHandler::MakeParms(Int_t roc)
...
@@ -199,7 +199,7 @@ void THcConfigEvtHandler::MakeParms(Int_t roc)
for
(
Int_t
ichan
=
0
;
ichan
<
16
;
ichan
++
)
{
for
(
Int_t
ichan
=
0
;
ichan
<
16
;
ichan
++
)
{
thresholds
[
ichan
]
=
threshp
[
ichan
];
thresholds
[
ichan
]
=
threshp
[
ichan
];
}
}
gHcParms
->
Define
(
Form
(
"g%s_adc_thresholds_%d_%d"
,
fName
.
Data
(),
roc
,
slot
),
"ADC Thresholds"
,
*
thresholds
);
gHcParms
->
Define
(
Form
(
"g%s_adc_thresholds_%d_%d
[16]
"
,
fName
.
Data
(),
roc
,
slot
),
"ADC Thresholds"
,
*
thresholds
);
Int_t
mode
=
cinfo
->
FADC250
.
mode
;
Int_t
mode
=
cinfo
->
FADC250
.
mode
;
gHcParms
->
Define
(
Form
(
"g%s_adc_mode_%d_%d"
,
fName
.
Data
(),
roc
,
slot
),
"ADC Mode"
,
mode
);
gHcParms
->
Define
(
Form
(
"g%s_adc_mode_%d_%d"
,
fName
.
Data
(),
roc
,
slot
),
"ADC Mode"
,
mode
);
...
@@ -227,11 +227,17 @@ void THcConfigEvtHandler::MakeParms(Int_t roc)
...
@@ -227,11 +227,17 @@ void THcConfigEvtHandler::MakeParms(Int_t roc)
// If that is not true we will get "Variable XXX already exists." warnings
// If that is not true we will get "Variable XXX already exists." warnings
if
(
cinfo
->
TI
.
present
)
{
if
(
cinfo
->
TI
.
present
)
{
Int_t
nped
=
cinfo
->
TI
.
nped
;
Int_t
nped
=
cinfo
->
TI
.
nped
;
gHcParms
->
Define
(
Form
(
"g%s_ti_nped"
,
fName
.
Data
()),
"Numb
r
e of Pedestal events"
,
nped
);
gHcParms
->
Define
(
Form
(
"g%s_ti_nped"
,
fName
.
Data
()),
"Numbe
r
of Pedestal events"
,
nped
);
Int_t
scaler_period
=
cinfo
->
TI
.
scaler_period
;
Int_t
scaler_period
=
cinfo
->
TI
.
scaler_period
;
gHcParms
->
Define
(
Form
(
"g%s_ti_scaler_period"
,
fName
.
Data
()),
"Numb
r
e of Pedestal events"
,
scaler_period
);
gHcParms
->
Define
(
Form
(
"g%s_ti_scaler_period"
,
fName
.
Data
()),
"Numbe
r
of Pedestal events"
,
scaler_period
);
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
()),
"Numbre 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
];
for
(
Int_t
i
=
0
;
i
<
cinfo
->
TI
.
num_prescales
;
i
++
)
{
prescales
[
i
]
=
cinfo
->
TI
.
prescales
[
i
];
}
gHcParms
->
Define
(
Form
(
"g%s_ti_ps[%d]"
,
fName
.
Data
(),
cinfo
->
TI
.
num_prescales
),
"TI Event Prescaler settings"
,
*
prescales
);
}
}
}
}
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