Skip to content
Snippets Groups Projects

Followup to !3091: Streamline new decay finder implementation

Merged Gerhard Raven requested to merge decayfinder into master
Files
7
@@ -18,25 +18,23 @@
@@ -18,25 +18,23 @@
#include <string>
#include <string>
#include <vector>
#include <vector>
namespace finder {
struct GAUDI_API IDecayFinder : extend_interfaces<IAlgTool> {
 
// interface machinery
 
DeclareInterfaceID( IDecayFinder, 4, 0 );
 
template <class PARTICLE>
template <class PARTICLE>
using vec_ptr = std::vector<const PARTICLE*>;
using vec_ptr = std::vector<const PARTICLE*>;
using vec_ptrv1 = vec_ptr<LHCb::Particle>;
using vec_ptrv1 = vec_ptr<LHCb::Particle>;
using vec_ptrv1mc = vec_ptr<LHCb::MCParticle>;
using vec_ptrv1mc = vec_ptr<LHCb::MCParticle>;
} // namespace finder
struct GAUDI_API IDecayFinder : extend_interfaces<IAlgTool> {
// interface machinery
DeclareInterfaceID( IDecayFinder, 4, 0 );
/// find decays for Particles
/// find decays for Particles
virtual StatusCode findDecay( const std::string& decay_descriptor, const finder::vec_ptrv1& input_parts,
virtual StatusCode findDecay( const std::string& decay_descriptor, const vec_ptrv1& input_parts,
finder::vec_ptrv1& out_parts ) const = 0;
vec_ptrv1& out_parts ) const = 0;
/// find decays for MCParticles
/// find decays for MCParticles
// Note: The arrows do NOT mean anything currently for MCParticles
// Note: The arrows do NOT mean anything currently for MCParticles
virtual StatusCode findDecay( const std::string& decay_descriptor, const finder::vec_ptrv1mc& input_parts,
virtual StatusCode findDecay( const std::string& decay_descriptor, const vec_ptrv1mc& input_parts,
finder::vec_ptrv1mc& out_parts ) const = 0;
vec_ptrv1mc& out_parts ) const = 0;
// TODO: add here v2 variant type of composite and charged basic
// TODO: add here v2 variant type of composite and charged basic
@@ -47,4 +45,4 @@ struct GAUDI_API IDecayFinder : extend_interfaces<IAlgTool> {
@@ -47,4 +45,4 @@ struct GAUDI_API IDecayFinder : extend_interfaces<IAlgTool> {
virtual std::vector<std::string> getDescriptorPossibilities( const std::string& decay_descriptor ) const = 0;
virtual std::vector<std::string> getDescriptorPossibilities( const std::string& decay_descriptor ) const = 0;
};
};
#endif // KERNEL_IDECAYFINDER_H
#endif // KERNEL_IDECAYFINDER_H
\ No newline at end of file
Loading