11 #ifndef CondFormats_CTPPSReadoutObjects_CTPPSRPAlignmentCorrectionsData 12 #define CondFormats_CTPPSReadoutObjects_CTPPSRPAlignmentCorrectionsData 29 typedef std::map<unsigned int, CTPPSRPAlignmentCorrectionData>
mapType;
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
CTPPSRPAlignmentCorrectionData & getRPCorrection(unsigned int id)
returns the correction value from the RP map
std::ostream & operator<<(std::ostream &s, const CTPPSRPAlignmentCorrectionsData &corr)
void setRPCorrection(unsigned int id, const CTPPSRPAlignmentCorrectionData &ac)
sets the alignment correction for the given RP
std::map< unsigned int, CTPPSRPAlignmentCorrectionData > mapType
map: element id -> its alignment correction
const mapType & getRPMap() const
returns the map of RP alignment corrections
CTPPSRPAlignmentCorrectionData & getSensorCorrection(unsigned int id)
returns the correction value from the sensor map
void addRPCorrection(unsigned int, const CTPPSRPAlignmentCorrectionData &, bool sumErrors=true, bool addSh=true, bool addRot=true)
CTPPSRPAlignmentCorrectionData getFullSensorCorrection(unsigned int id, bool useRPErrors=false) const
const mapType & getSensorMap() const
returns the map of sensor alignment corrections
void addCorrections(const CTPPSRPAlignmentCorrectionsData &, bool sumErrors=true, bool addSh=true, bool addRot=true)
adds (merges) corrections on top of the current values
mapType rps_
alignment correction maps
friend class StraightTrackAlignment
#define COND_SERIALIZABLE
Container for CTPPS RP alignment corrections. The corrections are stored on two levels - RP and senso...
void clear()
clears all alignments
CTPPSRPAlignmentCorrectionsData()
void setSensorCorrection(unsigned int id, const CTPPSRPAlignmentCorrectionData &ac)
sets the alignment correction for the given sensor
Alignment correction for an element of the CT-PPS detector. Within the geometry description, every sensor (more generally every element) is given its translation and rotation. These two quantities shall be understood in local-to-global coordinate transform. That is, if r_l is a point in local coordinate system and x_g in global, then it holds.