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 90 of file RPAlignmentCorrectionsDataSequence.h.
|
inline |
Definition at line 93 of file RPAlignmentCorrectionsDataSequence.h.
|
inline |
Definition at line 95 of file RPAlignmentCorrectionsDataSequence.h.
|
inline |
inserts a set of corrections with validity interval [first, last]
Definition at line 101 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 69 of file RPAlignmentCorrectionsDataSequence.cc.
References a, class-composition::children, Exception, plotBeamSpotDB::first, RPAlignmentCorrectionsMethods::GetCorrectionsData(), mps_fire::i, spu::inf(), edm::eventsetup::heterocontainer::insert(), plotBeamSpotDB::last, python.rootplot.argparse::message, gen::n, createfilelist::parser, fetchall_from_DQM_v2::release, TimeValidityInterval::SetInfinite(), AlCaHLTBitMon_QueryRunRegistry::string, 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 182 of file RPAlignmentCorrectionsDataSequence.cc.
References begin, end, Exception, TimeValidityInterval::ValueToUNIXString(), and RPAlignmentCorrectionsMethods::WriteXMLBlock().