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
Sergey Zharko
cbmroot
Commits
5591bb48
Commit
5591bb48
authored
Oct 15, 2021
by
Pierre-Alain Loizeau
Browse files
Fix unintended fallthrough in CbmTrdDigi SetTime
parent
f5b4c876
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
core/data/trd/CbmTrdDigi.cxx
core/data/trd/CbmTrdDigi.cxx
+11
-5
No files found.
core/data/trd/CbmTrdDigi.cxx
View file @
5591bb48
...
...
@@ -37,12 +37,12 @@ CbmTrdDigi::CbmTrdDigi() : fInfo(0), fCharge(0), fTime(0) {}
//_________________________________________________________________________________
CbmTrdDigi
::
CbmTrdDigi
(
Int_t
padChNr
,
Float_t
chargeT
,
Float_t
chargeR
,
ULong64_t
time
)
:
fTime
(
time
)
{
/** Fill data structure according to FASP representation
/** Fill data structure according to FASP representation
* A - Asic type according to CbmTrdAsicType
* M - module id in the layer
* L - layer id in the TRD setup
* p - pad address within the module
*
*
* fCharge definition tttt.tttt tttt.tttt rrrr.rrrr rrrr.rrrr
* t - tilt paired charge
* r - rectangle paired charge
...
...
@@ -58,7 +58,7 @@ CbmTrdDigi::CbmTrdDigi(Int_t padChNr, Int_t uniqueModuleId, Float_t charge, ULon
:
fTime
(
time
)
{
/**
* Fill data structure according to SPADIC representation
* Fill data structure according to SPADIC representation
* A - Asic type according to CbmTrdAsicType
* T - trigger type according to CbmTrdTriggerType
* n - error class
...
...
@@ -247,8 +247,14 @@ void CbmTrdDigi::SetFlag(const Int_t iflag, Bool_t set)
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
::
kFASP
:
{
fTime
=
ULong64_t
(
TMath
::
Ceil
(
t
/
Clk
(
GetType
())));
break
;
}
case
eCbmTrdAsicType
::
kSPADIC
:
{
fTime
=
static_cast
<
ULong64_t
>
(
t
);
break
;
}
case
eCbmTrdAsicType
::
kNTypes
:
return
;
}
}
...
...
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