#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 39 of file EvtIdModifierSvc.h.
◆ EvtIdModifierSvc() [1/2]
EvtIdModifierSvc::EvtIdModifierSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Constructor with parameters:
Definition at line 46 of file EvtIdModifierSvc.cxx.
48 : base_class(
name, pSvcLocator) {
52 "(RunNumber,EvtNbr,TimeStamp,LumiBlock,Nevents,ModBit).");
55 "Name of the event store whose EventIDs will be modified.");
58 "Number of events to skip before modifying EventInfos.");
60 "Number of events skipped in the EventSelector.");
◆ EvtIdModifierSvc() [2/2]
EvtIdModifierSvc::EvtIdModifierSvc |
( |
| ) |
|
|
private |
◆ initialize()
StatusCode EvtIdModifierSvc::initialize |
( |
| ) |
|
|
overridevirtual |
Gaudi Service Implementation.
Definition at line 65 of file EvtIdModifierSvc.cxx.
69 nplets_prop_count > 0) {
71 if (nplets_prop_count % prop_per_nplet != 0) {
73 << prop_per_nplet <<
")" <<
endmsg <<
"check your joboptions !");
74 return StatusCode::FAILURE;
77 m_evtNplets.reserve(nplets_prop_count / prop_per_nplet);
78 for (std::size_t
i = 0;
i < nplets_prop_count;
i += prop_per_nplet) {
102 <<
endmsg <<
"evtid-modifiers: [ ";
104 msg(
MSG::DEBUG) <<
"[" << elem.runnbr <<
", " << elem.evtnbr <<
", "
105 << elem.timestamp <<
", " << elem.lbknbr <<
", "
106 << elem.nevts <<
", flags=0x" << std::hex << elem.flags
107 << std::dec <<
"], ";
112 return StatusCode::SUCCESS;
◆ modify_evtid()
modify an EventID
's lumi block content.
modify an EventID
's content.
Definition at line 138 of file EvtIdModifierSvc.cxx.
144 if (consume_stream) {
147 ATH_MSG_INFO(
"could not retrieve the active evtstore - bailing out");
151 const std::string& evtStoreName =
active->name();
158 ATH_MSG_DEBUG(
"evtid before massaging: " <<
"(" << evt_id.run_number() <<
", "
159 << evt_id.event_number() <<
", "
160 << evt_id.time_stamp() <<
", "
161 << evt_id.lumi_block() <<
")");
167 ATH_MSG_DEBUG(
"Got event idx " << evt_index <<
" --(account for skipping)--> "
168 <<
idx <<
" --(modulo #modifiers)--> "
181 <<
" (LB: " <<
current.lbknbr <<
")");
188 if (
current.flags & ModFlag::RUNNBR) {
189 evt_id.set_run_number(
current.runnbr);
191 if (
current.flags & ModFlag::EVTNBR) {
192 evt_id.set_event_number(
current.evtnbr);
194 if (
current.flags & ModFlag::TIMESTAMP) {
195 evt_id.set_time_stamp(
current.timestamp);
197 if (
current.flags & ModFlag::LBKNBR) {
198 evt_id.set_lumi_block(
current.lbknbr);
201 ATH_MSG_DEBUG(
"evtid after massaging: " <<
"(" << evt_id.run_number() <<
", "
202 << evt_id.event_number() <<
", "
203 << evt_id.time_stamp() <<
", "
204 << evt_id.lumi_block() <<
")");
◆ run_number_list()
std::vector< number_type > EvtIdModifierSvc::run_number_list |
( |
| ) |
const |
|
overridevirtual |
return the (sorted) list of run-numbers which will be modified.
Definition at line 121 of file EvtIdModifierSvc.cxx.
122 std::set<number_type>
runs;
125 if (elem.flags & ModFlag::RUNNBR) {
126 runs.insert(elem.runnbr);
129 return std::vector(
runs.begin(),
runs.end());
◆ 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 91 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 84 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 87 of file EvtIdModifierSvc.h.
◆ m_firstEvtIdx
(prop) first event number at which we begin to modify event ids
Definition at line 80 of file EvtIdModifierSvc.h.
◆ m_numEvtTotals
◆ m_skippedEvents
(prop) number of events skipped in the event selector
Definition at line 78 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,...