![]() |
![]() |
DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep
Rev:Unversioneddirectory
|
Namespace for the AIDA detector for utilities using boost::spirit parsers. More...
Functions | |
| int | parse (Property &result, const std::string &input) |
| int | parse (std::vector< std::pair< double, double > > &result, const std::string &input) |
parse the bool value More... | |
| int | parse (std::vector< std::pair< int, int > > &result, const std::string &input) |
parse the std::vector<std::pair<int,int> > value More... | |
| int | parse (std::vector< std::vector< std::string > > &result, const std::string &input) |
parse the std::vector<std::vector<std::string> > value More... | |
| int | parse (std::vector< std::vector< double > > &result, const std::string &input) |
parse the std::vector<std::vector<double> > value More... | |
| int | parse (std::map< int, int > &result, const std::string &input) |
parse the std::map<int , int> value More... | |
| int | parse (std::map< int, double > &result, const std::string &input) |
parse the std::map<int , double> value More... | |
| int | parse (std::map< std::string, std::string > &result, const std::string &input) |
parse the std::map<std::string , std::string> value More... | |
| int | parse (std::map< std::string, int > &result, const std::string &input) |
parse the std::map<std::string , int> value More... | |
| int | parse (std::map< std::string, double > &result, const std::string &input) |
parse the std::map<std::string , double> value More... | |
| int | parse (std::map< std::string, std::vector< std::string > > &result, const std::string &input) |
parse the std::map<std::string , std::vector<std::string> > value More... | |
| int | parse (std::map< std::string, std::vector< int > > &result, const std::string &input) |
parse the std::map<std::string , std::vector<int> > value More... | |
| int | parse (std::map< std::string, std::vector< double > > &result, const std::string &input) |
parse the std::map<std::string , std::vector<double> > value More... | |
| int | parse (std::map< int, std::string > &result, const std::string &input) |
parse the std::map<int,std::string> > objects More... | |
| int | parse (std::string &name, std::string &value, const std::string &input) |
parse the std::map<unsigned int,std::string> > objects More... | |
| int | parse (std::map< std::string, std::pair< double, double > > ¶ms, const std::string &input) |
| helper function, needed for implementation of map of pairs More... | |
| template<class T , unsigned int N> | |
| int | parse (T(&result)[N], const std::string &input) |
| parser function for C-arrays More... | |
| template<unsigned int N> | |
| int | parse (char(&result)[N], const std::string &input) |
| parser function for C-strings More... | |
| int | parse (ROOT::Math::XYZPoint &result, const std::string &input) |
| parse 3D-point More... | |
| int | parse (ROOT::Math::XYZVector &result, const std::string &input) |
| parse 3D-vector More... | |
| int | parse (ROOT::Math::PxPyPzEVector &result, const std::string &input) |
| parse PxPyPzEVector More... | |
Namespace for the AIDA detector for utilities using boost::spirit parsers.
| int DD4hep::Parsers::parse | ( | Property & | result, |
| const std::string & | input | ||
| ) |
Definition at line 220 of file ComponentProperties.cpp.
References DD4hep::Property::str().
Referenced by DD4hep::XML::DocumentHandler::create(), DD4hep::eval_container(), DD4hep::Grammar< TYPE >::fromString(), DD4hep::XML::DocumentHandler::parse(), and parse().
| int DD4hep::Parsers::parse | ( | std::vector< std::pair< double, double > > & | result, |
| const std::string & | input | ||
| ) |
parse the bool value
| result | (output) boolean result |
| input | (input) the string to be parsed |
char value | result | (output) boolean result |
| input | (input) the string to be parsed |
int value | result | (output) integer result |
| input | (input) the string to be parsed |
double value | result | (output) double result |
| input | (input) the string to be parsed |
std::string value| result | (output) string result |
| input | (input) the string to be parsed |
std::pair<double,double> value | result | (output) pair of doubles |
| input | (input) the string to be parsed |
std::pair<int,int> value| result | (output) pair of integers |
| input | (input) the string to be parsed |
std::vector<std::pair<double,double> > value | result | (output) vector with pairs of doubles |
| input | (input) the string to be parsed |
| int DD4hep::Parsers::parse | ( | std::vector< std::pair< int, int > > & | result, |
| const std::string & | input | ||
| ) |
parse the std::vector<std::pair<int,int> > value
| result | (output) vector with pairs of int |
| input | (input) the string to be parsed |
| int DD4hep::Parsers::parse | ( | std::vector< std::vector< std::string > > & | result, |
| const std::string & | input | ||
| ) |
parse the std::vector<std::vector<std::string> > value
| result | (output) vector with vectors of strings |
| input | (input) the string to be parsed |
| int DD4hep::Parsers::parse | ( | std::vector< std::vector< double > > & | result, |
| const std::string & | input | ||
| ) |
parse the std::vector<std::vector<double> > value
| result | (output) vector with vectors of doubles |
| input | (input) the string to be parsed |
| int DD4hep::Parsers::parse | ( | std::map< int, int > & | result, |
| const std::string & | input | ||
| ) |
parse the std::map<int , int> value
| result | (output) map with integer key and double value |
| input | (input) the string to be parsed |
| int DD4hep::Parsers::parse | ( | std::map< int, double > & | result, |
| const std::string & | input | ||
| ) |
parse the std::map<int , double> value
| result | (output) map with integer key and double value |
| input | (input) the string to be parsed |
| int DD4hep::Parsers::parse | ( | std::map< std::string, std::string > & | result, |
| const std::string & | input | ||
| ) |
parse the std::map<std::string , std::string> value
| result | (output) map with string key and value |
| input | (input) the string to be parsed |
| int DD4hep::Parsers::parse | ( | std::map< std::string, int > & | result, |
| const std::string & | input | ||
| ) |
parse the std::map<std::string , int> value
| result | (output) map with string key and integer value |
| input | (input) the string to be parsed |
| int DD4hep::Parsers::parse | ( | std::map< std::string, double > & | result, |
| const std::string & | input | ||
| ) |
parse the std::map<std::string , double> value
| result | (output) map with string key and integer value |
| input | (input) the string to be parsed |
| int DD4hep::Parsers::parse | ( | std::map< std::string, std::vector< std::string > > & | result, |
| const std::string & | input | ||
| ) |
parse the std::map<std::string , std::vector<std::string> > value
| result | (output) map with string value and vector of strings as value |
| input | (input) the string to be parsed |
| int DD4hep::Parsers::parse | ( | std::map< std::string, std::vector< int > > & | result, |
| const std::string & | input | ||
| ) |
parse the std::map<std::string , std::vector<int> > value
| result | (output) map with string value and vector of integers as value |
| input | (input) the string to be parsed |
| int DD4hep::Parsers::parse | ( | std::map< std::string, std::vector< double > > & | result, |
| const std::string & | input | ||
| ) |
parse the std::map<std::string , std::vector<double> > value
| result | (output) map with string value and vector of doubles as value |
| input | (input) the string to be parsed |
| int DD4hep::Parsers::parse | ( | std::map< int, std::string > & | result, |
| const std::string & | input | ||
| ) |
parse the std::map<int,std::string> > objects
| int DD4hep::Parsers::parse | ( | std::string & | name, |
| std::string & | value, | ||
| const std::string & | input | ||
| ) |
parse the std::map<unsigned int,std::string> > objects
| name | (output) the parsed name of the component, defined as 'name' or "name" before the column symbol ":", the leading and trailing blans are omitted |
| value | (output) the parsed value of the component, defined as everything after the column symbol ":" till the end of the string |
| input | (input) string to be parsed |
| int DD4hep::Parsers::parse | ( | std::map< std::string, std::pair< double, double > > & | params, |
| const std::string & | input | ||
| ) |
helper function, needed for implementation of map of pairs
It is very useful construction for monitoring to represent the value and error or the allowed range for some parameter
| params | the map of pair |
| input | the string to be parsed |
| int DD4hep::Parsers::parse | ( | T(&) | result[N], |
| const std::string & | input | ||
| ) |
parser function for C-arrays
| result | C-array |
| input | the string to be parsed |
Definition at line 510 of file Parsers.h.
References DD4hep::Alignments::AlignmentTools::copy(), and parse().
| int DD4hep::Parsers::parse | ( | char(&) | result[N], |
| const std::string & | input | ||
| ) |
parser function for C-strings
| result | C-string |
| input | the string to be parsed |
Definition at line 535 of file Parsers.h.
References DD4hep::Alignments::AlignmentTools::copy(), and parse().
| int DD4hep::Parsers::parse | ( | ROOT::Math::XYZPoint & | result, |
| const std::string & | input | ||
| ) |
parse 3D-point
Valid representations of 3D-point:
- a'la python tuple with 3 elements ("canonical")
- a'la python list with 3 elements
- tuple or list with named ordered fields
Valid keys for names fields:
(x,y,z)| result | (output) the parsed point |
| input | (input) the input string |
| int DD4hep::Parsers::parse | ( | ROOT::Math::XYZVector & | result, |
| const std::string & | input | ||
| ) |
parse 3D-vector
Valid representations of 3D-vector:
- a'la python tuple with 3 elements ("canonical")
- a'la python list with 3 elements
- tuple or list with named ordered fields
Valid keys for names fields:
(x,y,z)| result | (output) the parsed vector |
| input | (input) the input string |
| int DD4hep::Parsers::parse | ( | ROOT::Math::PxPyPzEVector & | result, |
| const std::string & | input | ||
| ) |
parse PxPyPzEVector
Valid representations of Lorenzt vector
- a'la python tuple with 4 elements ("canonical")
- a'la python list with 4 elements
- python/list with inner representation of 3D-point/vector
- tuple or list with named ordered fields
Note that "energy" element can be separated with semicolon.
Valid keys for names fields:
(x,y,z)| result | (output) the parsed lorentz vector |
| input | (input) the input string |
1.8.6