ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
GeneratorFilters
GeneratorFilters
xAODTruthParticleSlimmerElectron.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef GENERATORFILTERS_XAODTRUTHPARTICLESLIMMERELECTRON_H
6
#define GENERATORFILTERS_XAODTRUTHPARTICLESLIMMERELECTRON_H
7
8
#include "
AthenaBaseComps/AthAlgorithm.h
"
9
#include "
AthenaBaseComps/AthAlgTool.h
"
10
#include "
xAODTruth/TruthParticle.h
"
11
#include "
xAODTruth/TruthEvent.h
"
12
#include "
xAODTruth/TruthEventContainer.h
"
13
#include "
xAODTruth/TruthMetaDataContainer.h
"
14
#include "GaudiKernel/SystemOfUnits.h"
15
23
class
xAODTruthParticleSlimmerElectron
:
public
AthAlgorithm
24
{
25
public
:
27
xAODTruthParticleSlimmerElectron
(
const
std::string &name, ISvcLocator *svcLoc);
29
virtual
StatusCode
initialize
();
31
virtual
StatusCode
execute
(
const
EventContext& ctx);
32
33
private
:
34
SG::ReadHandleKey<xAOD::TruthEventContainer>
m_xaodTruthEventContainerName
35
{
this
,
"xAODTruthEventContainerName"
,
"TruthEvents"
};
36
37
SG::WriteHandleKey<xAOD::TruthParticleContainer>
m_xaodTruthParticleContainerNameElectron
38
{
this
,
"xAODTruthParticleContainerNameElectron"
,
"TruthElectrons"
,
"Name of Truth Electrons contatiner from the slimmer"
};
39
41
DoubleProperty
m_el_pt_selection
{
this
,
"el_pt_selection"
, 1. * Gaudi::Units::GeV};
//in GeV
42
DoubleProperty
m_abseta_selection
{
this
,
"abseta_selection"
, 5.};
43
44
};
// class xAODTruthParticleSlimmerElectron
45
46
#endif
//GENERATORFILTERS_XAODTRUTHPARTICLESLIMMERELECTRON_H
AthAlgTool.h
AthAlgorithm.h
TruthParticle.h
TruthEventContainer.h
TruthEvent.h
TruthMetaDataContainer.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
xAODTruthParticleSlimmerElectron::m_xaodTruthEventContainerName
SG::ReadHandleKey< xAOD::TruthEventContainer > m_xaodTruthEventContainerName
Definition
xAODTruthParticleSlimmerElectron.h:35
xAODTruthParticleSlimmerElectron::m_el_pt_selection
DoubleProperty m_el_pt_selection
Selection values for keeping taus and leptons.
Definition
xAODTruthParticleSlimmerElectron.h:41
xAODTruthParticleSlimmerElectron::m_xaodTruthParticleContainerNameElectron
SG::WriteHandleKey< xAOD::TruthParticleContainer > m_xaodTruthParticleContainerNameElectron
The key for the output xAOD truth containers.
Definition
xAODTruthParticleSlimmerElectron.h:38
xAODTruthParticleSlimmerElectron::xAODTruthParticleSlimmerElectron
xAODTruthParticleSlimmerElectron(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
Definition
xAODTruthParticleSlimmerElectron.cxx:21
xAODTruthParticleSlimmerElectron::execute
virtual StatusCode execute(const EventContext &ctx)
Function executing the algorithm.
Definition
xAODTruthParticleSlimmerElectron.cxx:35
xAODTruthParticleSlimmerElectron::m_abseta_selection
DoubleProperty m_abseta_selection
Definition
xAODTruthParticleSlimmerElectron.h:42
xAODTruthParticleSlimmerElectron::initialize
virtual StatusCode initialize()
Function initialising the algorithm.
Definition
xAODTruthParticleSlimmerElectron.cxx:26
Generated on
for ATLAS Offline Software by
1.17.0