29 (
const std::string&
type,
30 const std::string& name,
31 const IInterface* parent)
45 return StatusCode::SUCCESS;
66 for (
size_t i = 0; i <
sz; i++) {
69 if(n_children==0) pdgid_child1 = child->
pdgId();
70 if(n_children==1) pdgid_child2 = child->
pdgId();
75 if (n_children == 2 &&
76 ((std::abs(pdgid_child1)==11 && pdgid_child2==22) ||
77 (std::abs(pdgid_child2)==11 && pdgid_child1==22)))
82 return StatusCode::SUCCESS;
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
TruthParticleBremFillerTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
virtual StatusCode fill(const xAOD::TruthParticle &p) override
Fill one block — type-safe version.
virtual StatusCode book() final
Book variables for this block.
bool * m_hasHardBrem
Variable: Does this particle have a brem?
(HepMC) Monte Carlo particle.
int pdgId() const
PDG ID code.
const TruthParticle_v1 * outgoingParticle(size_t index) const
Get one of the outgoing particles.
size_t nOutgoingParticles() const
Get the number of outgoing particles.
Block filler tool for noisy FEB information.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
TruthVertex_v1 TruthVertex
Typedef to implementation.
TruthParticle_v1 TruthParticle
Typedef to implementation.