ATLAS Offline Software
Control
PileUpMT
src
SkipEventIdxSvc.h
Go to the documentation of this file.
1
/* -*- C++ -*- */
2
/*
3
* Copyright (C) 2023 CERN for the benefit of the ATLAS collaboration.
4
*/
5
#ifndef PILEUPMT_SKIPEVENTIDXSVC_H
6
#define PILEUPMT_SKIPEVENTIDXSVC_H
7
8
#include <fmt/format.h>
9
10
#include "
AthenaBaseComps/AthService.h
"
11
#include "
ISkipEventIdxSvc.h
"
12
13
class
SkipEventIdxSvc
14
:
public
extends<AthService, IIncidentListener, ISkipEventIdxSvc> {
15
public
:
16
SkipEventIdxSvc
(
const
std::string&
name
, ISvcLocator*
svc
);
17
~SkipEventIdxSvc
()
override
=
default
;
18
19
StatusCode
initialize
()
override
;
20
StatusCode
start
()
override
;
21
StatusCode
registerCallback
(
22
std::function<
StatusCode
(EvtIter, EvtIter)>&&
callback
)
override
;
23
void
handle
(
const
Incident& inc)
override
;
24
25
private
:
26
int
m_initial_skip_events
{};
27
std::vector<EvtId>
m_events
{};
28
std::vector<std::function<
StatusCode
(EvtIter, EvtIter)>>
m_callbacks
{};
29
bool
m_started
=
false
;
30
};
31
32
#endif // PILEUPMT_SKIPEVENTIDXSVC_H
ISkipEventIdxSvc.h
runLayerRecalibration.callback
callback
Definition:
runLayerRecalibration.py:64
SkipEventIdxSvc::~SkipEventIdxSvc
~SkipEventIdxSvc() override=default
SkipEventIdxSvc::m_initial_skip_events
int m_initial_skip_events
Definition:
SkipEventIdxSvc.h:26
SkipEventIdxSvc
Definition:
SkipEventIdxSvc.h:14
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SkipEventIdxSvc::handle
void handle(const Incident &inc) override
Definition:
SkipEventIdxSvc.cxx:225
SkipEventIdxSvc::start
StatusCode start() override
Definition:
SkipEventIdxSvc.cxx:199
SkipEventIdxSvc::m_callbacks
std::vector< std::function< StatusCode(EvtIter, EvtIter)> > m_callbacks
Definition:
SkipEventIdxSvc.h:28
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition:
AthROOTErrorHandlerSvc.cxx:10
SkipEventIdxSvc::SkipEventIdxSvc
SkipEventIdxSvc(const std::string &name, ISvcLocator *svc)
Definition:
SkipEventIdxSvc.cxx:54
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
SkipEventIdxSvc::initialize
StatusCode initialize() override
Definition:
SkipEventIdxSvc.cxx:57
SkipEventIdxSvc::registerCallback
StatusCode registerCallback(std::function< StatusCode(EvtIter, EvtIter)> &&callback) override
Definition:
SkipEventIdxSvc.cxx:211
SkipEventIdxSvc::m_events
std::vector< EvtId > m_events
Definition:
SkipEventIdxSvc.h:27
AthService.h
SkipEventIdxSvc::m_started
bool m_started
Definition:
SkipEventIdxSvc.h:29
Generated on Thu Nov 7 2024 21:26:21 for ATLAS Offline Software by
1.8.18