#include <RPAlignmentCorrectionsMethods.h>
Public Member Functions | |
RPAlignmentCorrectionsMethods () | |
Static Public Member Functions | |
static std::string | iovValueToString (const edm::IOVSyncValue &) |
static RPAlignmentCorrectionsDataSequence | loadFromXML (const std::string &fileName) |
loads sequence of alignment corrections from XML file More... | |
static edm::IOVSyncValue | stringToIOVValue (const std::string &) |
static void | writeToXML (const RPAlignmentCorrectionsDataSequence &seq, const std::string &fileName, bool precise=false, bool wrErrors=true, bool wrSh_xy=true, bool wrSh_z=false, bool wrRot_xy=false, bool wrRot_z=true) |
writes sequence of alignment corrections into a single XML file More... | |
static void | writeToXML (const RPAlignmentCorrectionsData &ad, const std::string &fileName, bool precise=false, bool wrErrors=true, bool wrSh_xy=true, bool wrSh_z=false, bool wrRot_xy=false, bool wrRot_z=true) |
writes alignment corrections into a single XML file, assigning infinite interval of validity More... | |
Static Protected Member Functions | |
static RPAlignmentCorrectionsData | getCorrectionsData (xercesc::DOMNode *) |
load corrections data corresponding to one IOV More... | |
static void | writeXML (const RPAlignmentCorrectionData &data, FILE *f, bool precise, bool wrErrors, bool wrSh_xy, bool wrSh_z, bool wrRot_xy, bool wrRot_z) |
writes data of a correction in XML format More... | |
static void | writeXMLBlock (const RPAlignmentCorrectionsData &, FILE *, bool precise=false, bool wrErrors=true, bool wrSh_xy=true, bool wrSh_z=false, bool wrRot_xy=false, bool wrRot_z=true) |
writes a block of corrections into a file More... | |
Definition at line 20 of file RPAlignmentCorrectionsMethods.h.
|
inline |
Definition at line 23 of file RPAlignmentCorrectionsMethods.h.
References MillePedeFileConverter_cfg::fileName, loadFromXML(), hiDetachedQuadStep_cff::precise, AlCaHLTBitMon_QueryRunRegistry::string, and writeToXML().
|
staticprotected |
load corrections data corresponding to one IOV
Definition at line 212 of file RPAlignmentCorrectionsMethods.cc.
References a, RPAlignmentCorrectionsData::addRPCorrection(), RPAlignmentCorrectionsData::addSensorCorrection(), class-composition::children, MillePedeFileConverter_cfg::e, Exception, mps_fire::i, mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, cms::xerces::toDouble(), cms::xerces::toString(), and cms::xerces::toUInt().
Referenced by loadFromXML(), and writeToXML().
|
static |
Definition at line 96 of file RPAlignmentCorrectionsMethods.cc.
References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), edm::IOVSyncValue::eventID(), edm::EventID::luminosityBlock(), and edm::EventID::run().
Referenced by CTPPSIncludeAlignmentsFromXML::Merge(), CTPPSIncludeAlignmentsFromXML::setIntervalFor(), and writeToXML().
|
static |
loads sequence of alignment corrections from XML file
Definition at line 112 of file RPAlignmentCorrectionsMethods.cc.
References edm::IOVSyncValue::beginOfTime(), class-composition::children, edm::IOVSyncValue::endOfTime(), Exception, plotBeamSpotDB::first, getCorrectionsData(), mps_fire::i, RPAlignmentCorrectionsDataSequence::insert(), plotBeamSpotDB::last, convertSQLitetoXML_cfg::output, createfilelist::parser, AlCaHLTBitMon_QueryRunRegistry::string, stringToIOVValue(), and cms::xerces::toString().
Referenced by CTPPSIncludeAlignmentsFromXML::PrepareSequence(), and RPAlignmentCorrectionsMethods().
|
static |
STRUCTURE OF CTPPS ALINGMENT XML FILE
The file has the following structure <xml> <iov first="run:ls" last="run:ls"> <tag> <tag> ... </iov> <iov first="run:ls" last="run:ls"> ... </iov></xml>
The time intervals are specified by the `first' and `last' run-lumisection pairs. If the <iov> tag is not present, an infinite validty is assumed for all the tags.
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_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_x - rotation around x rot_x_e - the uncertainty of rot_x determination rot_y - rotation around y rot_y_e - the uncertainty of rot_y 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 79 of file RPAlignmentCorrectionsMethods.cc.
References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by loadFromXML(), and writeToXML().
|
static |
writes sequence of alignment corrections into a single XML file
Definition at line 301 of file RPAlignmentCorrectionsMethods.cc.
References Exception, iovValueToString(), AlCaHLTBitMon_ParallelJobs::p, and writeXMLBlock().
Referenced by RPAlignmentCorrectionsMethods(), and writeToXML().
|
inlinestatic |
writes alignment corrections into a single XML file, assigning infinite interval of validity
Definition at line 34 of file RPAlignmentCorrectionsMethods.h.
References edm::IOVSyncValue::beginOfTime(), data, edm::IOVSyncValue::endOfTime(), f, getCorrectionsData(), RPAlignmentCorrectionsDataSequence::insert(), iovValueToString(), hiDetachedQuadStep_cff::precise, alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, stringToIOVValue(), writeToXML(), writeXML(), and writeXMLBlock().
|
staticprotected |
writes data of a correction in XML format
Definition at line 416 of file RPAlignmentCorrectionsMethods.cc.
References RPAlignmentCorrectionData::getRotX(), RPAlignmentCorrectionData::getRotXUnc(), RPAlignmentCorrectionData::getRotY(), RPAlignmentCorrectionData::getRotYUnc(), RPAlignmentCorrectionData::getRotZ(), RPAlignmentCorrectionData::getRotZUnc(), RPAlignmentCorrectionData::getShX(), RPAlignmentCorrectionData::getShXUnc(), RPAlignmentCorrectionData::getShY(), RPAlignmentCorrectionData::getShYUnc(), RPAlignmentCorrectionData::getShZ(), RPAlignmentCorrectionData::getShZUnc(), and WRITE.
Referenced by writeToXML(), and writeXMLBlock().
|
staticprotected |
writes a block of corrections into a file
Definition at line 331 of file RPAlignmentCorrectionsMethods.cc.
References CTPPSDetId::arm(), CTPPSDetId::getRPId(), RPAlignmentCorrectionsData::getRPMap(), RPAlignmentCorrectionsData::getSensorMap(), CTPPSPixelDetId::plane(), TotemRPDetId::plane(), CTPPSDiamondDetId::plane(), CTPPSDetId::rp(), CTPPSDetId::sdTimingDiamond, CTPPSDetId::sdTrackingPixel, CTPPSDetId::sdTrackingStrip, CTPPSDetId::station(), DetId::subdetId(), and writeXML().
Referenced by writeToXML().