Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LHCb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
LHCb
LHCb
Commits
c548e04b
Commit
c548e04b
authored
1 year ago
by
Christopher Rob Jones
Browse files
Options
Downloads
Patches
Plain Diff
RichTrackSegment: Add track origin time data member
parent
66aafb9a
No related branches found
No related tags found
1 merge request
!4181
RICH Support for 'Reco From MC Information' for upgrade studies
Pipeline
#5979249
passed
1 year ago
Stage: test
Stage: .post
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Rich/RichUtils/include/RichUtils/RichTrackSegment.h
+20
-8
20 additions, 8 deletions
Rich/RichUtils/include/RichUtils/RichTrackSegment.h
Rich/RichUtils/src/RichTrackSegment.cpp
+1
-0
1 addition, 0 deletions
Rich/RichUtils/src/RichTrackSegment.cpp
with
21 additions
and
8 deletions
Rich/RichUtils/include/RichUtils/RichTrackSegment.h
+
20
−
8
View file @
c548e04b
...
...
@@ -236,19 +236,20 @@ namespace LHCb {
* Information is moved in this implementation.
*/
template
<
class
INTERS
>
RichTrackSegment
(
INTERS
&&
inters
,
///< The radiator intersections
const
Rich
::
RadiatorType
rad
,
///< The radiator type
const
Rich
::
DetectorType
rich
,
///< The detector type
const
StateErrors
&
entryErrs
=
StateErrors
{},
///< The segment errors at the entry point
const
StateErrors
&
exitErrs
=
StateErrors
{}
///< The segment errors at the exit point
RichTrackSegment
(
INTERS
&&
inters
,
///< The radiator intersections
const
Rich
::
RadiatorType
rad
,
///< The radiator type
const
Rich
::
DetectorType
rich
,
///< The detector type
const
StateErrors
&
entryErrs
=
StateErrors
{},
///< The segment errors at the entry point
const
StateErrors
&
exitErrs
=
StateErrors
{},
///< The segment errors at the exit point
const
float
tkOriginTime
=
0.0
///< Origin time of the associated track
)
:
m_radiator
(
rad
)
,
m_rich
(
rich
)
,
m_radIntersections
(
std
::
forward
<
INTERS
>
(
inters
)
)
,
m_errorsEntry
(
entryErrs
)
,
m_errorsMiddle
(
Rich
::
Rich1Gas
==
rad
?
exitErrs
:
entryErrs
)
,
// CRJ : Is this best ?
m_errorsExit
(
exitErrs
)
,
m_errorsExit
(
exitErrs
)
,
m_tkOriginTime
(
tkOriginTime
)
,
m_avPhotonEnergy
(
avPhotEn
(
rad
)
)
{
initTwoPoints
();
}
...
...
@@ -267,7 +268,8 @@ namespace LHCb {
const
Rich
::
DetectorType
rich
,
///< The detector type
const
StateErrors
&
entryErrors
=
StateErrors
{},
///< The segment errors at the entry point
const
StateErrors
&
middleErrors
=
StateErrors
{},
///< The segment errors at the mid point
const
StateErrors
&
exitErrors
=
StateErrors
{}
///< The segment errors at the exit point
const
StateErrors
&
exitErrors
=
StateErrors
{},
///< The segment errors at the exit point
const
float
tkOriginTime
=
0.0
///< Origin time of the associated track
)
:
m_radiator
(
rad
)
,
m_rich
(
rich
)
...
...
@@ -277,6 +279,7 @@ namespace LHCb {
,
m_errorsEntry
(
entryErrors
)
,
m_errorsMiddle
(
middleErrors
)
,
m_errorsExit
(
exitErrors
)
,
m_tkOriginTime
(
tkOriginTime
)
,
m_avPhotonEnergy
(
avPhotEn
(
rad
)
)
{
initThreePoints
();
}
...
...
@@ -553,6 +556,12 @@ namespace LHCb {
/// Sets the average observable photon energy
inline
void
setAvPhotonEnergy
(
const
float
energy
)
noexcept
{
m_avPhotonEnergy
=
energy
;
}
/// Set the track origin time
inline
void
setTkOriginTime
(
const
float
time
)
noexcept
{
m_tkOriginTime
=
time
;
}
/// Access the track origin time
inline
auto
tkOriginTime
()
const
noexcept
{
return
m_tkOriginTime
;
}
/// Reset the segment
inline
void
reset
()
{
updateCachedInfo
();
}
...
...
@@ -612,6 +621,9 @@ namespace LHCb {
StateErrors
m_errorsMiddle
;
///< Errors for the middle state
StateErrors
m_errorsExit
;
///< Errors for the exit state
/// Track origin time
float
m_tkOriginTime
{
0.0
};
/** The average observable photon energy for this segment.
* Set to the average for Rich1 and Rich2 gas radiators...
* @todo Quick fix. Need to review to if this can be done in a better way
...
...
This diff is collapsed.
Click to expand it.
Rich/RichUtils/src/RichTrackSegment.cpp
+
1
−
0
View file @
c548e04b
...
...
@@ -103,6 +103,7 @@ std::ostream& LHCb::RichTrackSegment::fillStream( std::ostream& s ) const {
<<
" entryErrors:
\t
"
<<
entryErrors
()
<<
std
::
endl
<<
" middleErrors:
\t
"
<<
middleErrors
()
<<
std
::
endl
<<
" exitErrors:
\t
"
<<
exitErrors
()
<<
std
::
endl
<<
" tkOriginTime:
\t
"
<<
tkOriginTime
()
<<
std
::
endl
<<
" } "
;
return
s
;
}
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