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
AlignmentsKeyAssign.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/DetAlign.h"
18 
19 using std::string;
20 using namespace DD4hep::Alignments;
21 
24 AlignmentsKeyAssign::addKey(const string& key_value) const {
25  DetAlign conds(detector);
26  conds.alignments()->addKey(key_value);
27  return *this;
28 }
29 
32 AlignmentsKeyAssign::addKey(const string& key_value, const string& data_value) const {
33  DetAlign conds(detector);
34  conds.alignments()->addKey(key_value, data_value);
35  return *this;
36 }
37 
38 
Container alignments() const
Access to the alignments information.
Definition: DetAlign.cpp:45
Handle class describing the access to DetElement dependent alignments.
Definition: DetAlign.h:42
const AlignmentsKeyAssign & addKey(const std::string &key_value) const
Add a new key to the alignments access map.
Helper class to assign alignments keys based on patterms.