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 28 of file CTPPSRPAlignmentCorrectionsData.h.
|
inline |
Definition at line 37 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 102 of file CTPPSRPAlignmentCorrectionsData.cc.
References addRPCorrection(), addSensorCorrection(), rps_, and sensors_.
Referenced by PPSAlignmentHarvester::dqmEndRun(), StraightTrackAlignment::finish(), and CTPPSRPAlignmentCorrectionsDataESSourceXMLCommon::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 80 of file CTPPSRPAlignmentCorrectionsData.cc.
Referenced by addCorrections(), PPSAlignmentHarvester::dqmEndRun(), factorRPFromSensorCorrections(), and PPSAlignmentHarvester::getLongIdResults().
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 91 of file CTPPSRPAlignmentCorrectionsData.cc.
Referenced by addCorrections(), and factorRPFromSensorCorrections().
void CTPPSRPAlignmentCorrectionsData::clear | ( | void | ) |
clears all alignments
Definition at line 115 of file CTPPSRPAlignmentCorrectionsData.cc.
References rps_, and sensors_.
Referenced by factorRPFromSensorCorrections(), and BeautifulSoup.Tag::setString().
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 48 of file CTPPSRPAlignmentCorrectionsData.cc.
References CTPPSRPAlignmentCorrectionData::add(), rps_, and sensors_.
Referenced by CTPPSGeometryESCommon::applyAlignments(), and factorRPFromSensorCorrections().
CTPPSRPAlignmentCorrectionData & CTPPSRPAlignmentCorrectionsData::getRPCorrection | ( | unsigned int | id | ) |
returns the correction value from the RP map
Definition at line 18 of file CTPPSRPAlignmentCorrectionsData.cc.
References triggerObjects_cff::id, and rps_.
Referenced by CTPPSGeometryESCommon::applyAlignments(), and PPSAlignmentHarvester::dqmEndRun().
CTPPSRPAlignmentCorrectionData CTPPSRPAlignmentCorrectionsData::getRPCorrection | ( | unsigned int | id | ) | const |
Definition at line 22 of file CTPPSRPAlignmentCorrectionsData.cc.
References rps_.
|
inline |
returns the map of RP alignment corrections
Definition at line 40 of file CTPPSRPAlignmentCorrectionsData.h.
References rps_.
Referenced by PPSAlignmentHarvester::getLongIdResults(), and CTPPSGeometryESModule::produceGD().
CTPPSRPAlignmentCorrectionData & CTPPSRPAlignmentCorrectionsData::getSensorCorrection | ( | unsigned int | id | ) |
returns the correction value from the sensor map
Definition at line 32 of file CTPPSRPAlignmentCorrectionsData.cc.
References triggerObjects_cff::id, and sensors_.
CTPPSRPAlignmentCorrectionData CTPPSRPAlignmentCorrectionsData::getSensorCorrection | ( | unsigned int | id | ) | const |
Definition at line 38 of file CTPPSRPAlignmentCorrectionsData.cc.
References sensors_.
|
inline |
returns the map of sensor alignment corrections
Definition at line 43 of file CTPPSRPAlignmentCorrectionsData.h.
References sensors_.
Referenced by factorRPFromSensorCorrections(), and CTPPSGeometryESModule::produceGD().
|
private |
void CTPPSRPAlignmentCorrectionsData::setRPCorrection | ( | unsigned int | id, |
const CTPPSRPAlignmentCorrectionData & | ac | ||
) |
sets the alignment correction for the given RP
Definition at line 68 of file CTPPSRPAlignmentCorrectionsData.cc.
References triggerObjects_cff::id, and rps_.
Referenced by PPSAlignmentHarvester::xAlignment(), PPSAlignmentHarvester::xAlignmentRelative(), and PPSAlignmentHarvester::yAlignment().
void CTPPSRPAlignmentCorrectionsData::setSensorCorrection | ( | unsigned int | id, |
const CTPPSRPAlignmentCorrectionData & | ac | ||
) |
sets the alignment correction for the given sensor
Definition at line 74 of file CTPPSRPAlignmentCorrectionsData.cc.
References triggerObjects_cff::id, and sensors_.
Referenced by factorRPFromSensorCorrections(), and StraightTrackAlignment::finish().
|
friend |
Definition at line 90 of file CTPPSRPAlignmentCorrectionsData.h.
|
friend |
Definition at line 90 of file CTPPSRPAlignmentCorrectionsData.h.
|
friend |
Definition at line 34 of file CTPPSRPAlignmentCorrectionsData.h.
|
private |
alignment correction maps
Definition at line 32 of file CTPPSRPAlignmentCorrectionsData.h.
Referenced by addCorrections(), addRPCorrection(), clear(), getFullSensorCorrection(), getRPCorrection(), getRPMap(), and setRPCorrection().
|
private |
Definition at line 32 of file CTPPSRPAlignmentCorrectionsData.h.
Referenced by addCorrections(), addSensorCorrection(), clear(), getFullSensorCorrection(), getSensorCorrection(), getSensorMap(), and setSensorCorrection().