Time sequence of alignment corrections. More...
#include <RPAlignmentCorrectionsDataSequence.h>
Public Member Functions | |
void | insert (edm::TimeValue_t first, edm::TimeValue_t last, const RPAlignmentCorrectionsData &corr) |
inserts a set of corrections with validity interval [first, last] More... | |
void | loadXMLFile (const std::string &fileName) |
loads data from an alignment file More... | |
RPAlignmentCorrectionsDataSequence () | |
RPAlignmentCorrectionsDataSequence (const std::string &fileName) | |
void | writeXMLFile (const std::string &fileName, bool precise=false, bool wrErrors=true, bool wrSh_r=true, bool wrSh_xy=true, bool wrSh_z=true, bool wrRot_z=true) const |
saves data to an alignment file More... | |
Time sequence of alignment corrections.
Definition at line 70 of file RPAlignmentCorrectionsDataSequence.h.
|
inline |
Definition at line 73 of file RPAlignmentCorrectionsDataSequence.h.
|
inline |
Definition at line 74 of file RPAlignmentCorrectionsDataSequence.h.
|
inline |
inserts a set of corrections with validity interval [first, last]
Definition at line 77 of file RPAlignmentCorrectionsDataSequence.h.
References MillePedeFileConverter_cfg::fileName, edm::eventsetup::heterocontainer::insert(), hiDetachedQuadStep_cff::precise, AlCaHLTBitMon_QueryRunRegistry::string, and TimeValidityInterval::TimeValidityInterval().
void RPAlignmentCorrectionsDataSequence::loadXMLFile | ( | const std::string & | fileName | ) |
loads data from an alignment file
STRUCTURE OF ALINGMENT XML FILE
The file has the following structure <xml> <TimeInterval first="..." last="..."> <tag> <tag> ... </TimeInterval> <TimeInterval first="..." last="..."> ... </TimeInterval></xml>
The time intervals are specified by the `first' and `last' UNIX timestamp (boundaries included). If there is only one time interval, the <TimeInterval> tags might be omitted. An infinite validty is assumed in this case.
The tag can be either "det" - the alignment correction is applied to one detector or "rp" - the alignment correction id applied to one RP
Each tag must have an "id" attribute set. In addition the following attributes are recognized: sh_r - shift in readout direction sh_r_e - the uncertainty of sh_r determination sh_x - shift in x sh_x_e - the uncertainty of sh_x determination sh_y - shift in y sh_y_e - the uncertainty of sh_y determination sh_z - shift in z sh_z_e - the uncertainty of sh_z determination rot_z - rotation around z rot_z_e - the uncertainty of rot_z determination
UNITS: shifts are in um, rotations are in mrad.
Definition at line 65 of file RPAlignmentCorrectionsDataSequence.cc.
References class-composition::children, Exception, plotBeamSpotDB::first, RPAlignmentCorrectionsMethods::getCorrectionsData(), mps_fire::i, spu::inf(), edm::eventsetup::heterocontainer::insert(), plotBeamSpotDB::last, createfilelist::parser, TimeValidityInterval::SetInfinite(), AlCaHLTBitMon_QueryRunRegistry::string, cms::xerces::toString(), and TimeValidityInterval::UNIXStringToValue().
void RPAlignmentCorrectionsDataSequence::writeXMLFile | ( | const std::string & | fileName, |
bool | precise = false , |
||
bool | wrErrors = true , |
||
bool | wrSh_r = true , |
||
bool | wrSh_xy = true , |
||
bool | wrSh_z = true , |
||
bool | wrRot_z = true |
||
) | const |
saves data to an alignment file
Definition at line 163 of file RPAlignmentCorrectionsDataSequence.cc.
References Exception, TimeValidityInterval::ValueToUNIXString(), and RPAlignmentCorrectionsMethods::writeXMLBlock().