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
f764f565
Commit
f764f565
authored
Sep 20, 2021
by
Volker Friese
Browse files
Fix SetTime method for SPADIC-type CbmTrdDigi
parent
2237f5bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
core/data/trd/CbmTrdDigi.cxx
core/data/trd/CbmTrdDigi.cxx
+8
-1
No files found.
core/data/trd/CbmTrdDigi.cxx
View file @
f764f565
...
...
@@ -244,7 +244,14 @@ void CbmTrdDigi::SetFlag(const Int_t iflag, Bool_t set)
}
//_________________________________________________________________________________
void
CbmTrdDigi
::
SetTime
(
Double_t
t
)
{
fTime
=
ULong64_t
(
TMath
::
Ceil
(
t
/
Clk
(
GetType
())));
}
void
CbmTrdDigi
::
SetTime
(
Double_t
t
)
{
switch
(
GetType
())
{
case
eCbmTrdAsicType
::
kFASP
:
fTime
=
ULong64_t
(
TMath
::
Ceil
(
t
/
Clk
(
GetType
())));
case
eCbmTrdAsicType
::
kSPADIC
:
fTime
=
static_cast
<
ULong64_t
>
(
t
);
case
eCbmTrdAsicType
::
kNTypes
:
return
;
}
}
//_________________________________________________________________________________
void
CbmTrdDigi
::
SetTimeOffset
(
Char_t
t
)
...
...
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