![]() |
ATLAS Offline Software
|
a PileUpTool to merge MC truth collection in the overlay store More...
#include <SimpleMergeMcEventCollTool.h>
Public Member Functions | |
| SimpleMergeMcEventCollTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| virtual StatusCode | initialize () override final |
| virtual StatusCode | prepareEvent (const EventContext &ctx, unsigned int nInputEvents) override final |
| called before the subevts loop. | |
| virtual StatusCode | mergeEvent (const EventContext &ctx) override final |
| called at the end of the subevts loop. | |
| virtual StatusCode | processBunchXing (int, SubEventIterator bSubEvents, SubEventIterator eSubEvents) override final |
| called for each active bunch-crossing to process current SubEvents bunchXing is in ns | |
| virtual StatusCode | processAllSubEvents (const EventContext &ctx) override final |
| return false if not interested in certain xing times (in ns) implemented by default in PileUpToolBase as FirstXing<=bunchXing<=LastXing | |
Private Member Functions | |
| StatusCode | saveHeavyIonInfo (const McEventCollection *pMcEvtColl, McEventCollection *outputMcEventCollection) |
| Common methods. | |
| StatusCode | processEvent (const McEventCollection *pMcEvtColl, McEventCollection *outputMcEventCollection, const int currentBkgEventIndex, int bunchCrossingTime, int pileupType) |
| void | printDetailsOfMergedMcEventCollection (McEventCollection *outputMcEventCollection) const |
Private Attributes | |
| ServiceHandle< PileUpMergeSvc > | m_pMergeSvc {this, "PileUpMergeSvc", "PileUpMergeSvc", ""} |
| StringProperty | m_truthCollOutputKey {this, "TruthCollOutputKey", "TruthEvent", "Name of output McEventCollection"} |
| McEventCollection * | m_outputMcEventCollection {} |
| StringProperty | m_truthCollInputKey {this, "TruthCollInputKey", "TruthEvent", ""} |
| BooleanProperty | m_overrideEventNumbers {this, "OverrideEventNumbers", false, ""} |
| BooleanProperty | m_onlySaveSignalTruth {this, "OnlySaveSignalTruth", false, "Just save the Signal GenEvent"} |
| bool | m_newevent {true} |
| unsigned int | m_nInputMcEventColls {0} |
| unsigned int | m_nBkgEventsReadSoFar {0} |
structors and AlgTool implementation | |
| virtual bool | toProcess (int bunchXing) const override |
| the method this base class helps implementing | |
| virtual bool | filterPassed () const override |
| dummy implementation of passing filter | |
| virtual void | resetFilter () override |
| dummy implementation of filter reset | |
| Gaudi::Property< int > | m_firstXing |
| Gaudi::Property< int > | m_lastXing |
| Gaudi::Property< int > | m_vetoPileUpTruthLinks |
| bool | m_filterPassed {true} |
a PileUpTool to merge MC truth collection in the overlay store
$Id:
Definition at line 26 of file SimpleMergeMcEventCollTool.h.
| SimpleMergeMcEventCollTool::SimpleMergeMcEventCollTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Definition at line 12 of file SimpleMergeMcEventCollTool.cxx.
|
inlineoverridevirtualinherited |
|
finaloverridevirtual |
Reimplemented from PileUpToolBase.
Definition at line 19 of file SimpleMergeMcEventCollTool.cxx.
|
finaloverridevirtual |
called at the end of the subevts loop.
Not (necessarily) able to access SubEvents
Definition at line 77 of file SimpleMergeMcEventCollTool.cxx.
|
finaloverridevirtual |
called before the subevts loop.
PileUpTools Approach.
Not (necessarily) able to access SubEvents
Definition at line 29 of file SimpleMergeMcEventCollTool.cxx.
|
private |
Definition at line 189 of file SimpleMergeMcEventCollTool.cxx.
|
finaloverridevirtual |
return false if not interested in certain xing times (in ns) implemented by default in PileUpToolBase as FirstXing<=bunchXing<=LastXing
Algorithm Approach.
Reimplemented from PileUpToolBase.
Definition at line 90 of file SimpleMergeMcEventCollTool.cxx.
|
finaloverridevirtual |
called for each active bunch-crossing to process current SubEvents bunchXing is in ns
Reimplemented from PileUpToolBase.
Definition at line 49 of file SimpleMergeMcEventCollTool.cxx.
|
private |
Definition at line 152 of file SimpleMergeMcEventCollTool.cxx.
|
inlineoverridevirtualinherited |
dummy implementation of filter reset
Reimplemented in MergeTruthJetsTool.
Definition at line 51 of file PileUpToolBase.h.
|
private |
Common methods.
Definition at line 136 of file SimpleMergeMcEventCollTool.cxx.
|
inlineoverridevirtualinherited |
the method this base class helps implementing
Reimplemented in MergeHijingParsTool, and MergeTrackRecordCollTool.
Definition at line 32 of file PileUpToolBase.h.
|
protectedinherited |
Definition at line 60 of file PileUpToolBase.h.
|
protectedinherited |
Definition at line 54 of file PileUpToolBase.h.
|
protectedinherited |
Definition at line 56 of file PileUpToolBase.h.
|
private |
Definition at line 72 of file SimpleMergeMcEventCollTool.h.
|
private |
Definition at line 68 of file SimpleMergeMcEventCollTool.h.
|
private |
Definition at line 70 of file SimpleMergeMcEventCollTool.h.
|
private |
Definition at line 66 of file SimpleMergeMcEventCollTool.h.
|
private |
Definition at line 60 of file SimpleMergeMcEventCollTool.h.
|
private |
Definition at line 64 of file SimpleMergeMcEventCollTool.h.
|
private |
Definition at line 58 of file SimpleMergeMcEventCollTool.h.
|
private |
Definition at line 62 of file SimpleMergeMcEventCollTool.h.
|
private |
Definition at line 59 of file SimpleMergeMcEventCollTool.h.
|
protectedinherited |
Definition at line 58 of file PileUpToolBase.h.