| # Gaudi Framework, version v21r8 |

Home |  | Generated: 17 Mar 2010

# ParseVct.cpp File Reference

Implementation file for vector parsers. More...

`#include <map>`
`#include "GaudiKernel/VectorsAsProperty.h"`
`#include "GaudiKernel/Parsers.h"`
`#include "GaudiKernel/ToStream.h"`
`#include "GaudiKernel/Parsers.icpp"`
`#include "GaudiKernel/Grammars.h"`
`#include "GaudiKernel/GrammarsForVectors.h"`

Include dependency graph for ParseVct.cpp:

Go to the source code of this file.

## Typedefs
typedef std::map< std::string, double > | MAP
## Functions
template<unsigned int N>
MAP::const_iterator | find (const MAP &m, const std::string(&keys)[N])
GAUDI_API StatusCode | Gaudi::Parsers::parse (Gaudi::XYZPoint &result, const std::string &input)
| parse 3D-point
GAUDI_API StatusCode | Gaudi::Parsers::parse (Gaudi::XYZVector &result, const std::string &input)
| parse 3D-vector
GAUDI_API StatusCode | Gaudi::Parsers::parse (Gaudi::LorentzVector &result, const std::string &input)
| parse LorentzVector
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::vector< Gaudi::XYZPoint > &result, const std::string &input)
| parse the vector of points
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::vector< Gaudi::XYZVector > &result, const std::string &input)
| parse the vector of vectors
GAUDI_API StatusCode | Gaudi::Parsers::parse (std::vector< Gaudi::LorentzVector > &result, const std::string &input)
| parse the vector of vectors
GAUDI_API std::ostream & | Gaudi::Utils::toStream (const Gaudi::XYZPoint &obj, std::ostream &s)
| print XYZ point
GAUDI_API std::ostream & | Gaudi::Utils::toStream (const Gaudi::XYZVector &obj, std::ostream &s)
| print XYZ vector
GAUDI_API std::ostream & | Gaudi::Utils::toStream (const Gaudi::LorentzVector &obj, std::ostream &s)
| print Lorentz vector
## Variables
const std::string | s_X [] = { "x" , "X" , "px" , "pX" , "Px" , "PX" }
const std::string | s_Y [] = { "y" , "Y" , "py" , "pY" , "Py" , "PY" }
const std::string | s_Z [] = { "z" , "Z" , "pz" , "pZ" , "Pz" , "PZ" }
const std::string | s_E [] = { "t" , "T" , "e" , "E" }

## Detailed Description

Implementation file for vector parsers.

Author:
  Vanya BELYAEV Ivan.Belyaev@nikhef.nl

Date:
  2009-09-05

Definition in file ParseVct.cpp.

## Typedef Documentation

typedef std::map<std::string,double> MAP`[static]`

Definition at line 30 of file ParseVct.cpp.

## Function Documentation

template<unsigned int N>

MAP::const_iterator @423::find | ( | const MAP & | m,
|  | const std::string(&) | keys[N] |
| ) |  |  | `[inline, static]`

Definition at line 34 of file ParseVct.cpp.

    00036   {
    00037     for ( unsigned int i =  0 ; i < N ; ++ i )
    00038     {
    00039       MAP::const_iterator found = m.find ( keys[i] ) ;
    00040       if ( m.end() != found ) { return found ; }
    00041     }
    00042     return m.end() ;
    00043   }

## Variable Documentation

const std::string s_E[] = { "t" , "T" , "e" , "E" }`[static]`

Definition at line 48 of file ParseVct.cpp.

const std::string s_X[] = { "x" , "X" , "px" , "pX" , "Px" , "PX" }`[static]`

Definition at line 45 of file ParseVct.cpp.

const std::string s_Y[] = { "y" , "Y" , "py" , "pY" , "Py" , "PY" }`[static]`

Definition at line 46 of file ParseVct.cpp.

const std::string s_Z[] = { "z" , "Z" , "pz" , "pZ" , "Pz" , "PZ" }`[static]`

Definition at line 47 of file ParseVct.cpp.