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
3cc45316
Commit
3cc45316
authored
1 year ago
by
Alexandru Bercuci
Browse files
Options
Downloads
Patches
Plain Diff
clang format and documentation
parent
e20fc09e
No related branches found
No related tags found
1 merge request
!1228
Rebasing MR1179
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/detectors/trd/CbmTrdParFasp.cxx
+3
-3
3 additions, 3 deletions
core/detectors/trd/CbmTrdParFasp.cxx
core/detectors/trd/CbmTrdParFasp.h
+13
-3
13 additions, 3 deletions
core/detectors/trd/CbmTrdParFasp.h
with
16 additions
and
6 deletions
core/detectors/trd/CbmTrdParFasp.cxx
+
3
−
3
View file @
3cc45316
...
@@ -39,10 +39,10 @@ const CbmTrdParFaspChannel* CbmTrdParFasp::GetChannel(Int_t ch_address) const
...
@@ -39,10 +39,10 @@ const CbmTrdParFaspChannel* CbmTrdParFasp::GetChannel(Int_t ch_address) const
}
}
//___________________________________________________________________
//___________________________________________________________________
bool
CbmTrdParFasp
::
IsChannelMasked
(
int
ch
_address
)
const
bool
CbmTrdParFasp
::
IsChannelMasked
(
int
ch
Id
)
const
{
{
if
(
ch
_address
<
0
||
ch
_address
>=
NFASPCH
)
return
false
;
if
(
ch
Id
<
0
||
ch
Id
>=
NFASPCH
)
return
false
;
return
fCalib
[
ch
_address
].
IsMasked
();
return
fCalib
[
ch
Id
].
IsMasked
();
}
}
//___________________________________________________________________
//___________________________________________________________________
...
...
This diff is collapsed.
Click to expand it.
core/detectors/trd/CbmTrdParFasp.h
+
13
−
3
View file @
3cc45316
...
@@ -84,12 +84,22 @@ class CbmTrdParFasp : public CbmTrdParAsic {
...
@@ -84,12 +84,22 @@ class CbmTrdParFasp : public CbmTrdParAsic {
public:
public:
CbmTrdParFasp
(
Int_t
address
=
0
,
Int_t
FebGrouping
=
-
1
,
Double_t
x
=
0
,
Double_t
y
=
0
,
Double_t
z
=
0
);
CbmTrdParFasp
(
Int_t
address
=
0
,
Int_t
FebGrouping
=
-
1
,
Double_t
x
=
0
,
Double_t
y
=
0
,
Double_t
z
=
0
);
virtual
~
CbmTrdParFasp
()
{
;
}
virtual
~
CbmTrdParFasp
()
{
;
}
/** \brief Query the calibration for one FASP RO channel
* \param pad_address the index of the pad on the module [row*ncol+col]
* \param pair 0 for tilt and 1 for rect
*/
const
CbmTrdParFaspChannel
*
GetChannel
(
Int_t
pad_address
,
UChar_t
pair
)
const
;
const
CbmTrdParFaspChannel
*
GetChannel
(
Int_t
pad_address
,
UChar_t
pair
)
const
;
const
CbmTrdParFaspChannel
*
GetChannel
(
Int_t
ch_address
)
const
;
/** \brief Query the calibration for one FASP RO channel
* \param chId the index of the channel in the current FASP [0 - 15]
*/
const
CbmTrdParFaspChannel
*
GetChannel
(
Int_t
chId
)
const
;
virtual
Int_t
GetNchannels
()
const
{
return
NFASPCH
;
};
virtual
Int_t
GetNchannels
()
const
{
return
NFASPCH
;
};
virtual
Int_t
GetChannelAddress
(
Int_t
ich
)
const
/** \brief Return the global RO channel for curent FASP and channel index
* \param chId the index of the channel in the current FASP [0 - 15]
*/
virtual
Int_t
GetChannelAddress
(
Int_t
chId
)
const
{
{
return
((
i
ch
<
0
||
i
ch
>=
GetNchannels
())
?
0
:
fChannelAddresses
[
i
ch
]);
return
((
ch
Id
<
0
||
ch
Id
>=
GetNchannels
())
?
0
:
fChannelAddresses
[
ch
Id
]);
}
}
virtual
uint32_t
GetChannelMask
()
const
;
virtual
uint32_t
GetChannelMask
()
const
;
virtual
bool
IsChannelMasked
(
int
ch
)
const
;
virtual
bool
IsChannelMasked
(
int
ch
)
const
;
...
...
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