Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 09:20:18

0001 //==============================================================================
0002 //  AIDA Detector description implementation for LHCb
0003 //------------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 //  \author   Markus Frank
0011 //  \date     2018-03-08
0012 //  \version  1.0
0013 //
0014 //==============================================================================
0015 
0016 // A bit of magic
0017 
0018 // Framework include files
0019 #include "Detector/DeVP.h"
0020 #include "DD4hep/detail/Handle.inl"
0021 
0022 // This is some magic you do not really want to know about....
0023 
0024 using namespace gaudi::detail;
0025 
0026 DD4HEP_INSTANTIATE_HANDLE_UNNAMED(DeStaticObject,ConditionObject);
0027 DD4HEP_INSTANTIATE_HANDLE_UNNAMED(DeVPSensorStaticObject,DeStaticObject,ConditionObject);
0028 DD4HEP_INSTANTIATE_HANDLE_UNNAMED(DeVPGenericStaticObject,DeStaticObject,ConditionObject);
0029 DD4HEP_INSTANTIATE_HANDLE_UNNAMED(DeVPStaticObject,DeVPGenericStaticObject,DeStaticObject,ConditionObject);
0030 
0031 DD4HEP_INSTANTIATE_HANDLE_UNNAMED(DeIOVObject,ConditionObject);
0032 DD4HEP_INSTANTIATE_HANDLE_UNNAMED(DeVPSensorObject,DeIOVObject,ConditionObject);
0033 DD4HEP_INSTANTIATE_HANDLE_UNNAMED(DeVPGenericObject,DeIOVObject,ConditionObject);
0034 DD4HEP_INSTANTIATE_HANDLE_UNNAMED(DeVPObject,DeVPGenericObject,DeIOVObject,ConditionObject);
0035 
0036 // These folks are not really conditions. Condition::get<T>() is never called for these types.
0037 #if 0
0038 
0039 inline std::ostream& operator << (std::ostream& s, const DeVPStaticObject&)        { return s; }
0040 inline std::ostream& operator << (std::ostream& s, const DeVPSensorStaticObject&)  { return s; }
0041 inline std::ostream& operator << (std::ostream& s, const DeVPGenericStaticObject&) { return s; }
0042 inline std::ostream& operator << (std::ostream& s, const DeVPObject&)              { return s; }
0043 inline std::ostream& operator << (std::ostream& s, const DeVPSensorObject&)        { return s; }
0044 inline std::ostream& operator << (std::ostream& s, const DeVPGenericObject&)       { return s; }
0045 
0046 #include "Parsers/Parsers.h"
0047 DD4HEP_DEFINE_PARSER_DUMMY(DeVPStaticObject)
0048 DD4HEP_DEFINE_PARSER_DUMMY(DeVPSensorStaticObject)
0049 DD4HEP_DEFINE_PARSER_DUMMY(DeVPGenericStaticObject)
0050 DD4HEP_DEFINE_PARSER_DUMMY(DeVPObject)
0051 DD4HEP_DEFINE_PARSER_DUMMY(DeVPSensorObject)
0052 DD4HEP_DEFINE_PARSER_DUMMY(DeVPGenericObject)
0053 
0054 #include "DD4hep/detail/BasicGrammar_inl.h"
0055 #include "DD4hep/detail/ConditionsInterna.h"
0056 DD4HEP_DEFINE_PARSER_GRAMMAR(DeVPStaticObject,eval_none<DeVPStaticObject>)
0057 DD4HEP_DEFINE_PARSER_GRAMMAR(DeVPSensorStaticObject,eval_none<DeVPSensorStaticObject>)
0058 DD4HEP_DEFINE_PARSER_GRAMMAR(DeVPGenericStaticObject,eval_none<DeVPGenericStaticObject>)
0059 DD4HEP_DEFINE_PARSER_GRAMMAR(DeVPObject,eval_none<DeVPObject>)
0060 DD4HEP_DEFINE_PARSER_GRAMMAR(DeVPSensorObject,eval_none<DeVPSensorObject>)
0061 DD4HEP_DEFINE_PARSER_GRAMMAR(DeVPGenericObject,eval_none<DeVPGenericObject>)
0062 
0063 DD4HEP_DEFINE_CONDITIONS_TYPE(DeVPStaticObject)
0064 DD4HEP_DEFINE_CONDITIONS_TYPE(DeVPSensorStaticObject)
0065 DD4HEP_DEFINE_CONDITIONS_TYPE(DeVPGenericStaticObject)
0066 DD4HEP_DEFINE_CONDITIONS_TYPE(DeVPObject)
0067 DD4HEP_DEFINE_CONDITIONS_TYPE(DeVPSensorObject)
0068 DD4HEP_DEFINE_CONDITIONS_TYPE(DeVPGenericObject)
0069 #endif