Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EIC
Project Juggler
Commits
d697ca03
Commit
d697ca03
authored
Apr 23, 2022
by
Wouter Deconinck
Browse files
Resolve "Unsigned eicd::RawCalorimeterHit amplitude causes threshold issues"
parent
eda9e3ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
JugReco/src/components/CalorimeterHitReco.cpp
View file @
d697ca03
...
...
@@ -168,13 +168,13 @@ public:
// energy time reconstruction
for
(
const
auto
&
rh
:
rawhits
)
{
// did not pass the zero-suppression threshold
if
((
rh
.
getAmplitude
()
-
m_pedMeanADC
)
<
thresholdADC
)
{
if
((
signed
)(
rh
.
getAmplitude
()
-
m_pedMeanADC
)
<
thresholdADC
)
{
continue
;
}
// convert ADC -> energy
const
float
energy
=
(
rh
.
getAmplitude
()
-
m_pedMeanADC
)
/
static_cast
<
float
>
(
m_capADC
.
value
())
*
dyRangeADC
/
m_sampFrac
;
(
signed
)
(
rh
.
getAmplitude
()
-
m_pedMeanADC
)
/
static_cast
<
float
>
(
m_capADC
.
value
())
*
dyRangeADC
/
m_sampFrac
;
const
float
time
=
rh
.
getTimeStamp
()
/
stepTDC
;
const
auto
cellID
=
rh
.
getCellID
();
const
int
lid
=
id_dec
!=
nullptr
&&
!
m_layerField
.
value
().
empty
()
?
static_cast
<
int
>
(
id_dec
->
get
(
cellID
,
layer_idx
))
:
-
1
;
...
...
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