DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
DDCore
src
ConditionsDebug.cpp
Go to the documentation of this file.
1
//==========================================================================
2
// AIDA Detector description implementation
3
//--------------------------------------------------------------------------
4
// Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5
// All rights reserved.
6
//
7
// For the licensing terms see $DD4hepINSTALL/LICENSE.
8
// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9
//
10
// Author : M.Frank
11
//
12
//==========================================================================
13
14
// Framework include files
15
#include <
DD4hep/Conditions.h
>
16
#include <
DD4hep/ConditionsDebug.h
>
17
#include <
DD4hep/detail/ConditionsInterna.h
>
18
19
using namespace
dd4hep::cond
;
20
21
std::string
dd4hep::cond::cond_name
(
const
dd4hep::Condition::Object
* c) {
22
#if defined(DD4HEP_MINIMAL_CONDITIONS)
23
dd4hep::ConditionKey::KeyMaker
key
(c->
hash
);
24
char
text[64];
25
std::snprintf(text,
sizeof
(text),
"%08X-%08X"
,
key
.values.det_key,
key
.values.item_key);
26
return
text;
27
#else
28
return
c->name;
29
#endif
30
}
31
32
std::string
dd4hep::cond::cond_name
(
Condition
c) {
33
return
cond_name
(c.
ptr
());
34
}
dd4hep::detail::ConditionObject::hash
Condition::key_type hash
Hash value of the name.
Definition:
ConditionsInterna.h:85
ConditionsInterna.h
dd4hep::cond::cond_name
std::string cond_name(Condition c)
Definition:
ConditionsDebug.cpp:32
dd4hep::ConditionKey::KeyMaker
Helper union to interprete conditions keys.
Definition:
Conditions.h:295
dd4hep::Condition
Main condition object handle.
Definition:
Conditions.h:51
dd4hep::cond
Namespace for implementation details of the AIDA detector description toolkit.
Definition:
ConditionsCleanup.h:23
ConditionsDebug.h
Conditions.h
dd4hep::detail::ConditionObject
The data class behind a conditions handle.
Definition:
ConditionsInterna.h:68
key
unsigned char key
Definition:
AlignmentsCalculator.cpp:69
dd4hep::Handle::ptr
T * ptr() const
Access to the held object.
Definition:
Handle.h:153
Generated on Thu Nov 7 2024 13:31:55 for DD4hep by
1.8.18