#include <TestPileUpTool.h>
|
std::vector< std::pair< unsigned int, int > > | m_seen |
| return false if not interested in certain xing times (in ns) implemented by default in PileUpToolBase as FirstXing<=bunchXing<=LastXing More...
|
|
Gaudi::Property< bool > | m_doFiltering {this, "DoFiltering", false, ""} |
|
Gaudi::Property< unsigned int > | m_maxInTimePileUp {this, "MaxInTimePileUp", 4, ""} |
|
virtual StatusCode | prepareEvent (const EventContext &ctx, unsigned int nInputEvents) override final |
| called before the bunchXing loop More...
|
|
virtual StatusCode | mergeEvent (const EventContext &ctx) override final |
| called at the end of the subevts loop. More...
|
|
virtual StatusCode | processBunchXing (int bunchXing, SubEventIterator bSubEvents, SubEventIterator eSubEvents) override final |
| called for each active bunch-crossing to process current SubEvents bunchXing is in ns More...
|
|
Definition at line 18 of file TestPileUpTool.h.
◆ TestPileUpTool()
TestPileUpTool::TestPileUpTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ filterPassed()
virtual bool PileUpToolBase::filterPassed |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ initialize()
virtual StatusCode PileUpToolBase::initialize |
( |
| ) |
|
|
inlineoverridevirtualinherited |
Reimplemented in MdtDigitizationTool, TileHitVecToCntTool, MM_DigitizationTool, TRTDigitizationTool, LArPileUpTool, RpcDigitizationTool, HGTD_DigitizationTool, AFP_PileUpTool, CscDigitizationTool, TgcDigitizationTool, ALFA_PileUpTool, BCM_DigitizationTool, ZDC_PileUpTool, LUCID_PileUpTool, MuonR4::MM_DigitizationTool, MergeMcEventCollTool, MergeCalibHitsTool, MergeGenericMuonSimHitCollTool, MergeHijingParsTool, SimpleMergeMcEventCollTool, MergeTrackRecordCollTool, MergeTruthJetsTool, MergeTruthParticlesTool, NewMergeMcEventCollTool, MuonR4::MmFastDigiTool, MuonR4::MdtDigitizationTool, MuonR4::RpcFastDigiTool, MuonR4::sTgcFastDigiTool, MuonR4::TgcFastDigiTool, HGTD_SmearedDigitizationTool, MuonR4::MuonDigitizationTool, PixelDigitizationTool, SCT_FastDigitizationTool, TRTFastDigitizationTool, PixelFastDigitizationTool, SiSmearedDigitizationTool, and sTgcDigitizationTool.
Definition at line 26 of file PileUpToolBase.h.
27 return StatusCode::SUCCESS;
◆ mergeEvent()
StatusCode TestPileUpTool::mergeEvent |
( |
const EventContext & |
ctx | ) |
|
|
finaloverridevirtual |
called at the end of the subevts loop.
Not (necessarily) able to access SubEvents
Definition at line 22 of file TestPileUpTool.cxx.
24 for (
const auto& bc :
m_seen)
26 ATH_MSG_INFO(
"mergeEvent: there are " << bc.first <<
" events in bunch xing " << bc.second );
28 return StatusCode::SUCCESS;
◆ prepareEvent()
StatusCode TestPileUpTool::prepareEvent |
( |
const EventContext & |
ctx, |
|
|
unsigned int |
nInputEvents |
|
) |
| |
|
finaloverridevirtual |
called before the bunchXing loop
Definition at line 16 of file TestPileUpTool.cxx.
18 ATH_MSG_INFO(
"prepareEvent: expect to process " << nInputEvents <<
" events this time." );
19 return StatusCode::SUCCESS;
◆ processAllSubEvents() [1/2]
virtual StatusCode PileUpToolBase::processAllSubEvents |
( |
const EventContext & |
| ) |
|
|
inlineoverridevirtualinherited |
Reimplemented in MdtDigitizationTool, TRTDigitizationTool, TileHitVecToCntTool, RpcDigitizationTool, LArPileUpTool, AFP_PileUpTool, CscDigitizationTool, TgcDigitizationTool, ALFA_PileUpTool, MuonR4::MuonDigitizationTool, HGTD_DigitizationTool, ZDC_PileUpTool, LUCID_PileUpTool, MergeCalibHitsTool, MergeMcEventCollTool, MergeHijingParsTool, MergeTrackRecordCollTool, SimpleMergeMcEventCollTool, MergeGenericMuonSimHitCollTool, BCM_DigitizationTool, MergeTruthJetsTool, NewMergeMcEventCollTool, MergeTruthParticlesTool, MM_DigitizationTool, HGTD_SmearedDigitizationTool, PixelDigitizationTool, SCT_FastDigitizationTool, TRTFastDigitizationTool, PixelFastDigitizationTool, SiSmearedDigitizationTool, and sTgcDigitizationTool.
Definition at line 39 of file PileUpToolBase.h.
40 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 31 of file TestPileUpTool.cxx.
40 ATH_MSG_INFO(
"Triggering filter as there were " <<
m_seen.back().first <<
" pile-up events in time.");
46 while (iEvt != eSubEvents)
49 ATH_MSG_DEBUG(
"SubEvt EventInfo from StoreGate " << seStore.name() <<
" : "
50 <<
" bunch crossing : " << bunchXing
51 <<
" time offset: " << iEvt->time()
52 <<
" event: " << iEvt->ptr()->eventNumber()
53 <<
" run: " << iEvt->ptr()->runNumber()
57 return StatusCode::SUCCESS;
◆ resetFilter()
virtual void PileUpToolBase::resetFilter |
( |
| ) |
|
|
inlineoverridevirtualinherited |
◆ toProcess()
virtual bool PileUpToolBase::toProcess |
( |
int |
bunchXing | ) |
const |
|
inlineoverridevirtualinherited |
◆ m_doFiltering
Gaudi::Property<bool> TestPileUpTool::m_doFiltering {this, "DoFiltering", false, ""} |
|
private |
◆ m_filterPassed
bool PileUpToolBase::m_filterPassed {true} |
|
protectedinherited |
◆ 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_maxInTimePileUp
Gaudi::Property<unsigned int> TestPileUpTool::m_maxInTimePileUp {this, "MaxInTimePileUp", 4, ""} |
|
private |
◆ m_seen
std::vector<std::pair<unsigned int, int> > TestPileUpTool::m_seen |
|
private |
return false if not interested in certain xing times (in ns) implemented by default in PileUpToolBase as FirstXing<=bunchXing<=LastXing
Definition at line 44 of file TestPileUpTool.h.
◆ 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: