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.
References LoadXMLFile().
|
inline |
inserts a set of corrections with validity interval [first, last]
Definition at line 101 of file RPAlignmentCorrectionsDataSequence.h.
References edm::eventsetup::heterocontainer::insert().
Referenced by BuildElasticCorrectionsFile::beginRun().
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 68 of file RPAlignmentCorrectionsDataSequence.cc.
References a, Exception, plotBeamSpotDB::first, personalPlayback::fn, RPAlignmentCorrectionsMethods::GetCorrectionsData(), i, EcalCondDB::inf, edm::eventsetup::heterocontainer::insert(), j, plotBeamSpotDB::last, python.rootplot.argparse::message, gen::n, mps_alisetup::parser, fetchall_from_DQM_v2::release, TimeValidityInterval::SetInfinite(), dqm_diff::start, AlCaHLTBitMon_QueryRunRegistry::string, XERCES_CPP_NAMESPACE_USE::transcode(), and TimeValidityInterval::UNIXStringToValue().
Referenced by RPAlignmentCorrectionsDataSequence().
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 181 of file RPAlignmentCorrectionsDataSequence.cc.
References begin, end, Exception, TimeValidityInterval::ValueToUNIXString(), and RPAlignmentCorrectionsMethods::WriteXMLBlock().
Referenced by BuildElasticCorrectionsFile::beginRun().