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
7cf1aca4
Commit
7cf1aca4
authored
Mar 03, 2022
by
Wouter Deconinck
Browse files
Restore timeResolution in SiliconTrackerDigi
parent
fabb1ece
Changes
1
Hide whitespace changes
Inline
Side-by-side
JugDigi/src/components/SiliconTrackerDigi.cpp
View file @
7cf1aca4
...
...
@@ -24,7 +24,7 @@ namespace Jug::Digi {
*/
class
SiliconTrackerDigi
:
public
GaudiAlgorithm
{
public:
Gaudi
::
Property
<
double
>
m_
getT
imeResolution
{
this
,
"
getT
imeResolution"
,
10
};
// todo : add units
Gaudi
::
Property
<
double
>
m_
t
imeResolution
{
this
,
"
t
imeResolution"
,
10
};
// todo : add units
Gaudi
::
Property
<
double
>
m_threshold
{
this
,
"threshold"
,
0.
*
Gaudi
::
Units
::
keV
};
Rndm
::
Numbers
m_gaussDist
;
DataHandle
<
edm4hep
::
SimTrackerHitCollection
>
m_inputHitCollection
{
"inputHitCollection"
,
Gaudi
::
DataHandle
::
Reader
,
...
...
@@ -42,7 +42,7 @@ public:
if
(
GaudiAlgorithm
::
initialize
().
isFailure
())
return
StatusCode
::
FAILURE
;
IRndmGenSvc
*
randSvc
=
svc
<
IRndmGenSvc
>
(
"RndmGenSvc"
,
true
);
StatusCode
sc
=
m_gaussDist
.
initialize
(
randSvc
,
Rndm
::
Gauss
(
0.0
,
m_
getT
imeResolution
.
value
()));
StatusCode
sc
=
m_gaussDist
.
initialize
(
randSvc
,
Rndm
::
Gauss
(
0.0
,
m_
t
imeResolution
.
value
()));
if
(
!
sc
.
isSuccess
())
{
return
StatusCode
::
FAILURE
;
}
...
...
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