13 typedef std::map<std::string,double> MAP ;
15 template <
unsigned int N>
16 inline MAP::const_iterator find
18 const std::string (&keys)[
N] )
20 for (
unsigned int i = 0 ;
i <
N ; ++
i )
22 MAP::const_iterator found = m.find ( keys[
i] ) ;
23 if ( m.end() != found ) {
return found ; }
28 const std::string s_X[] = {
"x" ,
"X" ,
"px" ,
"pX" ,
"Px" ,
"PX" } ;
29 const std::string s_Y[] = {
"y" ,
"Y" ,
"py" ,
"pY" ,
"Py" ,
"PY" } ;
30 const std::string s_Z[] = {
"z" ,
"Z" ,
"pz" ,
"pZ" ,
"Pz" ,
"PZ" } ;
31 const std::string s_E[] = {
"t" ,
"T" ,
"e" ,
"E" } ;
35 namespace Gaudi {
namespace Parsers {
36 template<
typename T1,
typename T2>
42 if (qi::phrase_parse( iter,
end, g, skipper, result)){
51 const std::string& input ) {
52 return parse_(result, input);
65 const std::string& input )
76 return parse_(result, input);
88 ( std::vector<Gaudi::XYZPoint>& result ,
89 const std::string& input )
92 return parse_(result, input);
103 ( std::vector<Gaudi::XYZVector>& result ,
104 const std::string& input )
107 return parse_(result, input);
120 ( std::vector<Gaudi::LorentzVector>& result ,
121 const std::string& input )
123 return parse_(result, input);
StatusCode parse_(ResultT &result, const std::string &input)
StatusCode parse(GaudiUtils::HashMap< K, V > &result, const std::string &input)
Basic parser for the types of HashMap used in DODBasicMapper.
bool isFailure() const
Test for a status code of FAILURE.
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
boost::spirit::position_iterator< string::const_iterator > IteratorT
the actual type of position iterator
This class is used for returning status codes from appropriate routines.
Skipping spaces and comments.
ROOT::Math::PxPyPzEVector LorentzVector
Cartesian 4 Vector.
implemenattiono fvarioud functions for streaming.
This is a number of static methods for bootstrapping the Gaudi framework.
Declaration of parsing functions for various ROOT::Math objects to allow their usage as properties fo...