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
cfe6a703
Commit
cfe6a703
authored
4 years ago
by
Carlos Yero
Committed by
Stephen Wood
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Second Minor bug fix on BCM index scalers
parent
d0b07c90
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!16
Merge in upstream changes and update CI
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/THcScalerEvtHandler.cxx
+1
-1
1 addition, 1 deletion
src/THcScalerEvtHandler.cxx
with
1 addition
and
1 deletion
src/THcScalerEvtHandler.cxx
+
1
−
1
View file @
cfe6a703
...
...
@@ -470,7 +470,7 @@ Int_t THcScalerEvtHandler::AnalyzeBuffer(UInt_t* rdata, Bool_t onlysync)
dvarsFirst
[
ivar
]
=
0.0
;
if
(
bcm_ind
!=
-
1
)
{
dvarsFirst
[
ivar
]
=
((
scalers
[
idx
]
->
GetData
(
ichan
))
/
fDeltaTime
-
fBCM_Offset
[
bcm_ind
])
/
fBCM_Gain
[
bcm_ind
];
dvarsFirst
[
ivar
]
=
dvarsFirst
[
ivar
]
+
fBCM_SatQuadratic
[
bcm_ind
]
*
TMath
::
Power
(
TMath
::
Max
(
dvars
[
ivar
]
-
fBCM_SatOffset
[
i
],
0.0
),
2.
);
dvarsFirst
[
ivar
]
=
dvarsFirst
[
ivar
]
+
fBCM_SatQuadratic
[
bcm_ind
]
*
TMath
::
Power
(
TMath
::
Max
(
dvars
[
ivar
]
-
fBCM_SatOffset
[
bcm_ind
],
0.0
),
2.
);
}
if
(
bcm_ind
==
fbcm_Current_Threshold_Index
)
scal_current
=
dvarsFirst
[
ivar
];
}
...
...
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