#include <ParticleLevelMuonObjectSelector.h>
◆ ParticleLevelMuonObjectSelector()
top::ParticleLevelMuonObjectSelector::ParticleLevelMuonObjectSelector |
( |
Options |
opt = Options() | ) |
|
◆ apply()
Implements top::ObjectSelectorBase< xAOD::TruthParticle >.
Definition at line 20 of file ParticleLevelMuonObjectSelector.cxx.
26 if (truthParticle.
isAvailable<
unsigned int>(
"particleType")) {
27 type = truthParticle.
auxdata<
unsigned int>(
"particleType");
28 }
else if (truthParticle.
isAvailable<
unsigned int>(
"classifierParticleType")) {
29 type = truthParticle.
auxdata<
unsigned int>(
"classifierParticleType");
31 throw std::runtime_error(
"ParticleLevelMuonObjectSelector::apply: "
32 "Could not obtain MCTruthClassifier result decoration.");
47 if (not truthProxy.isValid()) {
48 throw std::runtime_error(
"ParticleLevelMuonObjectSelector::apply: "
49 "Could not obtain 'originalTruthParticle' reference.");
◆ m_opt
Options top::ParticleLevelMuonObjectSelector::m_opt |
|
private |
The documentation for this class was generated from the following files:
bool isAvailable(const std::string &name, const std::string &clsname="") const
Check if a user property is available for reading or not.
T & auxdata(const std::string &name, const std::string &clsname="")
Fetch an aux data variable, as a non-const reference.