17 typedef std::map<std::string, double> MAP;
19 template <
unsigned int N>
20 inline MAP::const_iterator find(
const MAP& m,
const std::string ( &keys )[N] ) {
21 for (
unsigned int i = 0; i <
N; ++i ) {
22 auto found =
m.find( keys[i] );
23 if (
m.end() != found ) {
return found; }
30 template <
typename T1,
typename T2>
34 IteratorT iter = input.begin(), end = input.end();
51 Gaudi::XYZPoint point;
66 StatusCode parse( std::vector<Gaudi::XYZPoint>& result, std::string_view input ) {
68 return parse_( result, input );
76 StatusCode parse( std::vector<Gaudi::XYZVector>& result, std::string_view input ) {
78 return parse_( result, input );
87 StatusCode parse( std::vector<Gaudi::LorentzVector>& result, std::string_view input ) {
88 return parse_( result, input );
93 return s << std::format(
"( {} , {} , {} )", obj.X(), obj.Y(), obj.Z() );
96 return s << std::format(
"( {} , {} , {} )", obj.X(), obj.Y(), obj.Z() );
99 return s << std::format(
"( {} , {} , {} , {} )", obj.Px(), obj.Py(), obj.Pz(), obj.E() );
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...