an algorithm to propagate HijingPars to the overlay store
More...
#include <MergeHijingParsTool.h>
an algorithm to propagate HijingPars to the overlay store
$Id:
- Author
- DCost.nosp@m.anzo.nosp@m.@bnl..nosp@m.gov (from Paolo's MergeMcEventCollTool)
Definition at line 26 of file MergeHijingParsTool.h.
◆ MergeHijingParsTool()
MergeHijingParsTool::MergeHijingParsTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ filterPassed()
virtual bool PileUpToolBase::filterPassed |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ initialize()
StatusCode MergeHijingParsTool::initialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ mergeEvent()
StatusCode MergeHijingParsTool::mergeEvent |
( |
const EventContext & |
ctx | ) |
|
|
finaloverridevirtual |
called at the end of the subevts loop.
Not (necessarily) able to access SubEvents
Definition at line 75 of file MergeHijingParsTool.cxx.
79 ATH_MSG_ERROR (
"mergeEvent: No HijingEventParams found in the signal or background eventStores." );
80 return StatusCode::FAILURE;
82 return StatusCode::SUCCESS;
◆ prepareEvent()
StatusCode MergeHijingParsTool::prepareEvent |
( |
const EventContext & |
ctx, |
|
|
unsigned int |
nInputEvents |
|
) |
| |
|
finaloverridevirtual |
called before the subevts loop.
Not (necessarily) able to access SubEvents
Definition at line 20 of file MergeHijingParsTool.cxx.
22 ATH_MSG_DEBUG(
"prepareEvent: there are " << nInputEvents <<
" subevents in this event.");
25 return StatusCode::SUCCESS;
◆ processAllSubEvents() [1/2]
StatusCode MergeHijingParsTool::processAllSubEvents |
( |
const EventContext & |
ctx | ) |
|
|
finaloverridevirtual |
Propagate the HijingParsections to the output StoreGate.
Reimplemented from PileUpToolBase.
Definition at line 91 of file MergeHijingParsTool.cxx.
95 TimedHijingParamsList HijingList;
98 || HijingList.size()==0) {
99 ATH_MSG_INFO (
" Cannot find HijingEventParams from PileUp service " );
100 return StatusCode::SUCCESS;
102 ATH_MSG_DEBUG (
" HijingEventParams found from PileUp service " );
103 for (
const auto& hijingParams: HijingList) {
104 hijing_pars = hijingParams.second;
107 hijing_pars->get_nt(),
108 hijing_pars->get_n0(),
109 hijing_pars->get_n01(),
110 hijing_pars->get_n10(),
111 hijing_pars->get_n11(),
112 hijing_pars->get_natt(),
113 hijing_pars->get_jatt(),
114 hijing_pars->get_b(),
115 hijing_pars->get_bphi())));
118 for(
int n=1;
n<7;++
n) {
125 ATH_MSG_ERROR(
"processAllSubEvents: No HijingEventParams found in the signal or background eventStores." );
126 return StatusCode::FAILURE;
128 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 28 of file MergeHijingParsTool.cxx.
34 ATH_MSG_VERBOSE(
"Already written out a HijingEventParams for the current signal event.");
35 return StatusCode::SUCCESS;
38 for (; iEvt!=eSubEvents; ++iEvt) {
41 bunchXing, iEvt).isSuccess()) {
43 hijing_pars->get_nt(),
44 hijing_pars->get_n0(),
45 hijing_pars->get_n01(),
46 hijing_pars->get_n10(),
47 hijing_pars->get_n11(),
48 hijing_pars->get_natt(),
49 hijing_pars->get_jatt(),
51 hijing_pars->get_bphi())));
54 for(
int n=1;
n<7;++
n) {
59 ATH_MSG_DEBUG(
"processBunchXing: copied original event HijingEventParams" );
62 ATH_MSG_DEBUG(
"processBunchXing: copied background event HijingEventParams" );
64 return StatusCode::SUCCESS;
68 ATH_MSG_VERBOSE(
"processBunchXing: No HijingEventParams found in the signal eventStore." );
72 return StatusCode::SUCCESS;
◆ resetFilter()
virtual void PileUpToolBase::resetFilter |
( |
| ) |
|
|
inlineoverridevirtualinherited |
◆ toProcess()
bool MergeHijingParsTool::toProcess |
( |
int |
bunchXing | ) |
const |
|
finaloverridevirtual |
◆ m_filterPassed
bool PileUpToolBase::m_filterPassed {true} |
|
protectedinherited |
◆ m_firstSubEvent
bool MergeHijingParsTool::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_outputObject
◆ m_outputObjectKey
◆ 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: