Container for RP alignment corrections. The corrections are stored on two levels - RP and sensor. For every level, there is a map: symbolic ID –> alignment correction. Sensors inherit the alignment corrections for 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 addShR=true, bool addShZ=true, bool addRotZ=true) |
adds (merges) corrections on top of the current values More... | |
void | AddRPCorrection (unsigned int, const RPAlignmentCorrectionData &, bool sumErrors=true, bool addShR=true, bool addShZ=true, bool addRotZ=true) |
void | AddSensorCorrection (unsigned int, const RPAlignmentCorrectionData &, bool sumErrors=true, bool addShR=true, bool addShZ=true, bool addRotZ=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 RP alignment corrections. The corrections are stored on two levels - RP and sensor. For every level, there is a map: symbolic ID –> alignment correction. Sensors inherit the alignment corrections for the corresponding RP, see GetFullSensorCorrection method.
Definition at line 30 of file RPAlignmentCorrectionsData.h.
typedef std::map<unsigned int, RPAlignmentCorrectionData> RPAlignmentCorrectionsData::mapType |
map: element id -> its alignment correction
Definition at line 34 of file RPAlignmentCorrectionsData.h.
|
inline |
Definition at line 43 of file RPAlignmentCorrectionsData.h.
void RPAlignmentCorrectionsData::AddCorrections | ( | const RPAlignmentCorrectionsData & | nac, |
bool | sumErrors = true , |
||
bool | addShR = true , |
||
bool | addShZ = true , |
||
bool | addRotZ = true |
||
) |
adds (merges) corrections on top of the current values
Definition at line 114 of file RPAlignmentCorrectionsData.cc.
void RPAlignmentCorrectionsData::AddRPCorrection | ( | unsigned int | id, |
const RPAlignmentCorrectionData & | a, | ||
bool | sumErrors = true , |
||
bool | addShR = true , |
||
bool | addShZ = true , |
||
bool | addRotZ = 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 90 of file RPAlignmentCorrectionsData.cc.
Referenced by RPAlignmentCorrectionsMethods::GetCorrectionsData().
void RPAlignmentCorrectionsData::AddSensorCorrection | ( | unsigned int | id, |
const RPAlignmentCorrectionData & | a, | ||
bool | sumErrors = true , |
||
bool | addShR = true , |
||
bool | addShZ = true , |
||
bool | addRotZ = true |
||
) |
adds (merges) a RP correction on top of the current value
Definition at line 102 of file RPAlignmentCorrectionsData.cc.
Referenced by RPAlignmentCorrectionsMethods::GetCorrectionsData().
void RPAlignmentCorrectionsData::Clear | ( | ) |
clears all alignments
Definition at line 126 of file RPAlignmentCorrectionsData.cc.
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 (see the note at FactorRPFromSensorCorrections).
Definition at line 57 of file RPAlignmentCorrectionsData.cc.
References RPAlignmentCorrectionData::add(), and EnergyCorrector::c.
Referenced by TotemRPGeometryESModule::ApplyAlignments().
RPAlignmentCorrectionData & RPAlignmentCorrectionsData::GetRPCorrection | ( | unsigned int | id | ) |
returns the correction value from the RP map
Definition at line 23 of file RPAlignmentCorrectionsData.cc.
References hcalTTPDigis_cfi::id.
Referenced by TotemRPGeometryESModule::ApplyAlignments().
RPAlignmentCorrectionData RPAlignmentCorrectionsData::GetRPCorrection | ( | unsigned int | id | ) | const |
Definition at line 30 of file RPAlignmentCorrectionsData.cc.
References a.
|
inline |
returns the map of RP alignment corrections
Definition at line 46 of file RPAlignmentCorrectionsData.h.
Referenced by TotemRPGeometryESModule::produceMisalignedGD(), TotemRPGeometryESModule::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 hcalTTPDigis_cfi::id.
RPAlignmentCorrectionData RPAlignmentCorrectionsData::GetSensorCorrection | ( | unsigned int | id | ) | const |
Definition at line 46 of file RPAlignmentCorrectionsData.cc.
References a.
|
inline |
returns the map of sensor alignment corrections
Definition at line 50 of file RPAlignmentCorrectionsData.h.
Referenced by TotemRPGeometryESModule::produceMisalignedGD(), TotemRPGeometryESModule::produceRealGD(), and RPAlignmentCorrectionsMethods::WriteXMLBlock().
void RPAlignmentCorrectionsData::SetRPCorrection | ( | unsigned int | id, |
const RPAlignmentCorrectionData & | ac | ||
) |
sets the alignment correction for the given RP
Definition at line 76 of file RPAlignmentCorrectionsData.cc.
References hcalTTPDigis_cfi::id.
void RPAlignmentCorrectionsData::SetSensorCorrection | ( | unsigned int | id, |
const RPAlignmentCorrectionData & | ac | ||
) |
sets the alignment correction for the given sensor
Definition at line 83 of file RPAlignmentCorrectionsData.cc.
References hcalTTPDigis_cfi::id.
|
friend |
Definition at line 40 of file RPAlignmentCorrectionsData.h.
|
private |
alignment correction maps
Definition at line 38 of file RPAlignmentCorrectionsData.h.
Referenced by AddCorrections().
|
private |
Definition at line 38 of file RPAlignmentCorrectionsData.h.
Referenced by AddCorrections().