DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
GrammarTypes.cpp
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 
14 // Framework include files
15 #include <DD4hep/GrammarParsed.h>
16 
17 #include <Math/Point3D.h>
18 #include <Math/Vector4D.h>
19 #include <Math/Vector3D.h>
20 
21 #ifndef DD4HEP_PARSERS_NO_ROOT
22 
24 #include <Math/Point3D.h>
25 #include <Math/Vector4D.h>
26 #include <Math/Vector3D.h>
27 
28 namespace ROOT {
29 
30  namespace Math {
31 
33  bool operator<(const XYZPoint& a, const XYZPoint& b);
35  bool operator<(const XYZVector& a, const XYZVector& b);
37  bool operator<(const PxPyPzEVector& a, const PxPyPzEVector& b);
38  }
39 }
40 
43 DD4HEP_DEFINE_PARSER_GRAMMAR_ROOTMATH(ROOT::Math::PxPyPzEVector,eval_obj)
44 #endif
45 
46 #if defined(DD4HEP_HAVE_ALL_PARSERS)
50 #else
52 #ifdef __APPLE__
54 #endif
55 #endif // DD4HEP_HAVE_ALL_PARSERS
56 
63 
64 DD4HEP_DEFINE_PARSER_GRAMMAR_SERIAL(__LINE__,1,dd4hep::detail::Primitive<bool>::bool_pair_t,eval_pair)
65 DD4HEP_DEFINE_PARSER_GRAMMAR_SERIAL(__LINE__,2,dd4hep::detail::Primitive<float>::float_pair_t,eval_pair)
66 DD4HEP_DEFINE_PARSER_GRAMMAR_SERIAL(__LINE__,5,dd4hep::detail::Primitive<double>::double_pair_t,eval_pair)
67 
68 namespace dd4hep {
70  return __LINE__;
71  }
72 }
DD4HEP_DEFINE_PARSER_GRAMMAR_ROOTMATH
#define DD4HEP_DEFINE_PARSER_GRAMMAR_ROOTMATH(xx, eval_func)
Definition: GrammarParsed.h:372
dd4hep::init_grammar_types
int init_grammar_types()
Definition: GrammarTypes.cpp:69
DD4HEP_DEFINE_PARSER_GRAMMAR_SERIAL
#define DD4HEP_DEFINE_PARSER_GRAMMAR_SERIAL(serial, ctxt, xx, func)
Definition: GrammarParsed.h:311
DD4HEP_DEFINE_PARSER_GRAMMAR_U_CONT
#define DD4HEP_DEFINE_PARSER_GRAMMAR_U_CONT(xx)
Definition: GrammarParsed.h:373
DD4HEP_DEFINE_PARSER_GRAMMAR_CONT_VL
#define DD4HEP_DEFINE_PARSER_GRAMMAR_CONT_VL(xx, eval_func)
Definition: GrammarParsed.h:374
dd4hep::detail::eval_pair
int eval_pair(std::pair< T, Q > *ptr, std::string str)
Item evaluator.
Definition: GrammarParsed.h:259
DD4HEP_DEFINE_PARSER_GRAMMAR
#define DD4HEP_DEFINE_PARSER_GRAMMAR(xx, func)
Definition: GrammarParsed.h:370
GrammarParsed.h
DD4HEP_DEFINE_PARSER_GRAMMAR_CONT
#define DD4HEP_DEFINE_PARSER_GRAMMAR_CONT(xx, eval_func)
Definition: GrammarParsed.h:371
ROOT::Math::operator<
bool operator<(const XYZPoint &a, const XYZPoint &b)
Allow point insertion of a point in maps.
Definition: ParsersObjects_XYZPoint.cpp:18
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::detail::eval_obj
int eval_obj(T *ptr, const std::string &str)
Object evaluator.
Definition: GrammarParsed.h:266
dd4hep::detail::eval_item
int eval_item(T *ptr, const std::string &val)
Item evaluator.
Definition: GrammarParsed.h:97
ROOT
ROOT include files.
Definition: Objects.h:508