ATLAS Offline Software
Trigger
EFTracking
FPGATrackSim
FPGATrackSimConfTools
FPGATrackSimConfTools
FPGATrackSimEventSelectionTool.h
Go to the documentation of this file.
1
// Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3
#ifndef FPGATRACKSIMEVENTSELECTIONTOOL_H
4
#define FPGATRACKSIMEVENTSELECTIONTOOL_H
5
6
#include "
AthenaBaseComps/AthAlgTool.h
"
7
#include "
xAODTruth/TruthParticle.h
"
8
#include "
GeneratorObjects/HepMcParticleLink.h
"
9
#include "
GeneratorObjects/xAODTruthParticleLink.h
"
10
11
#include "
FPGATrackSimConfTools/IFPGATrackSimEventSelectionSvc.h
"
12
#include "
FPGATrackSimObjects/FPGATrackSimTruthTrackCollection.h
"
13
14
15
namespace
FPGATrackSim
{
16
class
FPGATrackSimEventSelectionTool
:
public
AthAlgTool
{
17
private
:
18
// Handles
19
ServiceHandle<IFPGATrackSimEventSelectionSvc>
m_evtSel
{
this
,
"evtSelectionService"
,
""
,
"Event selection Svc"
};
20
21
public
:
22
FPGATrackSimEventSelectionTool
(
const
std::string&,
const
std::string&,
const
IInterface*);
23
virtual
~FPGATrackSimEventSelectionTool
() =
default
;
24
25
virtual
StatusCode
initialize
()
override
;
26
27
bool
selectEvent
(
const
FPGATrackSimEventInputHeader
&
header
)
const
;
28
void
setSelectedEvent
(
bool
s
) {
m_evtSel
->setSelectedEvent(
s
); }
29
unsigned
getRegionID
()
const
{
return
m_evtSel
->getRegionID(); }
30
};
31
}
32
#endif
HepMcParticleLink.h
header
Definition:
hcg.cxx:526
FPGATrackSim::FPGATrackSimEventSelectionTool::FPGATrackSimEventSelectionTool
FPGATrackSimEventSelectionTool(const std::string &, const std::string &, const IInterface *)
Definition:
FPGATrackSimEventSelectionTool.cxx:5
FPGATrackSim::FPGATrackSimEventSelectionTool::initialize
virtual StatusCode initialize() override
Definition:
FPGATrackSimEventSelectionTool.cxx:9
FPGATrackSim::FPGATrackSimEventSelectionTool::~FPGATrackSimEventSelectionTool
virtual ~FPGATrackSimEventSelectionTool()=default
FPGATrackSim::FPGATrackSimEventSelectionTool::m_evtSel
ServiceHandle< IFPGATrackSimEventSelectionSvc > m_evtSel
Definition:
FPGATrackSimEventSelectionTool.h:19
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
FPGATrackSim::FPGATrackSimEventSelectionTool::setSelectedEvent
void setSelectedEvent(bool s)
Definition:
FPGATrackSimEventSelectionTool.h:28
FPGATrackSimEventInputHeader
Definition:
FPGATrackSimEventInputHeader.h:22
xAODTruthParticleLink.h
FPGATrackSim
Definition:
FPGATrackSimRegionMergingAlg.h:25
FPGATrackSimTruthTrackCollection.h
IFPGATrackSimEventSelectionSvc.h
FPGATrackSim::FPGATrackSimEventSelectionTool
Definition:
FPGATrackSimEventSelectionTool.h:16
python.SystemOfUnits.s
float s
Definition:
SystemOfUnits.py:147
AthAlgTool
Definition:
AthAlgTool.h:26
TruthParticle.h
FPGATrackSim::FPGATrackSimEventSelectionTool::selectEvent
bool selectEvent(const FPGATrackSimEventInputHeader &header) const
Definition:
FPGATrackSimEventSelectionTool.cxx:17
FPGATrackSim::FPGATrackSimEventSelectionTool::getRegionID
unsigned getRegionID() const
Definition:
FPGATrackSimEventSelectionTool.h:29
ServiceHandle< IFPGATrackSimEventSelectionSvc >
Generated on Tue Sep 2 2025 21:11:37 for ATLAS Offline Software by
1.8.18