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 // Framework include files
0017 #include "Detector/DetectorElement.h"
0018 #include "DD4hep/Printout.h"
0019 
0020 
0021 namespace gaudi  {
0022   typedef dd4hep::ConditionKey _K;
0023   const std::string        Keys::staticKeyName  ("DetElement-Info-Static");
0024   const Keys::itemkey_type Keys::staticKey = _K::itemCode(Keys::staticKeyName);
0025   const std::string        Keys::deKeyName     ("DetElement-Info-IOV");
0026   const Keys::itemkey_type Keys::deKey     = _K::itemCode(Keys::deKeyName);
0027 
0028   const std::string        Keys::alignmentsComputedKeyName("Alignments-Computed");
0029   const Keys::key_type     Keys::alignmentsComputedKey = _K::KeyMaker(0,Keys::alignmentsComputedKeyName).hash;
0030 }
0031 
0032 std::string gaudi::DE::indent(int level)   {
0033   char fmt[128], text[1024];
0034   ::snprintf(fmt,sizeof(fmt),"%03d %%-%ds",level+1,2*level+1);
0035   ::snprintf(text,sizeof(text),fmt,"");
0036   return text;
0037 }
0038