#include <ParticleLevelElectronObjectSelector.h>
◆ ParticleLevelElectronObjectSelector()
top::ParticleLevelElectronObjectSelector::ParticleLevelElectronObjectSelector |
( |
Options |
cuts = Options() | ) |
|
◆ apply()
Implements top::ObjectSelectorBase< xAOD::TruthParticle >.
Definition at line 20 of file ParticleLevelElectronObjectSelector.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(
"ParticleLevelElectronObjectSelector::apply: "
32 "Could not obtain MCTruthClassifier result decoration.");
47 if (not truthProxy.isValid()) {
48 throw std::runtime_error(
"ParticleLevelElectronObjectSelector::apply: "
49 "Could not obtain 'originalTruthParticle' reference.");
◆ m_opt
Options top::ParticleLevelElectronObjectSelector::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.