File indexing completed on 2024-04-06 12:02:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef CondFormats_PPSObjects_CTPPSRPAlignmentCorrectionsData
0012 #define CondFormats_PPSObjects_CTPPSRPAlignmentCorrectionsData
0013
0014 #include "CondFormats/PPSObjects/interface/CTPPSRPAlignmentCorrectionData.h"
0015
0016 #include <map>
0017
0018
0019
0020
0021
0022
0023
0024
0025 class CTPPSRPAlignmentCorrectionsData {
0026 public:
0027
0028 typedef std::map<unsigned int, CTPPSRPAlignmentCorrectionData> mapType;
0029
0030 private:
0031
0032 mapType rps_, sensors_;
0033
0034 friend class StraightTrackAlignment;
0035
0036 public:
0037 CTPPSRPAlignmentCorrectionsData() {}
0038
0039
0040 const mapType& getRPMap() const { return rps_; }
0041
0042
0043 const mapType& getSensorMap() const { return sensors_; }
0044
0045
0046 CTPPSRPAlignmentCorrectionData& getRPCorrection(unsigned int id);
0047 CTPPSRPAlignmentCorrectionData getRPCorrection(unsigned int id) const;
0048
0049
0050 CTPPSRPAlignmentCorrectionData& getSensorCorrection(unsigned int id);
0051 CTPPSRPAlignmentCorrectionData getSensorCorrection(unsigned int id) const;
0052
0053
0054
0055
0056 CTPPSRPAlignmentCorrectionData getFullSensorCorrection(unsigned int id, bool useRPErrors = false) const;
0057
0058
0059 void setRPCorrection(unsigned int id, const CTPPSRPAlignmentCorrectionData& ac);
0060
0061
0062 void setSensorCorrection(unsigned int id, const CTPPSRPAlignmentCorrectionData& ac);
0063
0064
0065
0066
0067
0068 void addRPCorrection(unsigned int,
0069 const CTPPSRPAlignmentCorrectionData&,
0070 bool sumErrors = true,
0071 bool addSh = true,
0072 bool addRot = true);
0073
0074
0075 void addSensorCorrection(unsigned int,
0076 const CTPPSRPAlignmentCorrectionData&,
0077 bool sumErrors = true,
0078 bool addSh = true,
0079 bool addRot = true);
0080
0081
0082 void addCorrections(const CTPPSRPAlignmentCorrectionsData&,
0083 bool sumErrors = true,
0084 bool addSh = true,
0085 bool addRot = true);
0086
0087
0088 void clear();
0089
0090 COND_SERIALIZABLE;
0091 };
0092
0093 std::ostream& operator<<(std::ostream& s, const CTPPSRPAlignmentCorrectionsData& corr);
0094
0095 #endif