|
ATLAS Offline Software
|
Go to the documentation of this file.
12 : m_deformationModel(std::move(deformationModel))
13 , m_nominalPar(m_deformationModel->nParameters())
14 , m_correctedPar(m_deformationModel->nParameters())
43 while ((
el!=
nullptr) && (
el!=frame)) {
62 if (ipar>=parvec.size()) {
63 throw std::runtime_error(
"Element::getParameter: Parameter exceeds parvec size "+
std::to_string(ipar));
73 if (ipar>=parvec.size()) {
74 throw std::runtime_error(
"Element::setParameter: Parameter exceeds parvec size "+
std::to_string(ipar));
95 throw std::runtime_error(
"Element has a defined mother already");
108 tree_t(iter _it, iter _end):
113 std::list<tree_t> dtree;
116 while (!dtree.empty()) {
117 auto&
it = dtree.back().it;
118 if (
it != dtree.back().end) {
121 dtree.emplace_back(
el.m_daughters.begin(),
el.m_daughters.end());
JetConstituentVector::iterator iterator
void traverseTree(const std::function< void(Element &)> &callback)
std::vector< double > parameters
void setParameter(ParameterClass iclass, ipar_t ipar, double value)
ElementModel::ipar_t ipar_t
ParameterVector m_correctedPar
std::unique_ptr< ElementModel > m_deformationModel
ParameterVector m_nominalPar
ParameterVector & parameterVector(ParameterClass iclass)
std::string to_string(const DetectorType &type)
void transform(ParameterClass iclass, const VectorSetRef &local) const
daughterVec_t m_daughters
double getParameter(ParameterClass iclass, ipar_t ipar) const
Element: a node in a hierarchy of alignment frames.
void transformToFrame(ParameterClass iclass, const VectorSetRef &local, const Element *frame) const
Element * addDaughter(std::unique_ptr< Element > daughter)
ElementModel::VectorSetRef VectorSetRef
void setParametersFromMap(ParameterClass iclass, const std::map< std::string, double > &values)