Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-21 09:57:59

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
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     2016-02-02
0012 //  \version  1.0
0013 //
0014 //==========================================================================
0015 #ifndef DD4HEP_BUILDTYPE_H
0016 #define DD4HEP_BUILDTYPE_H 1
0017 
0018 // C/C++ include files
0019 #include <string>
0020 
0021 
0022 /// Namespace for the AIDA detector description toolkit
0023 namespace dd4hep {
0024 
0025   /// Forward declarations
0026   class Detector;
0027   
0028   /// Detector description build types.
0029   /** enum DetectorBuildType Detector.h  dd4hep/Detector.h
0030    * The corresponding flag is ONLY valid while parsing the
0031    * compact description. If no eometry, ie. at all other times
0032    * the accessor to the flag returns BUILD_NONE.
0033    */
0034   enum DetectorBuildType {
0035     BUILD_NONE = 0,
0036     BUILD_DEFAULT = 1,
0037     BUILD_SIMU = BUILD_DEFAULT,
0038     BUILD_RECO,
0039     BUILD_DISPLAY,
0040     BUILD_ENVELOPE
0041   };
0042 
0043   /// Translate string representation of the geometry build type to value
0044   DetectorBuildType buildType(const char* value);
0045 
0046   /// Translate string representation of the geometry build type to value
0047   DetectorBuildType buildType(const std::string& value);
0048 
0049   /// Translate the geometry build type to value to the string representation
0050   std::string buildTypeName(DetectorBuildType type);
0051 
0052   /// Translate the geometry build type to value to the string representation
0053   std::string buildTypeName(Detector& detector);
0054 
0055   /// Check if a build type matches the current 
0056   bool buildMatch(const std::string& value, DetectorBuildType match);
0057 
0058 } /* End namespace dd4hep             */
0059 #endif // DD4HEP_BUILDTYPE_H