#include <EvtIdModifierSvc.h>
|
event_number_t | m_skippedEvents |
| (prop) number of events skipped in the event selector More...
|
|
event_number_t | m_firstEvtIdx |
| (prop) first event number at which we begin to modify event ids More...
|
|
std::vector< uint64_t > | m_evtNpletsProp |
| (prop) list of n-plets (run-nbr, evt-nbr, time-stamp, lbk-nbr, nbr-of-events-per-lbk, mod-bit) More...
|
|
std::string | m_evtStoreName |
| (prop) Name of the event store whose EventIDs will be modified. More...
|
|
std::vector< ItemModifier > | m_evtNplets |
| db of list of ItemModifiers: (run-nbr, evt-nbr, time-stamp, lbk-nbr, nbr-of-events-per-lbk, mod-bit) More...
|
|
std::vector< event_number_t > | m_numEvtTotals |
| Running total of numEvts before each modifier. More...
|
|
Definition at line 41 of file EvtIdModifierSvc.h.
◆ number_type
◆ EvtIdModifierSvc() [1/2]
EvtIdModifierSvc::EvtIdModifierSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Constructor with parameters:
Definition at line 46 of file EvtIdModifierSvc.cxx.
56 "(RunNumber,EvtNbr,TimeStamp,LumiBlock,Nevents,ModBit).");
59 "Name of the event store whose EventIDs will be modified.");
62 "Number of events to skip before modifying EventInfos.");
64 "Number of events skipped in the EventSelector.");
◆ EvtIdModifierSvc() [2/2]
EvtIdModifierSvc::EvtIdModifierSvc |
( |
| ) |
|
|
private |
◆ initialize()
StatusCode EvtIdModifierSvc::initialize |
( |
| ) |
|
|
overridevirtual |
Gaudi Service Implementation.
Definition at line 69 of file EvtIdModifierSvc.cxx.
73 nplets_prop_count > 0) {
75 if (nplets_prop_count % prop_per_nplet != 0) {
77 << prop_per_nplet <<
")" <<
endmsg <<
"check your joboptions !");
78 return StatusCode::FAILURE;
81 m_evtNplets.reserve(nplets_prop_count / prop_per_nplet);
82 for (std::size_t
i = 0;
i < nplets_prop_count;
i += prop_per_nplet) {
106 <<
endmsg <<
"evtid-modifiers: [ ";
108 msg(
MSG::DEBUG) <<
"[" << elem.runnbr <<
", " << elem.evtnbr <<
", "
109 << elem.timestamp <<
", " << elem.lbknbr <<
", "
110 << elem.nevts <<
", flags=0x" << std::hex << elem.flags
111 << std::dec <<
"], ";
116 return StatusCode::SUCCESS;
◆ interfaceID()
const InterfaceID & EvtIdModifierSvc::interfaceID |
( |
| ) |
|
|
inlinestatic |
◆ modify_evtid()
modify an EventID
's lumi block content.
modify an EventID
's content.
Implements IEvtIdModifierSvc.
Definition at line 159 of file EvtIdModifierSvc.cxx.
165 if (consume_stream) {
168 ATH_MSG_INFO(
"could not retrieve the active evtstore - bailing out");
172 const std::string& evtStoreName =
active->name();
179 ATH_MSG_DEBUG(
"evtid before massaging: " <<
"(" << evt_id.run_number() <<
", "
180 << evt_id.event_number() <<
", "
181 << evt_id.time_stamp() <<
", "
182 << evt_id.lumi_block() <<
")");
188 ATH_MSG_DEBUG(
"Got event idx " << evt_index <<
" --(account for skipping)--> "
189 <<
idx <<
" --(modulo #modifiers)--> "
202 <<
" (LB: " <<
current.lbknbr <<
")");
209 if (
current.flags & ModFlag::RUNNBR) {
210 evt_id.set_run_number(
current.runnbr);
212 if (
current.flags & ModFlag::EVTNBR) {
213 evt_id.set_event_number(
current.evtnbr);
215 if (
current.flags & ModFlag::TIMESTAMP) {
216 evt_id.set_time_stamp(
current.timestamp);
218 if (
current.flags & ModFlag::LBKNBR) {
219 evt_id.set_lumi_block(
current.lbknbr);
222 ATH_MSG_DEBUG(
"evtid after massaging: " <<
"(" << evt_id.run_number() <<
", "
223 << evt_id.event_number() <<
", "
224 << evt_id.time_stamp() <<
", "
225 << evt_id.lumi_block() <<
")");
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ queryInterface()
StatusCode EvtIdModifierSvc::queryInterface |
( |
const InterfaceID & |
riid, |
|
|
void ** |
ppvInterface |
|
) |
| |
|
overridevirtual |
Definition at line 124 of file EvtIdModifierSvc.cxx.
130 return ::AthService::queryInterface(riid, ppvInterface);
133 return StatusCode::SUCCESS;
◆ run_number_list()
std::vector< number_type > EvtIdModifierSvc::run_number_list |
( |
| ) |
const |
|
overridevirtual |
return the (sorted) list of run-numbers which will be modified.
Implements IEvtIdModifierSvc.
Definition at line 142 of file EvtIdModifierSvc.cxx.
143 std::set<number_type>
runs;
146 if (elem.flags & ModFlag::RUNNBR) {
147 runs.insert(elem.runnbr);
150 return std::vector(
runs.begin(),
runs.end());
◆ SvcFactory< EvtIdModifierSvc >
◆ m_evtNplets
db of list of ItemModifiers: (run-nbr, evt-nbr, time-stamp, lbk-nbr, nbr-of-events-per-lbk, mod-bit)
Definition at line 99 of file EvtIdModifierSvc.h.
◆ m_evtNpletsProp
std::vector<uint64_t> EvtIdModifierSvc::m_evtNpletsProp |
|
private |
(prop) list of n-plets (run-nbr, evt-nbr, time-stamp, lbk-nbr, nbr-of-events-per-lbk, mod-bit)
Definition at line 92 of file EvtIdModifierSvc.h.
◆ m_evtStoreName
std::string EvtIdModifierSvc::m_evtStoreName |
|
private |
(prop) Name of the event store whose EventIDs will be modified.
Definition at line 95 of file EvtIdModifierSvc.h.
◆ m_firstEvtIdx
(prop) first event number at which we begin to modify event ids
Definition at line 88 of file EvtIdModifierSvc.h.
◆ m_numEvtTotals
◆ m_skippedEvents
(prop) number of events skipped in the event selector
Definition at line 86 of file EvtIdModifierSvc.h.
The documentation for this class was generated from the following files:
std::vector< ItemModifier > m_evtNplets
db of list of ItemModifiers: (run-nbr, evt-nbr, time-stamp, lbk-nbr, nbr-of-events-per-lbk,...
std::vector< uint64_t > m_evtNpletsProp
(prop) list of n-plets (run-nbr, evt-nbr, time-stamp, lbk-nbr, nbr-of-events-per-lbk,...