ATLAS Offline Software
Loading...
Searching...
No Matches
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
10
13#include "CLHEP/Vector/LorentzVector.h"
14#include "GaudiKernel/SystemOfUnits.h"
15#include "GaudiKernel/ToolHandle.h"
17
18#include <unordered_set>
19
20
29public:
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();
38
39 CLHEP::HepLorentzVector sumDaughterNeutrinos( const xAOD::TruthParticle* tau );
40
41private:
43 {this,"xAODTruthParticleContainerName","TruthParticles","Name of Truth Particle container"};
44
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
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
xAODTruthParticleSlimmerTau(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
virtual StatusCode execute()
Function executing the algorithm.
BooleanProperty m_forceRerun
a flag to force rerunning (useful for rerunning on ESDs)
virtual StatusCode initialize()
Function initialising the algorithm.
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_xaodTruthParticleContainerName
SG::WriteHandleKey< xAOD::TruthParticleContainer > m_xaodTruthTauParticleContainerName
The key for the output xAOD truth containers.
PublicToolHandle< IMCTruthClassifier > m_classifier
CLHEP::HepLorentzVector sumDaughterNeutrinos(const xAOD::TruthParticle *tau)
DoubleProperty m_tau_pt_selection
Selection values for keeping taus and leptons.
TruthParticle_v1 TruthParticle
Typedef to implementation.