an algorithm to merge MC track record collTool in the overlay store
More...
#include <MergeTrackRecordCollTool.h>
an algorithm to merge MC track record collTool in the overlay store
$Id:
- Author
- DCost.nosp@m.anzo.nosp@m.@bnl..nosp@m.gov (from Paolo's MergeMcEventCollTool)
Definition at line 24 of file MergeTrackRecordCollTool.h.
◆ MergeTrackRecordCollTool()
MergeTrackRecordCollTool::MergeTrackRecordCollTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ filterPassed()
virtual bool PileUpToolBase::filterPassed |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ initialize()
StatusCode MergeTrackRecordCollTool::initialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ mergeEvent()
StatusCode MergeTrackRecordCollTool::mergeEvent |
( |
const EventContext & |
ctx | ) |
|
|
finaloverridevirtual |
called at the end of the subevts loop.
Not (necessarily) able to access SubEvents
Definition at line 68 of file MergeTrackRecordCollTool.cxx.
71 return StatusCode::SUCCESS;
◆ prepareEvent()
StatusCode MergeTrackRecordCollTool::prepareEvent |
( |
const EventContext & |
ctx, |
|
|
unsigned int |
nInputEvents |
|
) |
| |
|
finaloverridevirtual |
called before the subevts loop.
Not (necessarily) able to access SubEvents
Definition at line 24 of file MergeTrackRecordCollTool.cxx.
27 ATH_MSG_DEBUG(
"prepareEvent: there are " << nInputEvents <<
" subevents in this event.");
29 return StatusCode::SUCCESS;
◆ processAllSubEvents() [1/2]
StatusCode MergeTrackRecordCollTool::processAllSubEvents |
( |
const EventContext & |
ctx | ) |
|
|
finaloverridevirtual |
Propagate the TrackRecordCollections to the output StoreGate.
Reimplemented from PileUpToolBase.
Definition at line 81 of file MergeTrackRecordCollTool.cxx.
86 TimedTruthList truthList;
88 if (truthList.begin() != truthList.end()) {
96 return StatusCode::FAILURE;
99 for (
const auto& trcit : oldColl) {
103 ATH_MSG_DEBUG (
"processAllSubEvents: copied original event TrackRecordCollection" );
106 ATH_MSG_ERROR (
"processAllSubEvents: TimedTruthList is empty" );
110 ATH_MSG_ERROR (
"processAllSubEvents: Can not find TimedTruthList" );
112 return StatusCode::SUCCESS;
◆ processAllSubEvents() [2/2]
virtual StatusCode IPileUpTool::processAllSubEvents |
|
inherited |
dummy implementation to allow compilation while all Digitization packages are migrated to use this new interface.
◆ processBunchXing()
called for each active bunch-crossing to process current SubEvents bunchXing is in ns
Reimplemented from PileUpToolBase.
Definition at line 32 of file MergeTrackRecordCollTool.cxx.
39 if (bSubEvents != eSubEvents) {
42 bunchXing, bSubEvents).isSuccess()) {
47 return StatusCode::FAILURE;
50 for(
const auto& trcit : *oldColl) {
53 ATH_MSG_DEBUG(
"processBunchXing: copied original event TrackRecordCollection" );
57 ATH_MSG_ERROR (
"processBunchXing: TimedTruthList is empty" );
61 ATH_MSG_ERROR (
"processBunchXing: Can not find TimedTruthList" );
65 return StatusCode::SUCCESS;
◆ resetFilter()
virtual void PileUpToolBase::resetFilter |
( |
| ) |
|
|
inlineoverridevirtualinherited |
◆ toProcess()
bool MergeTrackRecordCollTool::toProcess |
( |
int |
bunchXing | ) |
const |
|
finaloverridevirtual |
◆ m_filterPassed
bool PileUpToolBase::m_filterPassed {true} |
|
protectedinherited |
◆ m_firstSubEvent
bool MergeTrackRecordCollTool::m_firstSubEvent {true} |
|
private |
◆ m_firstXing
Gaudi::Property<int> PileUpToolBase::m_firstXing |
|
protectedinherited |
Initial value:{this, "FirstXing", -999,
"First bunch-crossing in which det is live"}
Definition at line 54 of file PileUpToolBase.h.
◆ m_lastXing
Gaudi::Property<int> PileUpToolBase::m_lastXing |
|
protectedinherited |
Initial value:{this, "LastXing", 999,
"Last bunch-crossing in which det is live"}
Definition at line 56 of file PileUpToolBase.h.
◆ m_outputKey
◆ m_pMergeSvc
◆ m_trRecCollKey
StringProperty MergeTrackRecordCollTool::m_trRecCollKey {this, "TrackRecordCollKey", "MuonEntryLayer", ""} |
|
private |
◆ m_vetoPileUpTruthLinks
Gaudi::Property<int> PileUpToolBase::m_vetoPileUpTruthLinks |
|
protectedinherited |
Initial value:{this, "VetoPileUpTruthLinks", true,
"Ignore links to suppressed pile-up truth"}
Definition at line 58 of file PileUpToolBase.h.
The documentation for this class was generated from the following files: