#include <McEventSelector.h>
|
| virtual StatusCode | initialize () override |
| virtual StatusCode | stop () override |
| virtual StatusCode | createContext (Context *&refpCtxt) const override |
| virtual StatusCode | last (Context &refContext) const override |
| virtual StatusCode | next (Context &refCtxt) const override |
| virtual StatusCode | next (Context &refCtxt, int jump) const override |
| virtual StatusCode | previous (Context &refCtxt) const override |
| virtual StatusCode | previous (Context &refCtxt, int jump) const override |
| virtual StatusCode | rewind (Context &refCtxt) const override |
| virtual StatusCode | createAddress (const Context &refCtxt, IOpaqueAddress *&) const override |
| virtual StatusCode | releaseContext (Context *&refCtxt) const override |
| virtual StatusCode | resetCriteria (const std::string &cr, Context &c) const override |
| virtual StatusCode | seek (Context &refCtxt, int) const override |
| virtual int | curEvent (const Context &refCtxt) const override |
| virtual int | size (Context &refCtxt) const override |
| | McEventSelector (const std::string &name, ISvcLocator *svcloc) |
| | Service Constructor.
|
| | ~McEventSelector () |
Definition at line 44 of file McEventSelector.h.
◆ McEventSelector()
| McEventSelector::McEventSelector |
( |
const std::string & | name, |
|
|
ISvcLocator * | svcloc ) |
Service Constructor.
Flags to indicate override of run/event/time These are always true and are here for consistency with other event selectors which only optionally override these numbers.
Definition at line 203 of file McEventSelector.cxx.
203 :
204 base_class( name, svcloc),
206{
207
208 declareProperty(
"RunNumber",
m_runNo = 0 );
216
225
226}
Gaudi::CheckedProperty< uint32_t > m_runNo
Gaudi::CheckedProperty< uint64_t > m_eventsPerRun
Gaudi::Property< bool > m_overrideEventNumber
Gaudi::Property< uint32_t > m_timeStampInterval
Gaudi::CheckedProperty< uint32_t > m_initTimeStamp
Gaudi::CheckedProperty< uint32_t > m_firstLBNo
Gaudi::Property< bool > m_overrideTimeStamp
Gaudi::Property< bool > m_overrideRunNumber
Flags to indicate override of run/event/time These are always true and are here for consistency with ...
Gaudi::CheckedProperty< uint32_t > m_eventsPerLB
Gaudi::Property< bool > m_overrideLBNumber
Gaudi::CheckedProperty< uint64_t > m_firstEventNo
◆ ~McEventSelector()
| McEventSelector::~McEventSelector |
( |
| ) |
|
◆ createAddress()
| StatusCode McEventSelector::createAddress |
( |
const Context & | refCtxt, |
|
|
IOpaqueAddress *& | addr ) const |
|
overridevirtual |
Definition at line 373 of file McEventSelector.cxx.
374 {
375
377
378 const McContext* ctx = dynamic_cast<const McContext*>( &refCtxt );
379
380 if (ctx != 0) {
381 addr = new McAddress(EventInfo::classID(), "McEventInfo",
384 m_ctx =
const_cast<McContext*
> (ctx);
385 } else {
387 return StatusCode::FAILURE;
388 }
389
390 return StatusCode::SUCCESS;
391
392}
uint64_t eventNumber() const
unsigned int runNumber() const
unsigned int timeStamp() const
unsigned int lumiBlock() const
◆ createContext()
| StatusCode McEventSelector::createContext |
( |
Context *& | refpCtxt | ) |
const |
|
overridevirtual |
Definition at line 233 of file McEventSelector.cxx.
234{
235 McContext* ctx = new McContext(this,
243 );
244 refpCtxt = ctx;
245
247
248 return StatusCode::SUCCESS;
249}
◆ curEvent()
| int McEventSelector::curEvent |
( |
const Context & | refCtxt | ) |
const |
|
overridevirtual |
◆ initialize()
| StatusCode McEventSelector::initialize |
( |
| ) |
|
|
overridevirtual |
◆ last()
| StatusCode McEventSelector::last |
( |
Context & | refContext | ) |
const |
|
overridevirtual |
◆ next() [1/2]
| StatusCode McEventSelector::next |
( |
Context & | refCtxt | ) |
const |
|
overridevirtual |
Definition at line 271 of file McEventSelector.cxx.
271 {
273
274 McContext*
ct =
dynamic_cast<McContext*
>(&ctxt);
276
277 if (ct != 0 ) {
279 sc = StatusCode::SUCCESS;
280 } else {
282 }
283
285
287
288}
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ next() [2/2]
| StatusCode McEventSelector::next |
( |
Context & | refCtxt, |
|
|
int | jump ) const |
|
overridevirtual |
Definition at line 290 of file McEventSelector.cxx.
291{
292 ATH_MSG_DEBUG (
"............. Next (" << jump <<
") .............");
293
294 if ( jump > 0 ) {
295 for (
int i = 0;
i < jump; ++
i ) {
297 if ( !
status.isSuccess() ) {
299 }
300 }
301 return StatusCode::SUCCESS;
302 }
303 return StatusCode::FAILURE;
304}
virtual StatusCode next(Context &refCtxt) const override
◆ previous() [1/2]
| StatusCode McEventSelector::previous |
( |
Context & | refCtxt | ) |
const |
|
overridevirtual |
Definition at line 309 of file McEventSelector.cxx.
309 {
311
312 McContext*
ct =
dynamic_cast<McContext*
>(&ctxt);
313
315
316 if (ct != 0 ) {
318 sc = StatusCode::SUCCESS;
319 } else {
321 }
322
324
326
327}
◆ previous() [2/2]
| StatusCode McEventSelector::previous |
( |
Context & | refCtxt, |
|
|
int | jump ) const |
|
overridevirtual |
Definition at line 330 of file McEventSelector.cxx.
331{
332 if ( jump > 0 ) {
333 for (
int i = 0;
i < jump; ++
i ) {
335 if ( !
status.isSuccess() ) {
337 }
338 }
339 return StatusCode::SUCCESS;
340 }
341 return StatusCode::FAILURE;
342}
virtual StatusCode previous(Context &refCtxt) const override
◆ releaseContext()
| StatusCode McEventSelector::releaseContext |
( |
Context *& | refCtxt | ) |
const |
|
overridevirtual |
◆ resetCriteria()
| StatusCode McEventSelector::resetCriteria |
( |
const std::string & | cr, |
|
|
Context & | c ) const |
|
overridevirtual |
Definition at line 403 of file McEventSelector.cxx.
403 {
404
405 ATH_MSG_ERROR (
"............. resetCriteria Not Implemented .............");
406 return StatusCode::FAILURE;
407
408}
◆ rewind()
| StatusCode McEventSelector::rewind |
( |
Context & | refCtxt | ) |
const |
|
overridevirtual |
Definition at line 352 of file McEventSelector.cxx.
353{
355
356 McContext*
ct =
dynamic_cast<McContext*
>(&ctxt);
358
359 if (ct != 0 ) {
361 sc = StatusCode::SUCCESS;
362 } else {
364 }
365
368
369}
◆ seek()
| StatusCode McEventSelector::seek |
( |
Context & | refCtxt, |
|
|
int | evtNum ) const |
|
overridevirtual |
Definition at line 411 of file McEventSelector.cxx.
411 {
412
413 ATH_MSG_DEBUG (
"............. seek(" << evtNum <<
") .............");
414
416
417 for (
int i=0;
i < evtNum; ++
i) {
419 }
420
421 return StatusCode::SUCCESS;
422}
◆ size()
| int McEventSelector::size |
( |
Context & | refCtxt | ) |
const |
|
overridevirtual |
◆ stop()
| StatusCode McEventSelector::stop |
( |
| ) |
|
|
overridevirtual |
Definition at line 256 of file McEventSelector.cxx.
256 {
258
259 ServiceHandle<IIncidentSvc> incSvc(
"IncidentSvc",
name());
261
262 Incident lastInputIncident(
name(),
"LastInput");
263 incSvc->fireIncident(lastInputIncident);
264
265 return StatusCode::SUCCESS;
266}
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ m_ctx
◆ m_eventsPerLB
| Gaudi::CheckedProperty<uint32_t> McEventSelector::m_eventsPerLB |
|
private |
◆ m_eventsPerRun
| Gaudi::CheckedProperty<uint64_t> McEventSelector::m_eventsPerRun |
|
private |
◆ m_firstEventNo
| Gaudi::CheckedProperty<uint64_t> McEventSelector::m_firstEventNo |
|
private |
◆ m_firstLBNo
| Gaudi::CheckedProperty<uint32_t> McEventSelector::m_firstLBNo |
|
private |
◆ m_initTimeStamp
| Gaudi::CheckedProperty<uint32_t> McEventSelector::m_initTimeStamp |
|
private |
◆ m_overrideEventNumber
| Gaudi::Property<bool> McEventSelector::m_overrideEventNumber |
|
private |
◆ m_overrideLBNumber
| Gaudi::Property<bool> McEventSelector::m_overrideLBNumber |
|
private |
◆ m_overrideRunNumber
| Gaudi::Property<bool> McEventSelector::m_overrideRunNumber |
|
private |
Flags to indicate override of run/event/time These are always true and are here for consistency with other event selectors which only optionally override these numbers.
Definition at line 88 of file McEventSelector.h.
◆ m_overrideTimeStamp
| Gaudi::Property<bool> McEventSelector::m_overrideTimeStamp |
|
private |
◆ m_runNo
| Gaudi::CheckedProperty<uint32_t> McEventSelector::m_runNo |
|
private |
◆ m_timeStampInterval
| Gaudi::Property<uint32_t> McEventSelector::m_timeStampInterval |
|
private |
The documentation for this class was generated from the following files: