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
4c5513d3
Commit
4c5513d3
authored
2 years ago
by
Felix Weiglhofer
Browse files
Options
Downloads
Patches
Plain Diff
TrdCluster: Add missing copy assignment-operator to fix compiler warning.
parent
dfa4afd4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1118
Fix various warnings.
Pipeline
#21630
passed
2 years ago
Stage: documentation
Stage: deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/data/trd/CbmTrdCluster.cxx
+13
-1
13 additions, 1 deletion
core/data/trd/CbmTrdCluster.cxx
core/data/trd/CbmTrdCluster.h
+10
-8
10 additions, 8 deletions
core/data/trd/CbmTrdCluster.h
with
23 additions
and
9 deletions
core/data/trd/CbmTrdCluster.cxx
+
13
−
1
View file @
4c5513d3
...
...
@@ -49,10 +49,22 @@ CbmTrdCluster::CbmTrdCluster(int32_t address, int32_t idx, int32_t ch, int32_t r
//____________________________________________________________________
CbmTrdCluster
::~
CbmTrdCluster
()
{}
CbmTrdCluster
&
CbmTrdCluster
::
operator
=
(
const
CbmTrdCluster
&
ref
)
{
if
(
this
!=
&
ref
)
{
CbmCluster
::
operator
=
(
ref
);
fNCols
=
ref
.
fNCols
;
fNRows
=
ref
.
fNRows
;
fStartCh
=
ref
.
fStartCh
;
fStartTime
=
ref
.
fStartTime
;
}
return
*
this
;
}
//____________________________________________________________________
bool
CbmTrdCluster
::
AddDigi
(
int32_t
idx
,
int32_t
channel
,
int32_t
terminator
,
int32_t
dt
)
{
/** Extend basic functionality of CbmCluster::AddDigi().
/** Extend basic functionality of CbmCluster::AddDigi().
* If channel>=0 add this info to channel map.
*/
...
...
This diff is collapsed.
Click to expand it.
core/data/trd/CbmTrdCluster.h
+
10
−
8
View file @
4c5513d3
...
...
@@ -42,11 +42,11 @@ public:
CbmTrdCluster
(
const
std
::
vector
<
int32_t
>&
indices
,
int32_t
address
);
/**
* \brief Constructor starting from first digit.
* \param[in] address global module address
* \param[in] address global module address
* \param[in] idx global digi index in the TClonesArray
* \param[in] ch RO channel address within the module
* \param[in] r module row for the RO channel
* \param[in] time relative buffer DAQ time
* \param[in] ch RO channel address within the module
* \param[in] r module row for the RO channel
* \param[in] time relative buffer DAQ time
*/
CbmTrdCluster
(
int32_t
address
,
int32_t
idx
,
int32_t
ch
,
int32_t
r
,
int32_t
time
);
/**
...
...
@@ -54,10 +54,12 @@ public:
*/
virtual
~
CbmTrdCluster
();
CbmTrdCluster
&
operator
=
(
const
CbmTrdCluster
&
ref
);
/** \brief Append digi to cluster
* \param[in] idx index of digi in TClonesArray
* \param[in] channel RO channel for digi
* \param[in] terminator state of digi for triangular pads: 0 if complete, -/+ if T/R misses
* \param[in] terminator state of digi for triangular pads: 0 if complete, -/+ if T/R misses
* \param[in] dt update start time of cluster if current digi is prompt
* \return true if successful
*/
...
...
@@ -76,14 +78,14 @@ public:
bool
HasOpenStart
()
const
{
return
TESTBIT
(
fNRows
,
kProfileStart
);
}
bool
HasOpenStop
()
const
{
return
TESTBIT
(
fNRows
,
kProfileStop
);
}
/** \brief Query on RO channel list
/** \brief Query on RO channel list
* \param[in] channel RO channel for digi
* \return -1 before range; 0 in range; 1 after range; -2 cluster empty of digits
*/
int32_t
IsChannelInRange
(
int32_t
ch
)
const
;
/** \brief Merge current cluster with info from second
/** \brief Merge current cluster with info from second
* \param[in] second cluster to be added
* \param[in] typ the type of pad-plane of the source chamber; true if Trd2d
* \param[in] typ the type of pad-plane of the source chamber; true if Trd2d
* \return success or fail
*/
bool
Merge
(
CbmTrdCluster
*
second
,
bool
typ
=
true
);
...
...
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