File indexing completed on 2025-01-31 09:20:18
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
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