Skip to content
Snippets Groups Projects

Follow Rec!2977

Merged Christoph Hasse requested to merge follow_Rec_2977 into master
All threads resolved!
2 files
+ 12
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -50,6 +50,7 @@
// ThOr functor
#include "Functors/FunctorDesc.h"
#include "Functors/IFactory.h"
#include "Functors/Optional.h"
// DetDesc
#include "DetDesc/ConditionAccessor.h"
@@ -335,7 +336,7 @@ namespace LHCb {
return StatusCode::SUCCESS;
}
// make a map of type_index and function that calls fill function for all T and optional<T>
// make a map of type_index and function that calls fill function for all T and Functors::Optional<T>
template <typename... T>
auto make_map() {
using Fun = StatusCode ( * )( const Tuples::Tuple&, const std::string&, const std::any& );
@@ -357,7 +358,7 @@ namespace LHCb {
} );
};
};
( add_if_invalid_exists( std::optional<T>{} ), ... );
( add_if_invalid_exists( Functors::Optional<T>{} ), ... );
// add map entry of type_index (std::map<std::string, T>) -> fill function
auto add_map_val = [&m]( auto map ) {
@@ -1158,4 +1159,4 @@ void FunTupleBase<T>::update_counters( const unsigned int& field_indx, const uns
DECLARE_COMPONENT_WITH_ID( FunTupleBase<LHCb::Particle::Range>, "FunTupleBase_Particles" )
DECLARE_COMPONENT_WITH_ID( FunTupleBase<LHCb::MCParticles>, "FunTupleBase_MCParticles" )
DECLARE_COMPONENT_WITH_ID( FunTupleBase<LHCb::Event::Composites>, "FunTupleBase_Composites" )
DECLARE_COMPONENT_WITH_ID( FunTupleBase<LHCb::Event::ChargedBasics>, "FunTupleBase_ChargedBasics" )
\ No newline at end of file
DECLARE_COMPONENT_WITH_ID( FunTupleBase<LHCb::Event::ChargedBasics>, "FunTupleBase_ChargedBasics" )
Loading