DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ConditionsKeyAssign.cpp
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation for LCD
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 includes
17 #include "DD4hep/DetConditions.h"
18 
19 using std::string;
20 using namespace DD4hep::Conditions;
21 
24 ConditionsKeyAssign::addKey(const string& key_value) const
25 {
26  DetConditions conds(detector);
27  conds.conditions()->addKey(key_value);
28  return *this;
29 }
30 
33 ConditionsKeyAssign::addKey(const string& key_value, const string& data_value) const
34 {
35  DetConditions conds(detector);
36  conds.conditions()->addKey(key_value, data_value);
37  return *this;
38 }
39 
40 
Container conditions() const
Access to the conditions information.
const ConditionsKeyAssign & addKey(const std::string &key_value) const
Add a new key to the conditions access map.
Handle class describing the access to DetElement dependent conditions.
Definition: DetConditions.h:43
Helper class to assign conditions keys based on patterms.