DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Calib alignment dependencies from conditions. More...
#include <AlignmentsCalib.h>
Classes | |
class | Entry |
Helper class to store information about alignment calibration items. More... | |
Public Types | |
typedef std::map< Condition::key_type, Entry * > | UsedConditions |
Shortcut definitions. More... | |
Public Member Functions | |
AlignmentsCalib ()=delete | |
No default constructor. More... | |
AlignmentsCalib (const AlignmentsCalib ©)=delete | |
No copy constructor. More... | |
AlignmentsCalib (Detector &description, ConditionsMap &mapping) | |
Initializing constructor. More... | |
virtual | ~AlignmentsCalib () noexcept(false) |
Default destructor. More... | |
AlignmentsCalib & | operator= (const AlignmentsCalib ©)=delete |
No assignment operator. More... | |
AlignmentsCalib & | operator= (AlignmentsCalib &©)=delete |
No move assignment operator. More... | |
Condition::key_type | set (DetElement det, const Delta &delta) |
(1) Add a new entry to an existing DetElement structure. More... | |
Condition::key_type | set (const std::string &path, const Delta &delta) |
(2) Add a new entry to an existing DetElement structure. More... | |
void | clearDeltas () |
Clear all delta data in the caches transaction stack. More... | |
void | clear () noexcept(false) |
We clear the entire cached stack of used entries. More... | |
DetElement | detector (const std::string &path) const |
Convenience only: Access detector element by path. More... | |
AlignmentsCalculator::Result | commit () |
Commit all pending transactions. Returns number of altered entries. More... | |
Public Attributes | |
Detector & | description |
Reference to the detector description object. More... | |
ConditionsMap & | slice |
Reference to the alignment manager object. More... | |
UsedConditions | used |
Internal work stack of cached deltas. More... | |
Protected Member Functions | |
std::pair< Condition::key_type, Entry * > | _set (DetElement det, const Delta &delta) |
Implementation: Add a new entry to the transaction stack. More... | |
Calib alignment dependencies from conditions.
Definition at line 41 of file AlignmentsCalib.h.
typedef std::map<Condition::key_type,Entry*> dd4hep::align::AlignmentsCalib::UsedConditions |
Shortcut definitions.
Definition at line 53 of file AlignmentsCalib.h.
|
delete |
No default constructor.
|
delete |
No copy constructor.
AlignmentsCalib::AlignmentsCalib | ( | Detector & | description, |
ConditionsMap & | mapping | ||
) |
Initializing constructor.
Definition at line 46 of file AlignmentsCalib.cpp.
|
virtualnoexcept |
Default destructor.
Definition at line 52 of file AlignmentsCalib.cpp.
|
protected |
Implementation: Add a new entry to the transaction stack.
Now check again if we succeeded.
Definition at line 64 of file AlignmentsCalib.cpp.
|
noexcept |
We clear the entire cached stack of used entries.
Clear all pending entries in the working cache.
Definition at line 125 of file AlignmentsCalib.cpp.
void AlignmentsCalib::clearDeltas | ( | ) |
Clear all delta data in the caches transaction stack.
Definition at line 115 of file AlignmentsCalib.cpp.
AlignmentsCalculator::Result AlignmentsCalib::commit | ( | ) |
Commit all pending transactions. Returns number of altered entries.
Propagate the Delta values to the source conditions
Update the source condition with the new delta value
Definition at line 134 of file AlignmentsCalib.cpp.
dd4hep::DetElement AlignmentsCalib::detector | ( | const std::string & | path | ) | const |
Convenience only: Access detector element by path.
Definition at line 57 of file AlignmentsCalib.cpp.
|
delete |
No move assignment operator.
|
delete |
No assignment operator.
dd4hep::Condition::key_type AlignmentsCalib::set | ( | const std::string & | path, |
const Delta & | delta | ||
) |
(2) Add a new entry to an existing DetElement structure.
Note: has no effect on the real alignment conditions as long as the callbacks are not executed, which is triggered by the "commit" call. The delta is only cached locally.
The alignment key is returned to the client. If NULL: Failure
Definition at line 110 of file AlignmentsCalib.cpp.
dd4hep::Condition::key_type AlignmentsCalib::set | ( | DetElement | det, |
const Delta & | delta | ||
) |
(1) Add a new entry to an existing DetElement structure.
This call does several actions:
A check is performed if the alignment with this identifier already exists: if YES, continue with use(Alignment alignment). If NO, then: 1) a Condition object is added using the given 'name'. This condition is added to the ConditionsManager's repository and the ConditionsSlice. 'name' MUST denote a unique conditions identifier. 1.1) A conditions key with the id 'name' is added to the DetElement's conditions container.
Note: has no effect on the real alignment conditions as long as the callbacks are not executed, which is triggered by the "commit" call. The delta is only cached locally.
The resulting alignment key is returned to the client. If NULL: Failure
Definition at line 104 of file AlignmentsCalib.cpp.
Detector& dd4hep::align::AlignmentsCalib::description |
Reference to the detector description object.
Definition at line 57 of file AlignmentsCalib.h.
ConditionsMap& dd4hep::align::AlignmentsCalib::slice |
Reference to the alignment manager object.
Definition at line 59 of file AlignmentsCalib.h.
UsedConditions dd4hep::align::AlignmentsCalib::used |
Internal work stack of cached deltas.
Definition at line 61 of file AlignmentsCalib.h.