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
ea0fb9dd
Commit
ea0fb9dd
authored
1 year ago
by
Christopher Rob Jones
Browse files
Options
Downloads
Patches
Plain Diff
DecodedDataFromMCRichHits: Add property to enable/disable spillover
parent
595710b3
No related branches found
No related tags found
1 merge request
!4337
Misc. improvements to support RICH 4D Reco
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Rich/RichFutureMCUtils/src/component/DecodedDataFromMCRichHits.cpp
+16
-14
16 additions, 14 deletions
...FutureMCUtils/src/component/DecodedDataFromMCRichHits.cpp
with
16 additions
and
14 deletions
Rich/RichFutureMCUtils/src/component/DecodedDataFromMCRichHits.cpp
+
16
−
14
View file @
ea0fb9dd
...
...
@@ -98,33 +98,32 @@ namespace Rich::Future::MC {
for
(
const
auto
mchit
:
mchits
)
{
const
auto
id
=
mchit
->
sensDetID
();
if
(
id
.
isValid
()
)
{
// Apply all sorts MC based filtering here, e.g. signal only, timing windows etc.
// To be extended as needed
if
(
m_rejectBackground
&&
mchit
->
isBackground
()
)
{
_ri_verbo
<<
id
<<
" Rejected as background"
<<
endmsg
;
continue
;
}
// finally save this id -> hit mapping
hitsPerPix
[
id
].
push_back
(
mchit
);
}
// hit is valid
}
// mc hit loop
};
// Spillover locations
auto
addSpilloverHits
=
[
&
](
auto
const
&
mchits
)
{
if
(
mchits
.
exist
()
)
{
addMCHits
(
*
mchits
.
get
()
);
}
};
// add the hits
// add the main event hits
addMCHits
(
main_mchits
);
addSpilloverHits
(
m_prevHits
);
addSpilloverHits
(
m_prevPrevHits
);
addSpilloverHits
(
m_nextHits
);
addSpilloverHits
(
m_nextNextHits
);
addSpilloverHits
(
m_lhcBkgHits
);
// ... and if requested spillover hits
if
(
m_enableSpillover
)
{
auto
addSpilloverHits
=
[
&
](
auto
const
&
mchits
)
{
if
(
mchits
.
exist
()
)
{
addMCHits
(
*
mchits
.
get
()
);
}
};
addSpilloverHits
(
m_prevHits
);
addSpilloverHits
(
m_prevPrevHits
);
addSpilloverHits
(
m_nextHits
);
addSpilloverHits
(
m_nextNextHits
);
addSpilloverHits
(
m_lhcBkgHits
);
}
// Form list of unique IDs
LHCb
::
RichSmartID
::
Vector
ids
;
...
...
@@ -216,6 +215,9 @@ namespace Rich::Future::MC {
/// Reject background hits
Gaudi
::
Property
<
bool
>
m_rejectBackground
{
this
,
"RejectBackground"
,
false
};
/// Include spillover events
Gaudi
::
Property
<
bool
>
m_enableSpillover
{
this
,
"EnableSpillover"
,
true
};
};
// Declaration of the Algorithm Factory
...
...
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