ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
GeneratorFilters
GeneratorFilters
xAODTruthParticleSlimmerTau.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_XAODTRUTHPARTICLESLIMMERTAU_H
6
#define GENERATORFILTERS_XAODTRUTHPARTICLESLIMMERTAU_H
7
8
#include "
AthenaBaseComps/AthAlgorithm.h
"
9
#include "
AthenaBaseComps/AthAlgTool.h
"
10
11
#include "
xAODTruth/TruthParticle.h
"
12
#include "
xAODTruth/TruthMetaDataContainer.h
"
13
#include "CLHEP/Vector/LorentzVector.h"
14
#include "GaudiKernel/SystemOfUnits.h"
15
#include "GaudiKernel/ToolHandle.h"
16
#include "
MCTruthClassifier/IMCTruthClassifier.h
"
17
18
#include <unordered_set>
19
20
28
class
xAODTruthParticleSlimmerTau
:
public
AthAlgorithm
{
29
public
:
30
32
xAODTruthParticleSlimmerTau
(
const
std::string& name, ISvcLocator* svcLoc );
33
// xAODTruthParticleSlimmerTau( const std::string& t, const std::string& n, const IInterface* p);
35
virtual
StatusCode
initialize
();
37
virtual
StatusCode
execute
(
const
EventContext& ctx);
38
39
CLHEP::HepLorentzVector
sumDaughterNeutrinos
(
const
xAOD::TruthParticle
* tau );
40
41
private
:
42
SG::ReadHandleKey<xAOD::TruthParticleContainer>
m_xaodTruthParticleContainerName
43
{
this
,
"xAODTruthParticleContainerName"
,
"TruthParticles"
,
"Name of Truth Particle container"
};
44
45
SG::WriteHandleKey<xAOD::TruthParticleContainer>
m_xaodTruthTauParticleContainerName
46
{
this
,
"xAODTruthTauParticleContainerName"
,
"TruthTaus"
,
"Name of Truth Taus contatiner from the slimmer"
};
47
49
DoubleProperty
m_tau_pt_selection
{
this
,
"tau_pt_selection"
, 0.001 * Gaudi::Units::GeV};
//in GeV
50
DoubleProperty
m_abseta_selection
{
this
,
"abseta_selection"
, 10.};
51
53
BooleanProperty
m_forceRerun
{
this
,
"ForceRerun"
,
false
};
54
55
PublicToolHandle<IMCTruthClassifier>
m_classifier
{
this
,
"MCTruthClassifier"
,
"MCTruthClassifier/MCTruthClassifier"
};
56
57
};
// class xAODTruthParticleSlimmerTau
58
59
60
61
#endif
// GENERATORFILTERS_XAODTRUTHPARTICLESLIMMERTAU_H
AthAlgTool.h
AthAlgorithm.h
TruthParticle.h
IMCTruthClassifier.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
xAODTruthParticleSlimmerTau::xAODTruthParticleSlimmerTau
xAODTruthParticleSlimmerTau(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
Definition
xAODTruthParticleSlimmerTau.cxx:27
xAODTruthParticleSlimmerTau::m_forceRerun
BooleanProperty m_forceRerun
a flag to force rerunning (useful for rerunning on ESDs)
Definition
xAODTruthParticleSlimmerTau.h:53
xAODTruthParticleSlimmerTau::initialize
virtual StatusCode initialize()
Function initialising the algorithm.
Definition
xAODTruthParticleSlimmerTau.cxx:32
xAODTruthParticleSlimmerTau::m_xaodTruthParticleContainerName
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_xaodTruthParticleContainerName
Definition
xAODTruthParticleSlimmerTau.h:43
xAODTruthParticleSlimmerTau::m_xaodTruthTauParticleContainerName
SG::WriteHandleKey< xAOD::TruthParticleContainer > m_xaodTruthTauParticleContainerName
The key for the output xAOD truth containers.
Definition
xAODTruthParticleSlimmerTau.h:46
xAODTruthParticleSlimmerTau::m_classifier
PublicToolHandle< IMCTruthClassifier > m_classifier
Definition
xAODTruthParticleSlimmerTau.h:55
xAODTruthParticleSlimmerTau::m_abseta_selection
DoubleProperty m_abseta_selection
Definition
xAODTruthParticleSlimmerTau.h:50
xAODTruthParticleSlimmerTau::execute
virtual StatusCode execute(const EventContext &ctx)
Function executing the algorithm.
Definition
xAODTruthParticleSlimmerTau.cxx:61
xAODTruthParticleSlimmerTau::sumDaughterNeutrinos
CLHEP::HepLorentzVector sumDaughterNeutrinos(const xAOD::TruthParticle *tau)
Definition
xAODTruthParticleSlimmerTau.cxx:42
xAODTruthParticleSlimmerTau::m_tau_pt_selection
DoubleProperty m_tau_pt_selection
Selection values for keeping taus and leptons.
Definition
xAODTruthParticleSlimmerTau.h:49
xAOD::TruthParticle
TruthParticle_v1 TruthParticle
Typedef to implementation.
Definition
Event/xAOD/xAODTruth/xAODTruth/TruthParticle.h:15
Generated on
for ATLAS Offline Software by
1.17.0