Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shreya Roy
cbmroot
Commits
5d6f80e2
Commit
5d6f80e2
authored
Jun 11, 2021
by
Felix Weiglhofer
Committed by
Volker Friese
Sep 20, 2021
Browse files
Digitization: Apply time offset also in event-by-event mode.
parent
365a9936
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
sim/detectors/sts/CbmStsDigitize.cxx
sim/detectors/sts/CbmStsDigitize.cxx
+1
-1
sim/response/base/CbmDigitizationSource.cxx
sim/response/base/CbmDigitizationSource.cxx
+2
-2
No files found.
sim/detectors/sts/CbmStsDigitize.cxx
View file @
5d6f80e2
...
...
@@ -189,7 +189,7 @@ void CbmStsDigitize::Exec(Option_t* /*opt*/)
// --- Generate noise from previous to current event time
if
(
fParSim
->
Noise
())
{
Int_t
nNoise
=
0
;
Double_t
tNoiseStart
=
fNofEvents
?
eventTimePrevious
:
0.
;
Double_t
tNoiseStart
=
fNofEvents
?
eventTimePrevious
:
100
0.
;
Double_t
tNoiseEnd
=
fCurrentEventTime
;
for
(
auto
&
entry
:
fModules
)
nNoise
+=
entry
.
second
->
GenerateNoise
(
tNoiseStart
,
tNoiseEnd
);
...
...
sim/response/base/CbmDigitizationSource.cxx
View file @
5d6f80e2
...
...
@@ -280,7 +280,7 @@ Int_t CbmDigitizationSource::ReadEvent(UInt_t event)
}
// In the event-by-event mode, get the respective event from the first
// input; the event time is
zero
.
// input; the event time is
fStartTime
.
if
(
fEventMode
)
return
ReadEventByEvent
(
event
);
// If the last used input set was exhausted, switch to a the next one
...
...
@@ -347,7 +347,7 @@ Int_t CbmDigitizationSource::ReadEventByEvent(UInt_t event)
fCurrentEntryId
=
input
->
GetNextEntry
();
// Set entry properties
fCurrentTime
=
0.
;
fCurrentTime
=
fTimeStart
;
LOG
(
info
)
<<
"DigitizationSource: Event "
<<
event
<<
" at t = "
<<
fCurrentTime
<<
" ns"
<<
" from input "
<<
fCurrentInputId
<<
" (entry "
<<
fCurrentEntryId
<<
")"
;
...
...
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