an algorithm to copy in the overlayed store the calib hits from the signal event
More...
#include <MergeCalibHitsTool.h>
an algorithm to copy in the overlayed store the calib hits from the signal event
$Id:
- Author
- Guillaume Unal (from Paolo's MergeMcEventCollection)
Definition at line 25 of file MergeCalibHitsTool.h.
◆ MergeCalibHitsTool()
MergeCalibHitsTool::MergeCalibHitsTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ filterPassed()
virtual bool PileUpToolBase::filterPassed |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ initialize()
StatusCode MergeCalibHitsTool::initialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ mergeEvent()
StatusCode MergeCalibHitsTool::mergeEvent |
( |
const EventContext & |
ctx | ) |
|
|
finaloverridevirtual |
called at the end of the subevts loop.
Not (necessarily) able to access SubEvents
Definition at line 113 of file MergeCalibHitsTool.cxx.
117 ATH_MSG_ERROR (
" Cannot record new calibration hit in overlayed event " );
118 return StatusCode::FAILURE;
121 return StatusCode::SUCCESS;
◆ prepareEvent()
StatusCode MergeCalibHitsTool::prepareEvent |
( |
const EventContext & |
ctx, |
|
|
unsigned int |
nInputEvents |
|
) |
| |
|
finaloverridevirtual |
called before the subevts loop.
Not (necessarily) able to access SubEvents
Definition at line 45 of file MergeCalibHitsTool.cxx.
47 ATH_MSG_VERBOSE(
"prepareEvent: there are " << nInputEvents <<
" subevents in this event.");
54 return StatusCode::SUCCESS;
◆ processAllSubEvents() [1/2]
StatusCode MergeCalibHitsTool::processAllSubEvents |
( |
const EventContext & |
ctx | ) |
|
|
finaloverridevirtual |
return false if not interested in certain xing times (in ns) implemented by default in PileUpToolBase as FirstXing<=bunchXing<=LastXing
Propagate the Calib Hit Containers to the output StoreGate
Reimplemented from PileUpToolBase.
Definition at line 124 of file MergeCalibHitsTool.cxx.
136 ,hitCont).isSuccess()) || !hitCont) {
137 ATH_MSG_DEBUG (
" Cannot find calibrationHit from PileUp service " );
146 ATH_MSG_DEBUG (
" Start loop over calibration hits of signal event " );
152 ATH_MSG_DEBUG (
" Number of hits found in this container " << nhit );
156 ATH_MSG_ERROR (
" Cannot record new calibration hit in overlayed event " );
157 return StatusCode::FAILURE;
162 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 57 of file MergeCalibHitsTool.cxx.
62 while (iEvt != eSubEvents) {
65 ATH_MSG_VERBOSE (
" Have already seen a SubEvent marked as Signal! Don't need to look at any others! " );
83 bunchXing, iEvt).isSuccess()){
94 ATH_MSG_VERBOSE (
" Start loop over calibration hits of signal event " );
97 while(calibhititer != calibhitend) {
104 <<
" container = " << nhit );
111 return StatusCode::SUCCESS;
◆ resetFilter()
virtual void PileUpToolBase::resetFilter |
( |
| ) |
|
|
inlineoverridevirtualinherited |
◆ toProcess()
virtual bool PileUpToolBase::toProcess |
( |
int |
bunchXing | ) |
const |
|
inlineoverridevirtualinherited |
◆ m_CalibrationHitContainer
std::vector<std::string> MergeCalibHitsTool::m_CalibrationHitContainer |
|
private |
◆ m_filterPassed
bool PileUpToolBase::m_filterPassed {true} |
|
protectedinherited |
◆ m_firstSubEvent
bool MergeCalibHitsTool::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_oldFormat
Gaudi::Property<bool> MergeCalibHitsTool::m_oldFormat {this, "OldFormat", false, ""} |
|
private |
◆ m_outputContainers
◆ m_pMergeSvc
◆ 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: