Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and sensor. For every level, there is a map: ID –> alignment correction. Sensors inherit the alignment corrections from the corresponding RP, see getFullSensorCorrection method. More...
#include <CTPPSRPAlignmentCorrectionsData.h>
Public Types | |
typedef std::map< unsigned int, CTPPSRPAlignmentCorrectionData > | mapType |
map: element id -> its alignment correction More... | |
Public Member Functions | |
void | addCorrections (const CTPPSRPAlignmentCorrectionsData &, bool sumErrors=true, bool addSh=true, bool addRot=true) |
adds (merges) corrections on top of the current values More... | |
void | addRPCorrection (unsigned int, const CTPPSRPAlignmentCorrectionData &, bool sumErrors=true, bool addSh=true, bool addRot=true) |
void | addSensorCorrection (unsigned int, const CTPPSRPAlignmentCorrectionData &, bool sumErrors=true, bool addSh=true, bool addRot=true) |
adds (merges) a RP correction on top of the current value More... | |
void | clear () |
clears all alignments More... | |
CTPPSRPAlignmentCorrectionsData () | |
CTPPSRPAlignmentCorrectionData | getFullSensorCorrection (unsigned int id, bool useRPErrors=false) const |
CTPPSRPAlignmentCorrectionData & | getRPCorrection (unsigned int id) |
returns the correction value from the RP map More... | |
CTPPSRPAlignmentCorrectionData | getRPCorrection (unsigned int id) const |
const mapType & | getRPMap () const |
returns the map of RP alignment corrections More... | |
CTPPSRPAlignmentCorrectionData & | getSensorCorrection (unsigned int id) |
returns the correction value from the sensor map More... | |
CTPPSRPAlignmentCorrectionData | getSensorCorrection (unsigned int id) const |
const mapType & | getSensorMap () const |
returns the map of sensor alignment corrections More... | |
void | setRPCorrection (unsigned int id, const CTPPSRPAlignmentCorrectionData &ac) |
sets the alignment correction for the given RP More... | |
void | setSensorCorrection (unsigned int id, const CTPPSRPAlignmentCorrectionData &ac) |
sets the alignment correction for the given sensor More... | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
mapType | rps_ |
alignment correction maps More... | |
mapType | sensors_ |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
class | StraightTrackAlignment |
Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and sensor. For every level, there is a map: ID –> alignment correction. Sensors inherit the alignment corrections from the corresponding RP, see getFullSensorCorrection method.
Definition at line 25 of file CTPPSRPAlignmentCorrectionsData.h.
typedef std::map<unsigned int, CTPPSRPAlignmentCorrectionData> CTPPSRPAlignmentCorrectionsData::mapType |
map: element id -> its alignment correction
Definition at line 29 of file CTPPSRPAlignmentCorrectionsData.h.
|
inline |
Definition at line 38 of file CTPPSRPAlignmentCorrectionsData.h.
void CTPPSRPAlignmentCorrectionsData::addCorrections | ( | const CTPPSRPAlignmentCorrectionsData & | nac, |
bool | sumErrors = true , |
||
bool | addSh = true , |
||
bool | addRot = true |
||
) |
adds (merges) corrections on top of the current values
Definition at line 121 of file CTPPSRPAlignmentCorrectionsData.cc.
References addRPCorrection(), addSensorCorrection(), rps_, and sensors_.
Referenced by getSensorMap(), and CTPPSRPAlignmentCorrectionsDataESSourceXML::Merge().
void CTPPSRPAlignmentCorrectionsData::addRPCorrection | ( | unsigned int | id, |
const CTPPSRPAlignmentCorrectionData & | a, | ||
bool | sumErrors = true , |
||
bool | addSh = true , |
||
bool | addRot = true |
||
) |
adds (merges) a RP correction on top of the current value
sumErrors | if it is true, old and new alignment uncertainties are summed (in quadrature) if it is false, the uncertainties of the parameter (i.e. not the object) will be used With the add... switches one can control which corrections are added. |
Definition at line 97 of file CTPPSRPAlignmentCorrectionsData.cc.
References rps_.
Referenced by addCorrections(), CTPPSRPAlignmentCorrectionsMethods::getCorrectionsData(), and getSensorMap().
void CTPPSRPAlignmentCorrectionsData::addSensorCorrection | ( | unsigned int | id, |
const CTPPSRPAlignmentCorrectionData & | a, | ||
bool | sumErrors = true , |
||
bool | addSh = true , |
||
bool | addRot = true |
||
) |
adds (merges) a RP correction on top of the current value
Definition at line 109 of file CTPPSRPAlignmentCorrectionsData.cc.
References sensors_.
Referenced by addCorrections(), CTPPSRPAlignmentCorrectionsMethods::getCorrectionsData(), and getSensorMap().
void CTPPSRPAlignmentCorrectionsData::clear | ( | void | ) |
clears all alignments
Definition at line 133 of file CTPPSRPAlignmentCorrectionsData.cc.
References rps_, and sensors_.
Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), getSensorMap(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().
CTPPSRPAlignmentCorrectionData CTPPSRPAlignmentCorrectionsData::getFullSensorCorrection | ( | unsigned int | id, |
bool | useRPErrors = false |
||
) | const |
returns the correction for the given sensor, combining the data from RP and sensor map regarding transverse shifts, uses the x and y representation, sh_r will not be corrected! by default, RP errors shall not be summed up (strong correlation).
Definition at line 59 of file CTPPSRPAlignmentCorrectionsData.cc.
References CTPPSRPAlignmentCorrectionData::add(), rps_, and sensors_.
Referenced by CTPPSGeometryESModule::applyAlignments(), and getSensorMap().
CTPPSRPAlignmentCorrectionData & CTPPSRPAlignmentCorrectionsData::getRPCorrection | ( | unsigned int | id | ) |
returns the correction value from the RP map
Definition at line 19 of file CTPPSRPAlignmentCorrectionsData.cc.
References triggerObjects_cff::id, and rps_.
Referenced by CTPPSGeometryESModule::applyAlignments(), and getSensorMap().
CTPPSRPAlignmentCorrectionData CTPPSRPAlignmentCorrectionsData::getRPCorrection | ( | unsigned int | id | ) | const |
Definition at line 27 of file CTPPSRPAlignmentCorrectionsData.cc.
References rps_.
|
inline |
returns the map of RP alignment corrections
Definition at line 41 of file CTPPSRPAlignmentCorrectionsData.h.
References rps_.
Referenced by operator<<(), CTPPSGeometryESModule::produceGD(), and CTPPSRPAlignmentCorrectionsMethods::writeXMLBlock().
CTPPSRPAlignmentCorrectionData & CTPPSRPAlignmentCorrectionsData::getSensorCorrection | ( | unsigned int | id | ) |
returns the correction value from the sensor map
Definition at line 39 of file CTPPSRPAlignmentCorrectionsData.cc.
References triggerObjects_cff::id, and sensors_.
Referenced by getSensorMap().
CTPPSRPAlignmentCorrectionData CTPPSRPAlignmentCorrectionsData::getSensorCorrection | ( | unsigned int | id | ) | const |
Definition at line 47 of file CTPPSRPAlignmentCorrectionsData.cc.
References sensors_.
|
inline |
returns the map of sensor alignment corrections
Definition at line 44 of file CTPPSRPAlignmentCorrectionsData.h.
References addCorrections(), addRPCorrection(), addSensorCorrection(), clear(), getFullSensorCorrection(), getRPCorrection(), getSensorCorrection(), sensors_, setRPCorrection(), and setSensorCorrection().
Referenced by operator<<(), CTPPSGeometryESModule::produceGD(), and CTPPSRPAlignmentCorrectionsMethods::writeXMLBlock().
|
private |
void CTPPSRPAlignmentCorrectionsData::setRPCorrection | ( | unsigned int | id, |
const CTPPSRPAlignmentCorrectionData & | ac | ||
) |
sets the alignment correction for the given RP
Definition at line 81 of file CTPPSRPAlignmentCorrectionsData.cc.
References triggerObjects_cff::id, and rps_.
Referenced by getSensorMap().
void CTPPSRPAlignmentCorrectionsData::setSensorCorrection | ( | unsigned int | id, |
const CTPPSRPAlignmentCorrectionData & | ac | ||
) |
sets the alignment correction for the given sensor
Definition at line 89 of file CTPPSRPAlignmentCorrectionsData.cc.
References triggerObjects_cff::id, and sensors_.
Referenced by getSensorMap().
|
friend |
Definition at line 80 of file CTPPSRPAlignmentCorrectionsData.h.
|
friend |
Definition at line 80 of file CTPPSRPAlignmentCorrectionsData.h.
|
friend |
Definition at line 35 of file CTPPSRPAlignmentCorrectionsData.h.
|
private |
alignment correction maps
Definition at line 33 of file CTPPSRPAlignmentCorrectionsData.h.
Referenced by addCorrections(), addRPCorrection(), clear(), getFullSensorCorrection(), getRPCorrection(), getRPMap(), and setRPCorrection().
|
private |
Definition at line 33 of file CTPPSRPAlignmentCorrectionsData.h.
Referenced by addCorrections(), addSensorCorrection(), clear(), getFullSensorCorrection(), getSensorCorrection(), getSensorMap(), and setSensorCorrection().