Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
f42c9d11
Commit
f42c9d11
authored
4 years ago
by
Norbert Herrmann
Committed by
Florian Uhlig
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
v14a addressing scheme
parent
66050b92
No related branches found
No related tags found
1 merge request
!138
Final merge
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/data/tof/CbmTofAddress.cxx
+7
-2
7 additions, 2 deletions
core/data/tof/CbmTofAddress.cxx
core/data/tof/CbmTofAddress.h
+27
-6
27 additions, 6 deletions
core/data/tof/CbmTofAddress.h
with
34 additions
and
8 deletions
core/data/tof/CbmTofAddress.cxx
+
7
−
2
View file @
f42c9d11
...
...
@@ -23,8 +23,13 @@ const Int_t CbmTofAddress::fgkChannelSideOffset =
/** Offset in bits for Channel Id in the address field **/
const
Int_t
CbmTofAddress
::
fgkChannelIdOffset
=
CbmTofAddress
::
fgkChannelSideBits
+
CbmTofAddress
::
fgkChannelSideOffset
;
/** Offset in bits for Rpc Type in the address field **/
const
Int_t
CbmTofAddress
::
fgkRpcTypeOffset
=
CbmTofAddress
::
fgkChannelIdBits
+
CbmTofAddress
::
fgkChannelIdOffset
;
const
Int_t
CbmTofAddress
::
fgkiModFullIdMask
=
(((
1
<<
fgkSystemBits
)
-
1
))
+
(((
1
<<
fgkSmIdBits
)
-
1
)
<<
fgkSmIdOffset
)
(((
1
<<
fgkSystemBits
)
-
1
))
+
(((
1
<<
fgkSmIdBits
)
-
1
)
<<
fgkSmIdOffset
)
+
(((
1
<<
fgkSmTypeBits
)
-
1
)
<<
fgkSmTypeOffset
)
+
(((
1
<<
fgkRpcIdBits
)
-
1
)
<<
fgkRpcIdOffset
);
+
(((
1
<<
fgkRpcIdBits
)
-
1
)
<<
fgkRpcIdOffset
)
+
(((
1
<<
fgkRpcTypeBits
)
-
1
)
<<
fgkRpcTypeOffset
);
This diff is collapsed.
Click to expand it.
core/data/tof/CbmTofAddress.h
+
27
−
6
View file @
f42c9d11
...
...
@@ -171,17 +171,36 @@ private:
**/
/** Sub-fields sizes in bits **/
/** Number of bits for Super Module Id in the address field **/
// v14a
// Number of bits for Super Module Id in the address field
static
const
Int_t
fgkSmIdBits
=
8
;
/
**
Number of bits for Super Module Type in the address field
**/
/
/
Number of bits for Super Module Type in the address field
static
const
Int_t
fgkSmTypeBits
=
4
;
/
**
Number of bits for Rpc Id in the address field
**/
/
/
Number of bits for Rpc Id in the address field
static
const
Int_t
fgkRpcIdBits
=
7
;
/
**
Number of bits for Channel Side in the address field
**/
/
/
Number of bits for Channel Side in the address field
static
const
Int_t
fgkChannelSideBits
=
1
;
/
**
Number of bits for Channel Id in the address field
**/
/
/
Number of bits for Channel Id in the address field
static
const
Int_t
fgkChannelIdBits
=
8
;
// Number of bits for Rpc Type in the address field
static
const
Int_t
fgkRpcTypeBits
=
0
;
/*
// v20a
// Number of bits for Super Module Id in the address field
static const Int_t fgkSmIdBits = 7;
// Number of bits for Super Module Type in the address field
static const Int_t fgkSmTypeBits = 4;
// Number of bits for Rpc Id in the address field
static const Int_t fgkRpcIdBits = 6;
// Number of bits for Channel Side in the address field
static const Int_t fgkChannelSideBits = 1;
// Number of bits for Channel Id in the address field
static const Int_t fgkChannelIdBits = 4;
// Number of bits for Rpc Type in the address field
static const Int_t fgkRpcTypeBits = 4;
*/
/**
** To adapt the address sub-fields repartition in order,
** you just need to change the way the offset are calculated.
...
...
@@ -198,6 +217,8 @@ private:
static
const
Int_t
fgkRpcIdOffset
;
/** Offset in bits for Channel Id in the address field **/
static
const
Int_t
fgkChannelIdOffset
;
/** Offset in bits for Channel Id in the address field **/
static
const
Int_t
fgkRpcTypeOffset
;
/**
** For the module Full Id determination
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment