![]() |
DD4hep
1.33.0
Detector Description Toolkit for High Energy Physics
|
Alignment Stack object definition. More...
#include <GlobalAlignmentStack.h>
Classes | |
| class | StackEntry |
| Stack entry definition. More... | |
Public Types | |
| enum | Flags { OVERLAP_DEFINED = 1<<20, MATRIX_DEFINED = 1<<21, CHECKOVL_DEFINED = 1<<22, CHECKOVL_VALUE = 1<<23, RESET_VALUE = 1<<24, RESET_CHILDREN = 1<<25, ____LLLAST = 1<<31 } |
| typedef std::map< std::string, StackEntry * > | Stack |
Public Member Functions | |
| virtual | ~GlobalAlignmentStack () |
| Default destructor. Careful with this one: More... | |
| bool | insert (const std::string &full_path, dd4hep_ptr< StackEntry > &new_entry) |
| Add a new entry to the cache. The key is the placement path. More... | |
| bool | insert (dd4hep_ptr< StackEntry > &new_entry) |
| Add a new entry to the cache. The key is the placement path. The placement path must be set in the entry. More... | |
| void | release () |
| Clear data content and remove the slignment stack. More... | |
| size_t | size () const |
| Access size of the alignment stack. More... | |
| bool | add (dd4hep_ptr< StackEntry > &new_entry) |
| Add a new entry to the cache. The key is the placement path. More... | |
| dd4hep_ptr< StackEntry > | pop () |
| Retrieve an alignment entry of the current stack. More... | |
| std::vector< const StackEntry * > | entries () const |
| Get all path entries to be aligned. Note: transient! More... | |
Static Public Member Functions | |
| static GlobalAlignmentStack & | get () |
| Static client accessor. More... | |
| static void | create () |
| Create an alignment stack instance. The creation of a second instance will be refused. More... | |
| static bool | exists () |
| Check existence of alignment stack. More... | |
| static bool | overlapDefined (const StackEntry &e) |
| Check if the overlap flag checking is enabled. More... | |
| static bool | checkOverlap (const StackEntry &e) |
| Check if the overlap flag checking is enabled. More... | |
| static bool | overlapValue (const StackEntry &e) |
| Check if the overalp value is present. More... | |
| static bool | hasMatrix (const StackEntry &e) |
| Check if this alignment entry has a non unitary transformation matrix. More... | |
| static bool | needsReset (const StackEntry &e) |
| Check flag if the node location should be reset. More... | |
| static bool | resetChildren (const StackEntry &e) |
| Check flag if the node location and all children should be reset. More... | |
Protected Member Functions | |
| GlobalAlignmentStack () | |
| Default constructor. More... | |
Protected Attributes | |
| Stack | m_stack |
| The subdetector specific map of alignments caches. More... | |
| typedef std::map<std::string, StackEntry*> dd4hep::align::GlobalAlignmentStack::Stack |
Definition at line 100 of file GlobalAlignmentStack.h.
| Enumerator | |
|---|---|
| OVERLAP_DEFINED | |
| MATRIX_DEFINED | |
| CHECKOVL_DEFINED | |
| CHECKOVL_VALUE | |
| RESET_VALUE | |
| RESET_CHILDREN | |
| ____LLLAST | |
Definition at line 36 of file GlobalAlignmentStack.h.
|
protected |
Default constructor.
Definition at line 83 of file GlobalAlignmentStack.cpp.
|
virtual |
Default destructor. Careful with this one:
Default destructor.
Definition at line 89 of file GlobalAlignmentStack.cpp.
| bool GlobalAlignmentStack::add | ( | dd4hep_ptr< StackEntry > & | new_entry | ) |
Add a new entry to the cache. The key is the placement path.
Definition at line 139 of file GlobalAlignmentStack.cpp.
|
inlinestatic |
Check if the overlap flag checking is enabled.
Definition at line 123 of file GlobalAlignmentStack.h.
|
static |
Create an alignment stack instance. The creation of a second instance will be refused.
Definition at line 102 of file GlobalAlignmentStack.cpp.
| std::vector< const GlobalAlignmentStack::StackEntry * > GlobalAlignmentStack::entries | ( | ) | const |
Get all path entries to be aligned. Note: transient!
Get all pathes to be aligned.
Definition at line 173 of file GlobalAlignmentStack.cpp.
|
static |
Check existence of alignment stack.
Definition at line 110 of file GlobalAlignmentStack.cpp.
|
static |
Static client accessor.
Definition at line 95 of file GlobalAlignmentStack.cpp.
|
inlinestatic |
Check if this alignment entry has a non unitary transformation matrix.
Definition at line 127 of file GlobalAlignmentStack.h.
| bool GlobalAlignmentStack::insert | ( | const std::string & | full_path, |
| dd4hep_ptr< StackEntry > & | new_entry | ||
| ) |
Add a new entry to the cache. The key is the placement path.
Definition at line 124 of file GlobalAlignmentStack.cpp.
| bool GlobalAlignmentStack::insert | ( | dd4hep_ptr< StackEntry > & | new_entry | ) |
Add a new entry to the cache. The key is the placement path. The placement path must be set in the entry.
Add a new entry to the cache. The key is the placement path.
Definition at line 134 of file GlobalAlignmentStack.cpp.
|
inlinestatic |
Check flag if the node location should be reset.
Definition at line 129 of file GlobalAlignmentStack.h.
|
inlinestatic |
Check if the overlap flag checking is enabled.
Definition at line 121 of file GlobalAlignmentStack.h.
|
inlinestatic |
Check if the overalp value is present.
Definition at line 125 of file GlobalAlignmentStack.h.
| dd4hep::dd4hep_ptr< GlobalAlignmentStack::StackEntry > GlobalAlignmentStack::pop | ( | ) |
Retrieve an alignment entry of the current stack.
Definition at line 160 of file GlobalAlignmentStack.cpp.
| void GlobalAlignmentStack::release | ( | ) |
Clear data content and remove the slignment stack.
Definition at line 115 of file GlobalAlignmentStack.cpp.
|
inlinestatic |
Check flag if the node location and all children should be reset.
Definition at line 131 of file GlobalAlignmentStack.h.
|
inline |
Access size of the alignment stack.
Definition at line 140 of file GlobalAlignmentStack.h.
|
protected |
The subdetector specific map of alignments caches.
Definition at line 104 of file GlobalAlignmentStack.h.
1.8.18