Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:17:43

0001 //==========================================================================
0002 //  LHCb Online software suite
0003 //--------------------------------------------------------------------------
0004 //  Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 //  All rights reserved.
0006 //
0007 //  For the licensing terms see OnlineSys/LICENSE.
0008 //
0009 //--------------------------------------------------------------------------
0010 //  ExtraProperties.cpp
0011 //--------------------------------------------------------------------------
0012 //
0013 //  Package    : Dataflow
0014 //
0015 //  Author     : Markus Frank
0016 //==========================================================================
0017 // Note:
0018 //
0019 // This is an example file, which shows how to instantiate extera parsers,
0020 // which are not part of dd4hep, but may be interesting for a
0021 // client application.
0022 //
0023 //==========================================================================
0024 
0025 /// Framework includes
0026 #include "DD4hep/Parsers.h"
0027 
0028 #if !defined(DD4HEP_HAVE_ALL_PARSERS)
0029 PARSERS_DECL_FOR_SINGLE(unsigned int)
0030 PARSERS_DECL_FOR_SINGLE(unsigned long)
0031 PARSERS_DECL_FOR_SINGLE(long long)
0032 PARSERS_DECL_FOR_SINGLE(unsigned long long)
0033 #endif
0034 
0035 typedef std::map<std::string, std::vector<std::string> > map_vector_t;
0036 typedef std::map<std::string, std::map<std::string,std::string> > map_map_t;
0037 PARSERS_DECL_FOR_SINGLE(map_map_t)
0038 
0039 #include "DD4hep/BasicGrammar_inl.h"
0040 #include "DD4hep/ComponentProperties_inl.h"
0041 
0042 #include "parsers/ParsersFactory.h"
0043 DD4HEP_DEFINE_PARSER_GRAMMAR(map_vector_t,eval_obj)
0044 DD4HEP_DEFINE_PROPERTY_TYPE(map_vector_t)
0045 
0046 PARSERS_DEF_FOR_SINGLE(map_map_t)
0047 DD4HEP_DEFINE_PARSER_GRAMMAR(map_map_t,eval_obj)
0048 DD4HEP_DEFINE_PROPERTY_TYPE(map_map_t)
0049 
0050 #if !defined(DD4HEP_HAVE_ALL_PARSERS)
0051 DD4HEP_DEFINE_PARSER_GRAMMAR(unsigned int,eval_item)
0052 DD4HEP_DEFINE_PARSER_GRAMMAR(unsigned long,eval_item)
0053 DD4HEP_DEFINE_PROPERTY_TYPE(unsigned int)
0054 DD4HEP_DEFINE_PROPERTY_TYPE(unsigned long)
0055 
0056 DD4HEP_DEFINE_PARSER_GRAMMAR(long long,eval_item)
0057 DD4HEP_DEFINE_PARSER_GRAMMAR(unsigned long long,eval_item)
0058 
0059 DD4HEP_DEFINE_PROPERTY_TYPE(long long)
0060 DD4HEP_DEFINE_PROPERTY_TYPE(unsigned long long)
0061 #endif