16 typedef std::map<std::string, double> MAP;
18 template <
unsigned int N>
19 inline MAP::const_iterator find(
const MAP& m,
const std::string ( &keys )[N] ) {
20 for (
unsigned int i = 0; i <
N; ++i ) {
21 auto found =
m.find( keys[i] );
22 if (
m.end() != found ) {
return found; }
29 template <
typename T1,
typename T2>
33 IteratorT iter = input.begin(), end = input.end();
50 Gaudi::XYZPoint point;
65 StatusCode parse( std::vector<Gaudi::XYZPoint>& result, std::string_view input ) {
67 return parse_( result, input );
75 StatusCode parse( std::vector<Gaudi::XYZVector>& result, std::string_view input ) {
77 return parse_( result, input );
86 StatusCode parse( std::vector<Gaudi::LorentzVector>& result, std::string_view input ) {
87 return parse_( result, input );
std::ostream & toStream(const DataObjID &d, std::ostream &os)
implementation of various functions for streaming.
Declaration of parsing functions for various ROOT::Math objects to allow their usage as properties fo...
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
SkipperGrammar< IteratorT > Skipper
StatusCode parse(GaudiUtils::HashMap< K, V > &result, std::string_view input)
Basic parser for the types of HashMap used in DODBasicMapper.
std::string_view::const_iterator IteratorT
StatusCode parse_(ResultT &result, std::string_view input)
std::ostream & toStream(ITERATOR first, ITERATOR last, std::ostream &s, const std::string &open, const std::string &close, const std::string &delim)
the helper function to print the sequence
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...