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 <RPAlignmentCorrectionsData.h>
Public Types | |
typedef std::map< unsigned int, RPAlignmentCorrectionData > | mapType |
map: element id -> its alignment correction More... | |
Public Member Functions | |
void | addCorrections (const RPAlignmentCorrectionsData &, bool sumErrors=true, bool addSh=true, bool addRot=true) |
adds (merges) corrections on top of the current values More... | |
void | addRPCorrection (unsigned int, const RPAlignmentCorrectionData &, bool sumErrors=true, bool addSh=true, bool addRot=true) |
void | addSensorCorrection (unsigned int, const RPAlignmentCorrectionData &, 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... | |
RPAlignmentCorrectionData | getFullSensorCorrection (unsigned int id, bool useRPErrors=false) const |
RPAlignmentCorrectionData & | getRPCorrection (unsigned int id) |
returns the correction value from the RP map More... | |
RPAlignmentCorrectionData | getRPCorrection (unsigned int id) const |
const mapType & | getRPMap () const |
returns the map of RP alignment corrections More... | |
RPAlignmentCorrectionData & | getSensorCorrection (unsigned int id) |
returns the correction value from the sensor map More... | |
RPAlignmentCorrectionData | getSensorCorrection (unsigned int id) const |
const mapType & | getSensorMap () const |
returns the map of sensor alignment corrections More... | |
RPAlignmentCorrectionsData () | |
void | setRPCorrection (unsigned int id, const RPAlignmentCorrectionData &ac) |
sets the alignment correction for the given RP More... | |
void | setSensorCorrection (unsigned int id, const RPAlignmentCorrectionData &ac) |
sets the alignment correction for the given sensor More... | |
Private Attributes | |
mapType | rps_ |
alignment correction maps More... | |
mapType | sensors_ |
Friends | |
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 23 of file RPAlignmentCorrectionsData.h.
typedef std::map<unsigned int, RPAlignmentCorrectionData> RPAlignmentCorrectionsData::mapType |
map: element id -> its alignment correction
Definition at line 27 of file RPAlignmentCorrectionsData.h.
|
inline |
Definition at line 36 of file RPAlignmentCorrectionsData.h.
void RPAlignmentCorrectionsData::addCorrections | ( | const RPAlignmentCorrectionsData & | nac, |
bool | sumErrors = true , |
||
bool | addSh = true , |
||
bool | addRot = true |
||
) |
adds (merges) corrections on top of the current values
Definition at line 123 of file RPAlignmentCorrectionsData.cc.
References addRPCorrection(), addSensorCorrection(), rps_, and sensors_.
Referenced by getSensorMap(), and CTPPSIncludeAlignmentsFromXML::Merge().
void RPAlignmentCorrectionsData::addRPCorrection | ( | unsigned int | id, |
const RPAlignmentCorrectionData & | 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 99 of file RPAlignmentCorrectionsData.cc.
References rps_.
Referenced by addCorrections(), RPAlignmentCorrectionsMethods::getCorrectionsData(), and getSensorMap().
void RPAlignmentCorrectionsData::addSensorCorrection | ( | unsigned int | id, |
const RPAlignmentCorrectionData & | a, | ||
bool | sumErrors = true , |
||
bool | addSh = true , |
||
bool | addRot = true |
||
) |
adds (merges) a RP correction on top of the current value
Definition at line 111 of file RPAlignmentCorrectionsData.cc.
References sensors_.
Referenced by addCorrections(), RPAlignmentCorrectionsMethods::getCorrectionsData(), and getSensorMap().
void RPAlignmentCorrectionsData::clear | ( | void | ) |
clears all alignments
Definition at line 135 of file RPAlignmentCorrectionsData.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().
RPAlignmentCorrectionData RPAlignmentCorrectionsData::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 61 of file RPAlignmentCorrectionsData.cc.
References RPAlignmentCorrectionData::add(), rps_, and sensors_.
Referenced by CTPPSGeometryESModule::applyAlignments(), and getSensorMap().
RPAlignmentCorrectionData & RPAlignmentCorrectionsData::getRPCorrection | ( | unsigned int | id | ) |
returns the correction value from the RP map
Definition at line 21 of file RPAlignmentCorrectionsData.cc.
References triggerObjects_cff::id, and rps_.
Referenced by CTPPSGeometryESModule::applyAlignments(), and getSensorMap().
RPAlignmentCorrectionData RPAlignmentCorrectionsData::getRPCorrection | ( | unsigned int | id | ) | const |
Definition at line 29 of file RPAlignmentCorrectionsData.cc.
References rps_.
|
inline |
returns the map of RP alignment corrections
Definition at line 39 of file RPAlignmentCorrectionsData.h.
References rps_.
Referenced by operator<<(), CTPPSGeometryESModule::produceMisalignedGD(), CTPPSGeometryESModule::produceRealGD(), and RPAlignmentCorrectionsMethods::writeXMLBlock().
RPAlignmentCorrectionData & RPAlignmentCorrectionsData::getSensorCorrection | ( | unsigned int | id | ) |
returns the correction value from the sensor map
Definition at line 41 of file RPAlignmentCorrectionsData.cc.
References triggerObjects_cff::id, and sensors_.
Referenced by getSensorMap().
RPAlignmentCorrectionData RPAlignmentCorrectionsData::getSensorCorrection | ( | unsigned int | id | ) | const |
Definition at line 49 of file RPAlignmentCorrectionsData.cc.
References sensors_.
|
inline |
returns the map of sensor alignment corrections
Definition at line 42 of file RPAlignmentCorrectionsData.h.
References addCorrections(), addRPCorrection(), addSensorCorrection(), clear(), corr, getFullSensorCorrection(), getRPCorrection(), getSensorCorrection(), operator<<(), alignCSCRings::s, sensors_, setRPCorrection(), and setSensorCorrection().
Referenced by operator<<(), CTPPSGeometryESModule::produceMisalignedGD(), CTPPSGeometryESModule::produceRealGD(), and RPAlignmentCorrectionsMethods::writeXMLBlock().
void RPAlignmentCorrectionsData::setRPCorrection | ( | unsigned int | id, |
const RPAlignmentCorrectionData & | ac | ||
) |
sets the alignment correction for the given RP
Definition at line 83 of file RPAlignmentCorrectionsData.cc.
References triggerObjects_cff::id, and rps_.
Referenced by getSensorMap().
void RPAlignmentCorrectionsData::setSensorCorrection | ( | unsigned int | id, |
const RPAlignmentCorrectionData & | ac | ||
) |
sets the alignment correction for the given sensor
Definition at line 91 of file RPAlignmentCorrectionsData.cc.
References triggerObjects_cff::id, and sensors_.
Referenced by getSensorMap().
|
friend |
Definition at line 33 of file RPAlignmentCorrectionsData.h.
|
private |
alignment correction maps
Definition at line 31 of file RPAlignmentCorrectionsData.h.
Referenced by addCorrections(), addRPCorrection(), clear(), getFullSensorCorrection(), getRPCorrection(), getRPMap(), and setRPCorrection().
|
private |
Definition at line 31 of file RPAlignmentCorrectionsData.h.
Referenced by addCorrections(), addSensorCorrection(), clear(), getFullSensorCorrection(), getSensorCorrection(), getSensorMap(), and setSensorCorrection().