#include <CTPPSRPAlignmentCorrectionsMethods.h>
Public Member Functions | |
CTPPSRPAlignmentCorrectionsMethods () | |
Static Public Member Functions | |
static std::string | iovValueToString (const edm::IOVSyncValue &) |
static CTPPSRPAlignmentCorrectionsDataSequence | 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 CTPPSRPAlignmentCorrectionsDataSequence &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 CTPPSRPAlignmentCorrectionsData &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 CTPPSRPAlignmentCorrectionsData | getCorrectionsData (xercesc::DOMNode *) |
load corrections data corresponding to one IOV More... | |
static void | writeXML (const CTPPSRPAlignmentCorrectionData &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 CTPPSRPAlignmentCorrectionsData &, 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 22 of file CTPPSRPAlignmentCorrectionsMethods.h.
|
inline |
Definition at line 24 of file CTPPSRPAlignmentCorrectionsMethods.h.
|
staticprotected |
load corrections data corresponding to one IOV
Definition at line 209 of file CTPPSRPAlignmentCorrectionsMethods.cc.
References a, class-composition::children, MillePedeFileConverter_cfg::e, Exception, mps_fire::i, dqmiolumiharvest::j, mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, cms::xerces::toDouble(), cms::xerces::toString(), and cms::xerces::toUInt().
Referenced by loadFromXML().
|
static |
Definition at line 95 of file CTPPSRPAlignmentCorrectionsMethods.cc.
References edm::IOVSyncValue::beginOfTime(), visDQMUpload::buf, edm::IOVSyncValue::endOfTime(), and heppy_batch::val.
Referenced by CTPPSRPAlignmentCorrectionsDataESSourceXMLCommon::Merge(), CTPPSRPAlignmentCorrectionsDataESSourceXML::setIntervalFor(), and writeToXML().
|
static |
loads sequence of alignment corrections from XML file
Definition at line 109 of file CTPPSRPAlignmentCorrectionsMethods.cc.
References edm::IOVSyncValue::beginOfTime(), class-composition::children, edm::IOVSyncValue::endOfTime(), Exception, MillePedeFileConverter_cfg::fileName, dqmdumpme::first, getCorrectionsData(), mps_fire::i, dqmiolumiharvest::j, dqmdumpme::last, convertSQLitetoXML_cfg::output, writedatasetfile::parser, AlCaHLTBitMon_QueryRunRegistry::string, stringToIOVValue(), and cms::xerces::toString().
Referenced by PPSModifySingularModes::beginRun(), and CTPPSRPAlignmentCorrectionsDataESSourceXMLCommon::PrepareSequence().
|
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 CTPPSRPAlignmentCorrectionsMethods.cc.
References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), str, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by loadFromXML().
|
static |
writes sequence of alignment corrections into a single XML file
Definition at line 315 of file CTPPSRPAlignmentCorrectionsMethods.cc.
References data, Exception, MillePedeFileConverter_cfg::fileName, iovValueToString(), AlCaHLTBitMon_ParallelJobs::p, hltPixelTracks_cff::precise, hcal_runs::rf, and writeXMLBlock().
Referenced by PPSModifySingularModes::beginRun(), StraightTrackAlignment::finish(), and writeToXML().
|
inlinestatic |
writes alignment corrections into a single XML file, assigning infinite interval of validity
Definition at line 40 of file CTPPSRPAlignmentCorrectionsMethods.h.
References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), MillePedeFileConverter_cfg::fileName, hltPixelTracks_cff::precise, alignCSCRings::s, and writeToXML().
|
staticprotected |
writes data of a correction in XML format
Definition at line 433 of file CTPPSRPAlignmentCorrectionsMethods.cc.
Referenced by writeXMLBlock().
|
staticprotected |
writes a block of corrections into a file
Definition at line 347 of file CTPPSRPAlignmentCorrectionsMethods.cc.
References CTPPSDetId::arm(), data, protons_cff::decRPId, CTPPSPixelDetId::plane(), CTPPSDiamondDetId::plane(), TotemRPDetId::plane(), hltPixelTracks_cff::precise, hcal_runs::rf, CTPPSDetId::rp(), CTPPSDetId::rpId(), CTPPSDetId::sdTimingDiamond, CTPPSDetId::sdTrackingPixel, CTPPSDetId::sdTrackingStrip, CTPPSDetId::station(), DetId::subdetId(), and writeXML().
Referenced by writeToXML().